body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: sans-serif;
}

.study,
.rest-short,
.rest-long {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    z-index: 0;
}
.study {
    visibility: hidden;
    background-image: url("images/studying.jpg");
}
.rest-short {
    visibility: hidden;
    background-image: url("images/restingShort.jpg");
}
.rest-long {
    visibility: hidden;
    background-image: url("images/restingLong.jpg");
}
.visible {
    visibility: visible;
}
.study::before,
.rest-short::before,
.rest-long::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1;
}

.heading {
    position: relative;
    z-index: 2;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 40px;
    color: white;
}

#home,
#setting {
    font-size: 16px;
    color: white;
    background: none;
    border: none;
    padding: 10px 20px;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
}
#home {
    font-size: 20px;
}
#setting {
    margin-top: 20px;
}
#setting:hover {
    background: rgba(0, 0, 0, 0.8);
}
#setting img {
    width: 20px;
    height: 20px;
}

.card {
    position: relative;
    z-index: 2;
    color: #fff;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 10px;
    margin: 30px auto 30px;
    width: 500px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.card button {
    flex: 1;
    margin: 10px;
    padding: 10px 20px;
    font-size: 16px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    background: none;
    border: none;
    transition: background 0.2s ease;
}
.card button:hover {
    background: rgba(255, 255, 255, 0.4);
}

.time {
    flex-basis: 100%;
    text-align: center;
    font-size: 125px;
    font-weight: bold;
    margin-top: 20px;
    color: white;
    margin-bottom: 20px;
}

#start {
    flex: none;
    background: white;
    width: 150px;
    height: 50px;
    margin: 10px auto;
}

#count,
#task {
    position: relative;
    text-align: center;
    color: white;
    font-size: 25px;
    margin: 5px;
}

#count {
    display: block;
    margin: 5px auto;
    background: none;
    border: none;
    cursor: pointer;
    color: rgba(255, 255, 255, 0.4);
}

.tasks {
    position: relative;
    width: 500px;
    margin: 10px auto;
}
.task-header {
    display: flex;
    justify-content: space-between;
    width: 500px;
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 0;
    margin-bottom: 10px;
}
#taskHeader {
    color: white;
}
.task-header button {
    background: rgba(0, 0, 0, 0.6);
    border: none;
    border-radius: 25%;
    width: 50px;
    height: 50px;
    margin-top: 15px;
    cursor: pointer;
}
.task-header button img {
    width: 30px;
}
.task-content {
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.task-content p {
    font-size: 20px;
}
.left {
    display: flex;
    align-items: center;
    gap: 10px;
}
.task {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.3);
    padding: 10px;
    border-radius: 10px;
    min-height: 80px;
    color: white;
    gap: 10px;
}
.left {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}
.text {
    display: flex;
    flex-direction: column;
}
.left img {
    width: 30px;
}
.right {
    display: flex;
    align-items: center;
    height: 80px;
    margin-right: 10px;
}
#content {
    margin: 0;
    font-weight: bold;
}
.right.num {
    margin: 0;
    font-weight: bold;
}
#right img {
    width: 30px;
}
#details {
    margin: 0;
    margin-top: 10px;
    margin-left: 5px;
    font-size: 0.9em;
}

.task-menu {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
    border: none;
    width: 40px;
    height: 40px;
    margin-left: 10px;
    cursor: pointer;
}
.task-menu img {
    width: 30px;
}

.add-task {
    margin-top: 10px;
}
.add-task button {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80px;
    background: rgba(0, 0, 0, 0.6);
    border: dotted #fff;
    color: #fff;
    cursor: pointer;
}
.add-task img {
    width: 40px;
    height: 40px;
    padding: 10px;
}

.line {
    border: none;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
    margin-top: 10px 0 0;
    width: 100%;
}

.task-footer {
    display: flex;
    background: rgba(0, 0, 0, 0.6);
    padding: 10px;
    margin: 10px;
    min-height: 80px;
    justify-content: center;
    text-align: center;
    align-items: center;
    color: #fff;
    font-weight: bold;
    font-size: 25px;
    border-radius: 15px;
}

.settings {
    visibility: hidden;
    position: absolute;
    top: 80px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: #fff;
    width: 400px;
    margin: 20px auto;
    border-radius: 25px;
    padding: 20px;
}
.settings.visible {
    visibility: visible;
}
.setting-header {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}
.settings h1 {
    color: #444;
    font-size: 24px;
}
#close {
    background: none;
    border: none;
    height: 35px;
    width: 35px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
#close:hover {
    background: rgba(0, 0, 0, 0.3);
}
#close img{
    width: 30px;
    height: 30px;
}
.setting hr {
    padding: 0;
    width: 100%;
    border: none;
    border-top: 2px solid #444;
}

.setting-content-header {
    display: flex;
}
.setting-content-header img {
    width: 30px;
    height: 30px;
    padding-top: 10px;
}
.setting-content-header h1 {
    padding-left: 20px;
    margin-top: 12px;
}

.setting h2 {
    font-size: 16px;
}

.setting-content-input {
    display: flex;
    justify-content: space-between;
}
.setting-content-input input {
    width: 100px;
    height: 40px;
    background: #333;
    border: none;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-size: 24px;
}

.auto-start-breaks,
.auto-start-pomodoros,
.long-break-interval {
    display: flex;
    justify-content: space-between;
}

.auto-start-breaks button,
.auto-start-pomodoros button {
    background: none;
    border: none;
    cursor: pointer;
}
.auto-start-breaks img,
.auto-start-pomodoros img {
    width: 50px;
    height: 50px;
}

.auto-start-breaks {
    padding-top: 10px;
}

.long-break-interval input {
    width: 100px;
    height: 40px;
    background: #333;
    border: none;
    border-radius: 10px;
    text-align: center;
    color: #fff;
    font-size: 24px;
    margin-top: 10px;
}

#ok {
    background: #333;
    border: none;
    border-radius: 10px;
    height: 40px;
    width: 100px;
    color: #fff;
    font-size: 28px;
    font-weight: bold;
    margin-left: 75%;
    margin-top: 10px;
    cursor: pointer;
}

.tasks-more {
    visibility: hidden;
    position: absolute;
    z-index: 10;
    background: #fff;
    width: 300px;
    top: 87vh;
    left: 58%;
    transform: translateX(-58%);
    border-radius: 25px;
}
.tasks-more.visible {
    visibility: visible;
}

.tasks-more button {
    width: 100%;
    height: 50px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    font-size: 16px;
    font-weight: bold;
    color: #444;
    border: none;
    border-radius: 25px;
    cursor: pointer;
}
.tasks-more button:hover {
    background: rgba(0, 0, 0, 0.3);
}
.tasks-more button img {
    width: 30px;
    height: 30px;
    padding-right: 30px;
    padding-left: 15px;
}

.add-tasks {
    visibility: hidden;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    width: 500px;
    border: none;
    border-radius: 25px;
    padding: 20px;
}
.add-tasks.visible {
    visibility: visible;
}
#work {
    width: 100%;
    border: none;
    color: #444;
    font-size: 24px;
    font-weight: bold;
}
.add-tasks h2 {
    font-size: 18px;
    color: #272727;
}
#numPomodoros {
    background: #727272;
    border: none;
    height: 40px;
    width: 80px;
    font-size: 30px;
    padding-left: 10px;
    margin: 5px;
    margin-left: 0;
    margin-top: 0;
    border-radius: 10px;
}
#addNote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    font-weight: bold;
}
#notes {
    background-color: #727272;
    border: none;
    color: white;
    font-size: 14px;
    margin-bottom: 30px;
    border-radius: 10px;
    height: 60px;
    width: 100%;
}
.add-tasks-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.add-tasks-footer button {
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 80px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
}
#cancel {
    background: none;
    color: #444;
}
#cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}
#save {
    background: #444;
    color: #fff;
}
#save:hover {
    background: rgba(0, 0, 0, 0.5);
}

/* Edit tasks */
.edit-tasks {
    visibility: hidden;
    position: relative;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: #fff;
    width: 500px;
    border: none;
    border-radius: 25px;
    padding: 20px;
}
.edit-tasks.visible {
    visibility: visible;
}
.edit-tasks #work {
    width: 100%;
    border: none;
    color: #444;
    font-size: 24px;
    font-weight: bold;
}
.edit-tasks h2 {
    font-size: 18px;
    color: #272727;
}
.edit-tasks #numPomodoros {
    background: #727272;
    border: none;
    height: 40px;
    width: 80px;
    font-size: 30px;
    padding-left: 10px;
    margin: 5px;
    margin-left: 0;
    margin-top: 0;
    border-radius: 10px;
}
.edit-tasks #addNote {
    background: none;
    border: none;
    cursor: pointer;
    font-size: 14px;
    color: #444;
    font-weight: bold;
}
.edit-tasks #notes {
    background-color: #727272;
    border: none;
    color: white;
    font-size: 14px;
    margin-bottom: 30px;
    border-radius: 10px;
    height: 60px;
    width: 100%;
}
.edit-tasks-footer {
    display: flex;
    justify-content: flex-end;
    gap: 20px;
}
.edit-tasks-footer button {
    border: none;
    cursor: pointer;
    padding: 10px;
    width: 80px;
    font-weight: bold;
    font-size: 16px;
    border-radius: 10px;
}
.edit-tasks #delete {
    background: none;
}
.edit-tasks #delete:hover {
    background: rgba(0, 0, 0, 0.3);
}
.edit-tasks #delete img {
    width: 30px;
    height: 30px;
}
.edit-tasks-footer {
    display: flex;
    justify-content: space-between;
}
.edit-tasks #cancel {
    background: none;
    color: #444;
}
.edit-tasks #cancel:hover {
    background: rgba(0, 0, 0, 0.1);
}
.edit-tasks #save {
    background: #444;
    color: #fff;
}
.edit-tasks #save:hover {
    background: rgba(0, 0, 0, 0.5);
}

.task.selected {
    border: 2px solid white;
    box-shadow: 0 0 10px white;
}