footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    text-align: center;
}

.primary_color_bg{
 background-color: #0e184d;
}

.secondary_color_bg{
    background-color: #d01013;
}

.primary_color{
    color: #0e184d;
}
   
.secondary_color{
    color: #d01013;
}

header{
    position: fixed;
}

.link{
    text-decoration: none;
}
.link:hover, .link:active{
    color: #9c27b0; 
}

@media screen and (min-width: 601px) {
    .mySlides {
        width: 600px;
    }
}
@media screen and (max-width: 600px) {
    .mySlides {
        width: 100%;
    }
}


/* ==========================================
   Exercise Viewer — Modern UI
   ========================================== */

body{
    background-color:#f4f6fb;
    font-family:"Segoe UI", Arial, sans-serif;
    color:#333;
}

/* Title */
.exercise-title-bar{
    text-align:center;
    padding-top:26px;
}

#title{
    font-weight:600;
    font-size:22px;
    margin:0;
}

/* Layout containers */
#slides,
#status,
#answers,
#buttons,
#answer_status{
    max-width:900px;
    margin-left:auto;
    margin-right:auto;
}

/* Slide card */
#slides{
    margin-top:24px;
    padding:24px 24px 16px !important;
    background:#ffffff;
    border-radius:16px;
    box-shadow:0 18px 35px rgba(15,23,42,0.08);
}

.mySlides{
    display:block;
    margin-left:auto;
    margin-right:auto;
    max-width:100%;
    border-radius:12px;
    box-shadow:0 14px 28px rgba(15,23,42,0.18);
}

/* Arrows */
.arrow-container{
    max-width:900px;
    margin:0 auto;
}

.arrow{
    border-radius:999px;
    margin-top:24px;
    width:42px;
    height:42px;
    padding:8px 0;
    box-shadow:0 10px 20px rgba(15,23,42,0.12);
}

/* Question status */
#status{
    margin-top:12px;
    font-size:15px;
    color:#555;
}

#quest_num{
    min-width:26px;
    border-radius:999px;
    background-color:#0f9d58;
}

/* Answer box */
#answers textarea{
    margin-top:8px;
    min-height:80px;
    border-radius:10px;
    box-shadow:0 10px 24px rgba(15,23,42,0.06);
}

/* Buttons bar */
#buttons .w3-bar{
    max-width:900px;
    margin:16px auto 0;
}

#buttons .w3-button{
    border-radius:999px;
    padding:8px 18px;
}

/* Teacher button */
#button_see{
    background-color:#f1f1f1;
    color:#333;
}

#button_see:hover{
    background-color:#e0e0e0;
}

/* Save button */
#button_send{
    background-color:#3f51b5;
    color:#fff;
}

#button_send:hover{
    background-color:#303f9f;
}

/* Loader */
#loading{
    width:40px;
    height:40px;
    animation-name:spin;
    animation-duration:5000ms;
    animation-iteration-count:infinite;
    animation-timing-function:linear; 
}

@keyframes spin {
    from { transform:rotate(0deg);}
    to   { transform:rotate(360deg);}
}

/* Mobile adjustments */
@media screen and (max-width: 600px) {
    #slides{
        padding:16px 10px !important;
    }
}
