body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    font-family: 'ArialRounded', sans-serif;
    background-color: black;
    background: url('background1.webp') no-repeat center center fixed;
    background-size: cover;
    min-height: 100vh;
    transition: background 1s ease-in-out;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.mainsection {
    height: 100vh;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 10vh;
    background-color: transparent;
    position: sticky;
    top: 0;
    z-index: 10;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    height: 80vh;
    background-color: transparent;
    position: relative;
    width: 100%;
    overflow-x: hidden;
}

.boxes {
    display: flex;
    flex-direction: column;
    align-items: center;
    z-index: 1;
}

.timer-container {
    background-color: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
    padding: 2rem;
    text-align: center;
    transition: all 0.3s ease;
    width: 320px;
    min-width: 320px;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
    -webkit-box-shadow: 0 25px 23px rgba(0, 0, 0, 0.15);
	box-shadow: 0 25px 23px rgba(0, 0, 0, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
    
}

.dropdown-container {
    background-color: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
    border-radius: 10px;
    padding: 1.5rem;
    display: none;
    flex-direction: column;
    align-items: center;
    width: 320px;
    max-width: 100%;
    min-width: 320px;
    text-align: left;
    margin: 20px auto;
    -webkit-box-shadow: 0 25px 23px rgba(0, 0, 0, 0.15);
	box-shadow: 0 25px 23px rgba(0, 0, 0, 0.15);
	border: 1.5px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
}

#doneBtn {
    width: 100%;
    padding: 12px 20px;
    font-size: 1rem;
    font-weight: 600;
    background-color: #8E44AD;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}

#doneBtn:hover {
    background-color: #BB8FCE;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

#doneBtn:focus {
    outline: none;
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.4);
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 1rem;
}

button {
    background-color: transparent;
    border: none;
    padding: 0;
    outline: none;
    cursor: pointer;
    display: inline-block;
}

#startPauseBtn {
    background-color: transparent;
}

#startPauseBtn.paused {
    background-color: transparent;
}

#startIcon, #pauseIcon {
    width: 40px;
    height: 40px;
}

#resetBtn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#resetBtn:hover {
    transform: scale(1.1);
}

button:hover {
    background-color: #BB8FCE;
}

button:focus {
    outline: none;
}

button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.dropdown-selection {
    width: 100%;
    margin-bottom: 15px;
    display: flex;
    flex-direction: column;
}

.dropdown-selection label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 5px;
}

select {
    appearance: none;
    width: 100%;
    padding: 12px 16px;
    font-size: 1rem;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background-color: #f9f9f9;
    color: #333;
    transition: all 0.3s ease;
    outline: none;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

select:hover {
    border-color: #8E44AD;
}

select:focus {
    border-color: #8E44AD;
    background-color: #fff;
    box-shadow: 0 0 8px rgba(142, 68, 173, 0.2);
}

.spotify-embed {
    border-radius: 12px;
    width: 100%;
    max-width: 380px;
    height: 80px;
    position: absolute;
    bottom: 50px;
    left: 50px;
    border: 1px solid rgba(255, 255, 255, 0.28);
    z-index: 99;
}

.footer {
    position: relative;
    bottom: 0;
    width: 100%;
    text-align: center;
    padding-bottom: 10px;
    padding-top: 10px;
    font-size: 1rem;
    color: white;
    background: transparent;
    height: 10vh;
}

#timer-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

#taskInput {
    width: 100%; /* Adjust this value to control the width of the input */
    max-width: 400px; /* Maximum width of the input */
    padding: 10px 15px;
    font-size: 16px;
    caret-color: white;
    background-color: transparent;
    color: white;
}

.time-info {
  font-size: 0.8em;
  color: white;
  opacity: 0.9;
  text-align: center;
  pointer-events: none;
}

.time-info.visible {
  opacity: 0.9;
}

.input-hint {
    position: absolute;
    left: 100%;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    white-space: nowrap;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    pointer-events: none;
    padding-left: 50px;

}

.input-hint.visible {
    opacity: 0.86;
}

#taskInput::placeholder {
    color: white; /* Change this to your desired color */
    opacity: 1; /* Needed for some browsers */
}


#timer {
    font-size: 6rem;
    font-weight: 700;
    color: white;
    opacity: 0.9;
    font-family: 'ArialRounded', sans-serif;
    margin: 0;
    padding: 0;
    letter-spacing: -1px;
    text-align: center;
}

#toggleDropdownBtn {
    width: 40px;
    height: 40px;
    cursor: pointer;
    transition: transform 0.3s ease;
}

#toggleDropdownBtn:hover {
    transform: scale(1.1);
}

.task-count-container {
  margin-top: 10px;
  font-size: 0.9em;
  color: white;
  text-align: center;
}

#taskCount {
  font-weight: bold;
  color: white;
  opacity: 0.9;
}

.task-list {
    list-style: none;
    padding: 10px 0;
    width: 100%;
    max-height: 300px;
    overflow-y: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    position: relative;
}

.task-item {
    display: flex;
    align-items: center;
    padding: 10px 10px;
    margin-bottom: 10px;
    background-color: rgba(255, 255, 255, 0.06);
	-webkit-backdrop-filter: blur(15px);
	backdrop-filter: blur(15px);
    font-size: 16px;
    transition: all 0.3s ease;
    position: relative;
	border: 1.5px solid rgba(255, 255, 255, 0.06);
	border-radius: 8px;
}

.drag-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
    opacity: 0;
    visibility: hidden;
    cursor: move;
    transition: opacity 0.3s ease, visibility 0s linear 0.3s;
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%);
}

.task-item:hover .drag-icon {
    opacity: 0.6;
    visibility: visible;
    transition: opacity 0.3s ease, visibility 0s linear 0s;
    left: 10px;
}

.task-item:hover .checkbox {
    margin-left: 0px;
}

.task-item:hover {
    background-color: #f0f0f0;
    opacity: 0.5;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.15);
    padding-left: 45px;
}

.task-item input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 24px;
    height: 24px;
    border: 2px solid #007AFF;
    border-radius: 50%;
    margin-right: 15px;
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
    background-color: white;
}

.task-item:hover input[type="checkbox"] {
    margin-left: 0px;
}

.task-item input[type="checkbox"]:checked {
    background-color: #0e8709;
    border-color: #0e8709;
}

.task-item input[type="checkbox"]::before {
    content: '\2714'; /* Unicode for a heavier check mark */
    font-size: 10px;
    color: white;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    transition: transform 0.2s ease-in-out;
}

.checkbox {
    margin-right: 10px;
    display: block;
    transition: margin-left 0.3s ease;
}

.task-item input[type="checkbox"]:checked::before {
    transform: translate(-50%, -50%) scale(1);
}

@keyframes check-animation {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(0.9);
    }
    100% {
        transform: scale(1);
    }
}

.task-item label {
    flex-grow: 1;
    margin-right: 15px;
    margin-left: 10px;
    color: white;
    font-weight: 400;
    cursor: pointer;
    transition: color 0.3s ease, text-decoration 0.3s ease;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 300px;
}

.task-item.completed label {
    text-decoration: line-through;
    color: #888;
}

.task-item .delete-icon {
    width: 18px;
    height: 18px;
    opacity: 0;
    cursor: pointer;
    transition: opacity 0.3s ease;
}

.task-item.removing {
    animation: slideOut 0.3s ease-in forwards;
}

.task-item.completed {
    animation: taskComplete 0.3s ease-in-out;
}

.task-item:hover .delete-icon {
    opacity: 1;
}

.task-input-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 320px;
    margin: 1rem auto;
    gap: 10px;
}

.task-input-container input[type="text"] {
    width: 100%;
    padding: 5px 10px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 0px;
    background-color: transparent;
    color: white;
    opacity: 0.86;
    text-align: center;
    transition: all 0.3s ease;
}

.task-input-container input[type="text"]:focus {
    background-color: transparent;
    outline: none;
    border-bottom: 1px solid rgba(255,255,255, 0.9);
}

.task-input-container input[type="text"]:hover {
    border-bottom: 1px solid rgba(255,255,255, 0.9);
}


.music-container {
    background: rgba(255, 255, 255, 0.8);
    padding: 1rem;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
    transition: all 0.3s ease;
    width: 320px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    position: relative;
}

.music-container-content {
    display: none;
}

.music-toggle {
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    transition: transform 0.3s ease;
    font-weight: 500;
}

.music-toggle img {
    transition: transform 0.3s ease;
    height: 20px;
    width: 20px;
    padding: 5px;
}

.music-toggle.open img {
    transform: rotate(90deg);
}

.choose-music {
    font-size: 1.2rem;
}

.delete-icon {
    height: 25px;
    width: 25px;
    cursor: pointer;
}

.task-manager-container {
    justify-content: center;
    align-items: center;
}

.task-item {
    position: relative;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: slideIn 0.3s ease-out;
}

.task-item.dragging {
    opacity: 0.9;
    background-color: #f8f8f8;
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

.placeholder {
    height: 3px;
    background-color: transparent;
    border-radius: 3px;
    margin: 10px 0;
    transition: all 0.3s ease;
}

button img {
    width: 30px;
    height: 30px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button img:hover {
    transform: scale(1.05);
}

.icon {
    transition: transform 0.3s ease;
    opacity: 0.9;
}

@media (max-width: 600px) {


    .drag-icon {
        display: none;
    }

    .delete-icon {
        opacity: 0.6;
        padding: 5px;
    }

    .task-item label {
        font-size: 14px;
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(20px);
    }
}

@keyframes taskComplete {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.05);
    }
    100% {
        transform: scale(1);
    }
}

.task-stats {
    margin-top: 10px;
    font-size: 0.9em;
    color: #666;
    text-align: center;
}

.task-stats span {
    margin-right: 15px;
}

.blog-area {
    min-width: 100%;
    background-color: white;
    min-height: 2000px;
    z-index: 0;
    position: relative;
}

.blog {
    padding-top: 100px;
    margin: 40px auto;
    max-width: 600px;
    text-align: center;
    color: black;
    position: relative;
    z-index: 1;
}

.blog h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: black;
    opacity: 1;
}

.blog p {
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 20px;
    color: black;
    opacity: 1;
}

/* Newsletter button styling */
.newsletter-button {
    position: absolute;
    bottom: 150px; /* Positioned above the Spotify embed */
    left: 50px;
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 98;
}

.newsletter-button:hover {
    background-color: rgba(255, 255, 255, 0.1);
    z-index: 99;
}

/* Popup overlay */
.popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999;
}

/* Email form container styling as popup */
#emailForm {
    display: none; /* Hidden by default */
    position: fixed; /* Changed to fixed for popup */
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 320px;
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    padding: 20px;
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 12px;
    z-index: 1000;
    flex-direction: column;
    gap: 1rem;
    align-items: center;
}

/* Close button */
.close-popup {
    position: absolute;
    top: 10px;
    right: 10px;
    background: transparent;
    border: none;
    color: white;
    font-size: 20px;
    cursor: pointer;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.close-popup:hover {
    opacity: 1;
}

/* Animation classes */
.fade-in {
    animation: fadeIn 0.3s ease-in-out;
}

.fade-out {
    animation: fadeOut 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translate(-50%, -50%);
    }
    to {
        opacity: 0;
        transform: translate(-50%, -48%);
    }
}

/* Keep your existing input and button styles */
#emailForm input[type="text"],
#emailForm input[type="email"] {
    width: 100%;
    padding: 5px 10px;
    font-size: 16px;
    border: 2px solid transparent;
    border-radius: 0px;
    background-color: transparent;
    color: white;
    opacity: 0.86;
    text-align: center;
    transition: all 0.3s ease;
}

#emailForm input[type="text"]:focus,
#emailForm input[type="email"]:focus {
    background-color: transparent;
    outline: none;
    border-bottom: 1px solid rgba(255,255,255, 0.9);
}

#emailForm input[type="text"]:hover,
#emailForm input[type="email"]:hover {
    border-bottom: 1px solid rgba(255,255,255, 0.9);
}

#emailForm input::placeholder {
    color: white;
    opacity: 1;
}

/* Submit button styling */
#emailForm button[type="submit"] {
    background-color: transparent;
    color: white;
    border: 1px solid rgba(255,255,255, 0.9);
    padding: 8px 20px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
    opacity: 0.86;
}

#emailForm button[type="submit"]:hover {
    background-color: rgba(255,255,255, 0.1);
}

/* Response message styling */
#responseMessage {
    color: white;
    opacity: 0.86;
    font-size: 14px;
    margin-top: 10px;
    text-align: center;
}

/* Media query for mobile responsiveness */
@media (max-width: 768px) {
    #emailForm {
        position: static;
        margin: 20px auto;
        width: 90%;
        max-width: 320px;
    }
}

.study-time-tracker {
    position: absolute;
    top: 20px;
    right: 50px;
    background-color: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1.5px solid rgba(255, 255, 255, 0.06);
    border-radius: 8px;
    color: white;
    padding: 10px 20px;
    z-index: 98;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.study-time-tracker:hover {
    background-color: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
}

.auth-links label{
    color: white;
}