@font-face {
    font-family: 'Cupid Love';
    src: url('fonts/cute_love-webfont.woff2') format('woff2'),
         url('fonts/cute_love-webfont.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Marykate Regular';
    src: url('font5/Marykate\ Regular.woff2') format('woff2'),
         url('font5/Marykate\ Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background: #FCF4DF;
    color: rgb(88, 83, 83);
    text-align: center;
    font-family: 'Cupid Love', Arial, sans-serif;
    flex-direction: column;
}

#background-video-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: -1;
}

#background-video {
    width: 100%;
    height: 100%;
}

.spotify-embed {
    position: relative;
    padding-top: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
  }
  
.spotify-embed iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 20%;
    height: 20%;
  }
  

.container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
  }

.containertimer, .Todolist {
    border-radius: 16px;
    padding: 30px;
    width: 350px;
    text-align: center;
    position: relative;
    cursor: move;
  }


#draggable-container {
    width: 300px;
    height: auto;
    padding: 20px;
    background-color: #FCF4DF;
    border: 2px solid #ab8e72;
    border-radius: 28px;
    cursor: move;
    position: absolute; 
    top: 380px;
}

#draggable-container1 {
    width: auto;
    height: auto;
    padding: 20px;
    background-color: #FCF4DF;
    border: 2px solid #ab8e72;
    border-radius: 28px;
    cursor: move;
    position: absolute;
    top: 80px;
}

.buttons, .mode-buttons {
    display: flex;
    gap: 1vw;
    justify-content: center;
    margin-top: 1.5vw;
}


button {
    background: #F48FB1;
    color: white;
    border: none;
    padding: 6px 10px;
    font-size: 1.2vw;
    border-radius: 5px;
    cursor: pointer;
}

button:hover {
    background: #F06292;
}

.time-display {
    font-size: 6vw;
    font-weight: bold;
    margin-top: 30px;
}

.mode-buttons button {
    background: transparent;
   /* border: 1px solid #ab8e72;*/
    color: #ffffff;
    padding: 7px 10px;
    font-size: 1.2vw;
    border-radius: 10px;
    cursor: pointer;
    background: #F48FB1;
    margin-top: 0px;
}

.mode-buttons button.active {
    background: #F06292;
}

.youtube-input {
    width: 50%;
    display: flex;
    gap: 1vw;
    justify-content: center;
    z-index: 10;
    position: absolute;
    bottom: 60px;
}

.youtube-input input {
    padding: 0.8vw;
    width: 50%;
    border-radius: 28px;
    border: none;
    outline: none;
    font-size: 1.2vw;
}

#youtube-url {
    border: 2px solid #ab8e72;
}


#Todolist {
    margin-top: 10px;
} 

.task-input {
    display: flex;
    justify-content: space-between;
}

#new-task {
    width: 62%;
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

#add-task-btn {
    padding: 6px;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}

.task-content {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between checkbox and text */
    flex: 1; /* allows task content to fill space */
}

.task-buttons {
    display: flex;
    align-items: center;
    gap: 10px; /* spacing between edit and delete */
}

#add-task-btn:hover {
    background-color: #45a049;
}

li:hover .task-buttons {
    opacity: 1;
}

ul {
    list-style-type: none;
    padding: 0;
    margin-top: 10px;
}

li {
    display: flex;
    align-items: center;
    border-bottom: 1px solid #d7bea7;
    padding: 10px;
}

li.checked .task-text {
    text-decoration: line-through;
    color: #393939;
}

input[type="checkbox"] {
    width: 20px;
    height: 20px;
    background-color: #fff;
    border: 2px solid #ccc;
    border-radius: 4px;
    cursor: pointer;
    position: relative;
    transition: background-color 0.3s ease;
}

span {
    cursor: pointer;
    padding: 5px;
    font-size: 40px;
}

.icon-group {
    display: flex;
    align-items: center;
    gap: 7px; /* spacing between the icons */
    padding: 4px;
    border-radius: 6px;
}


.edit-btn, .delete-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    background: none;


}

.edit-btn:hover {
    background-color: #f0f0f0;
}

.delete-btn:hover {
    background-color: #f0f0f0;
}


.edit-btn i {
    color: #4CAF50;
}

.delete-btn i {
    color: #FF6347;
}


.edit-btn:hover i {
    color: #45a049;
}

.delete-btn:hover i {
    color: #d9534f;
}

.LogIn {
  position: absolute;   /* ให้ออกจาก flow ปกติ */
  top: 20px;            /* ระยะจากขอบบน */
  right: 20px;          /* ระยะจากขอบขวา */
  border: none;
  border-radius: 8px;
}

.study-card {
    background:#FCF4DF;
    border:2px solid #ab8e72;
    border-radius:28px;
    padding:30px;
    width:220px
}

.streak-badge { 
    display:inline-block;
    font-family: 'Marykate Regular', Arial, sans-serif;
    background:#FFF1A8;
    border:2px solid #c7b56a;
    padding:6px 10px;
    font-size: 28px;
    border-radius:12px;
    margin:6px 0 12px
}

.goal-row { 
    margin:4px 0 8px;
    font-size: 28px;
    
}

.progress-outer { 
    height:10px;
    background:#b0b0b0;
    border-radius:6px;
    overflow:hidden;
    margin:8px 0 18px
}

.progress-inner{
    height:100%;
    background:#f7a2b8;
    width:0%;
    transition: width .3s ease
}

.totals .vertical{
  display: flex;
  flex-direction: column;
  align-items: center;     
  gap: 16px;                
  margin-top: 20px;
}


.label {
    font-size: 28px;
    font-family: 'Marykate Regular', Arial, sans-serif;
}
.value { 
    font-size: 36px;
    font-family: 'Marykate Regular', Arial, sans-serif;
}

.total-block {
  text-align: center;    
}

/* Initially hide the tab */
.hidden-tab {
    display: none;
    background-color: #f1f1f1;
    padding: 20px;
    border: 1px solid #ccc;
    margin-top: 20px;
}

/* Styling for the button */
#toggleTabBtn {
    padding: 10px 20px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
}

#toggleTabBtn:hover {
    background-color: #0056b3;
}

/* Position study-dashboard in middle-left */
#study-dashboard {
    position: fixed;
    left: 70px;              /* Distance from left edge */
    top: 50%;                /* Middle of viewport vertically */
    transform: translateY(-50%); /* Center it perfectly */
    z-index: 5;
    /* Keep your existing styles */
    background: #FCF4DF;
    border: 2px solid #ab8e72;
    border-radius: 28px;
    padding: 30px;
    width: 200px;
    display: none;           /* Hidden by default */
}

/* Position SVG element in middle-left (next to or overlapping dashboard) */
#vector-line {
    position: fixed;
    left: -10px;              /* Slightly more to the left than dashboard */
    top: 50%;                /* Middle of viewport vertically */
    transform: translateY(-50%); /* Center it perfectly */
    cursor: pointer;
    z-index: 10;             /* Above the dashboard */
    transition: all 0.2s ease;
}

/* Hover effect for SVG */
#vector-line:hover{
    opacity: 0.7;
    transform: translateY(-50%) scale(1.05);
}
/* Alternative: Position SVG on the right side of the dashboard */
.svg-right-of-dashboard {
    left: 320px;             /* Dashboard width (220px) + padding + gap */
}

/* Alternative: Position SVG above the dashboard */
.svg-above-dashboard {
    left: 50px;              /* Same as dashboard */
    top: calc(50% - 150px);  /* Above the dashboard */
}






