body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    padding: 20px;
    display: flex;
    flex-direction: column; /* Arrange items vertically */
    align-items: center;   /* Center items horizontally */
    justify-content: center; /* Center items vertically */
    background-color: #1d1d52;
    overflow-x:hidden;
}
.background {
    position: fixed;
    top: 0;
    left: 0;
    width: 50vw;
    height: 50vh;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: repeat(3, 1fr);
    gap: 0;
    opacity: 0.9;
}
h1, h2 {
    margin-bottom: 10px;
    color: black;
}
.equation {
    margin-bottom: 10px;
}
.task {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #f4f4f4;
    border-radius: 4px;
    text-align: justify;
}
.task img {
    display: block;
    margin: 20px auto;
    max-width: 100%;
    height: auto;
}
.note {
    margin-top:10px;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #d6d6d6;
    border-radius: 4px;
    text-align: justify;
}
.hint-toggle {
    margin-bottom: 0;
    padding: 10px;
    background-color: #e8ec6a;
    border: solid 1px #1d1d52;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.hint-toggle i {
    transition: transform 0.3s ease;
}
.hint-toggle.active i {
    transform: rotate(180deg);
}
.hint-content {
    display: none;
    margin-bottom: 20px;
    padding: 20px;
    background-color: #e8ec6a;
    border: solid 1px #333;
    border-top: none;
    border-radius: 0 0 4px 4px;
    text-align: justify;
    align-items: center;
}
.link-boxes {
    display: flex;
    justify-content: space-between;
    margin-top: 0rem;           
    align-items: flex-end;
    margin-top: 0rem;
    
}
.link-box {
    background-color: #93969b;
    padding: 1rem;
    margin: 0 0.5rem;
    border: 1px solid #1d1d52;
    border-radius: 10px;
    text-align: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
    width: 250px;
    height: 30%;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: inherit; 
    text-decoration: inherit; 
    color:black;     

}

.link-box:hover {
    transform: scale(1.1);
    background-color: white;
    box-shadow: 0 0 10px rgba(249, 132, 15, 0.4);
    font-weight:bold;
    color:black;
}

.link-box a {
    font-size: 1rem;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.content-wrap {
    width:100%;
    padding-bottom: 20px;
    background-color: #b9b9b9;
    border: 1px solid #1d1d52;
    border-radius: 8px;
}
.content{
    padding-left:20px;
    padding-right:20px;
}
.footers {
    position: relative;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1rem;
    
}
.logo {
    width: 100%; 
    display: block; 
    margin: auto;
    align-items: center; /* This line is unnecessary for centering the image */
    background: linear-gradient(to bottom, #dce0e8 50%, #1d1d52 50%);
    /* Add this to center the image */
    text-align: center; 
}

.logo img { /* Target the image inside .logo */
    display: inline-block; /* Allow vertical centering */
    vertical-align: middle; 
}
.context {
    width: 80%;
    position: absolute;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 85vh;
    transition: opacity 0.4s ease-in-out;
}

.context h1{
    text-align: center;
    color: black;
    font-size: 50px;
}


.area{
    background: #1d1d51;  
    background: -webkit-linear-gradient(to left, #eaa612, #4e54c8);  
    width: 100%;
    height:100vh;
    
}

.circles{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.circles li{
    position: absolute;
    display: block;
    list-style: none;
    width: 20px;
    height: 20px;
    background: rgba(255, 255, 255, 0.2);
    animation: animate 25s linear infinite;
    bottom: -150px;
    text-align: center;
}

.circles li:nth-child(1){
    left: 25%;
    width: 80px;
    height: 80px;
    animation-delay: 0s;
}


.circles li:nth-child(2){
    left: 10%;
    width: 20px;
    height: 20px;
    animation-delay: 2s;
    animation-duration: 12s;
}

.circles li:nth-child(3){
    left: 70%;
    width: 20px;
    height: 20px;
    animation-delay: 4s;
}

.circles li:nth-child(4){
    left: 40%;
    width: 60px;
    height: 60px;
    animation-delay: 0s;
    animation-duration: 18s;
}

.circles li:nth-child(5){
    left: 65%;
    width: 20px;
    height: 20px;
    animation-delay: 0s;
}

.circles li:nth-child(6){
    left: 75%;
    width: 110px;
    height: 110px;
    animation-delay: 3s;
}

.circles li:nth-child(7){
    left: 35%;
    width: 150px;
    height: 150px;
    animation-delay: 7s;
}

.circles li:nth-child(8){
    left: 50%;
    width: 25px;
    height: 25px;
    animation-delay: 15s;
    animation-duration: 45s;
}

.circles li:nth-child(9){
    left: 20%;
    width: 15px;
    height: 15px;
    animation-delay: 2s;
    animation-duration: 35s;
}

.circles li:nth-child(10){
    left: 85%;
    width: 150px;
    height: 150px;
    animation-delay: 0s;
    animation-duration: 11s;
}



@keyframes animate {

    0%{
        transform: translateY(0) rotate(0deg);
        opacity: 1;
        border-radius: 0;
    }

    100%{
        transform: translateY(-1000px) rotate(720deg);
        opacity: 0;
        border-radius: 50%;
    }

}
.slideshow-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.slide {
    min-width: 100%;
    box-sizing: border-box;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    padding: 16px;
    margin-top: -22px;
    color: white;
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    z-index: 2; /* Ensure buttons are above other elements */
    background-color: rgba(0, 0, 0, 0.2); /* Add background color for visibility */
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.8);
}

select {
    padding: 10px;
    margin: 10px 0;
    border: 1px solid #1d1d52;
    border-radius: 4px;
    background-color: #e8ec6a; /* Changed background color */
    color: #1d1d52;
    font-size: 1rem;
}

button {
    padding: 10px 20px;
    margin: 10px 0;
    border: none;
    border-radius: 4px;
    background-color: #1d1d52;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: #4e54c8;
}

#calendar {
    width: 70%;
    max-height: 80%;
    margin: auto;
    padding: 1rem;
    opacity: 0.9;
    background-color: #ffffffce;
    border-radius: 10px;
}

#calendar table, #calendar th, #calendar td {
    border: 1px solid #1d1d51;
}

#calendar > div.fc-view-harness.fc-view-harness-active {
    background: url('/daily/img/calendar_logo.png') no-repeat center center;
    background-size: contain;
}



#choose-date-btn {
    display: none;
    margin-bottom: 20px;
    padding: 10px 20px;
    border: none;
    border-radius: 4px;
    background-color: #1d1d52;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
#choose-date-btn:hover {
    background-color: #4e54c8;
}
.slideshow-container {
    width: 100%;
    position: relative;
    overflow: hidden;
}
.slides {
    display: flex;
    transition: transform 0.5s ease-in-out;
}
.slide {
    min-width: 100%;
    box-sizing: border-box;
}
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
}
.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    max-height: 80%;
    overflow-y: scroll;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    scrollbar-width: none; /* For Firefox */
}

.modal-content::-webkit-scrollbar {
    display: none; /* For Chrome, Safari, and Opera */
}

#modal-date-title {
    position: sticky;
    top: 0;
    background-color: #147dc8;
    color: #fff;
    z-index: 1;
    padding: 10px;
    border-bottom: 1px solid #ddd;
    border-radius: 10px;
}

#modal-exercise-titles {
    margin-top: 20px;
    font-weight: bold;
}

#modal-exercise-titles div {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #f4f4f4;
    border-radius: 4px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#modal-exercise-titles img {
    display: block;
    margin: 10px auto;
    max-width: 80%;
    height: auto;
    border-radius: 4px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

#modal-exercise-titles h4 {
    margin: 10px 0;
    font-size: 1.2rem;
    color: #333;
}
.close-modal-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

#view-exercises-btn{
    margin-bottom: 20px;
    width: 100%;
    padding: 10px 20px;
    background-color: #1d1d52;
    color: white;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#view-exercises-btn:hover {
    background-color: #147dc8;
}