/* CSS for Login page */

.bg-login {
    background-color: #FDEFF0;
}

.login-title-bg {
    background: linear-gradient(90deg, #A32838, #FA913C); 
    background-clip: text;
    color: transparent;
}

.login-title {
    font-weight: bold;
    letter-spacing: normal;
}

.btn-polyu-connect {
    --bs-btn-color: #fff;
    --bs-btn-bg: #a02437;
    --bs-btn-border-color: #a02437;
    --bs-btn-hover-color: #fff;
    --bs-btn-hover-bg: #a02437;
    --bs-btn-hover-border-color: #a02437;
    --bs-btn-focus-shadow-rgb: 49,132,253;
    --bs-btn-active-color: #fff;
    --bs-btn-active-bg: #a02437;
    --bs-btn-active-border-color: #a02437;
    --bs-btn-active-shadow: inset 0 3px 5px rgba(0, 0, 0, 0.125);
    --bs-btn-disabled-color: #fff;
    --bs-btn-disabled-bg: #a02437;
    --bs-btn-disabled-border-color: #a02437;
}

.blue-text{
    color: #1092e7;
    font-weight: 700;
}

.move-left {
    margin-left: 0px; 
}

@media (min-width: 1200px) {
    .move-left {
        margin-left: -50px; 
    }
}

/* CSS for Import page */
.upload-button {
    margin-top: 20px;
}
.upload-button input[type="submit"] {
    padding: 10px 20px;
    background-color: #007bff;
    color: #fff;
    text-decoration: none;
    border-radius: 5px;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s;
}
.upload-button input[type="submit"]:hover {
    background-color: #0056b3;
}

/* CSS for Module list page */
.module-card {
    transition: transform 0.5s;
}

.module-card:hover {
    transform: scale(1.1);
}

.module-card .module-content {
    padding: 20px;
}

.module-card h5 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.module-card p {
    font-size: 1rem;
    color: #000; /* Override Bootstrap color */
}

.module-card a {
    text-decoration: none;
    display: block;
    color: inherit; /* Ensure text color remains correct */
}

.module-card a:hover {
    text-decoration: none;
}

.module-bg1 {
    background-color: #ffb74d; /* Ensure text color remains correct */
}

.module-bg2 {
    background-color: #04b2fa; /* Ensure text color remains correct */
}

.module-bg3 {
    background-color: #81c784; /* Ensure text color remains correct */
}

.text-lang-focus {
    color: #a02437 !important;
    font-weight: 700;
}

/* CSS for Game page */
#ansSortable, #optSortable { 
    list-style-type: none; 
    margin: 0; 
    padding: 0; 
    font-size: 0.8em;
}

#ansSortable li, #optSortable li { 
    margin: 3px 3px 3px 0; 
    padding: 10px; 
    float: left;
    text-align: center;
}

.paddingBoxAns {
    margin-left: 0px;
    padding:10px;
    border-bottom: 1px solid rgba(0,0,0,0.25);
    border-top: 3px solid rgba(0,0,0,0.25);
}

.paddingBoxOpt {
    margin-left: 0px;
    padding:10px;
    border-bottom: 3px solid rgba(0,0,0,0.25);
}

.ansHeight {
    height: 360px;
}

@media (min-width: 576px) {
    .ansHeight {
        height: 192px;
    }
}

@media (min-width: 768px) {
    .ansHeight {
        height: 144px;
    }
}

@media (min-width: 1024px) {
    .ansHeight {
        height: 144px;
    }
}

.choiceBox {
    height: 288px;
}

@media (min-width: 576px) {
    .choiceBox {
        height: 288px;
    }
}

@media (min-width: 768px) {
    .choiceBox {
        height: 192px;
    }
}

@media (min-width: 1024px) {
    .choiceBox {
        height: 144px;
    }
}

/* Add lines to the dropping area */
/*
.stripedBg {
    background: repeating-linear-gradient(
        white,
        white 61px,
        grey 61px,
        grey 64px
    );
}
*/

.li-word { 
    margin: 20px; 
    padding: 20px; 
    border: 0px solid;
    border-radius: 25px;
    box-shadow: 5px 5px 5px grey;
}

#timer {
    font-weight: bold;
}

#custom-alert-message, #custom-alert-button {
    font-size: 0.8em; /* Smaller font size */
}


/* CSS for navigation bar */
.vertical-centre {
    position: relative; 
    display: flex; 
    align-items: center;
}

.bg-polyu-navbar {
    background-color: #a02437;
    --bs-navbar-color: #fff;
    --bs-navbar-hover-color: #fdeff0;
    --bs-navbar-brand-color: #fff;
    --bs-navbar-brand-hover-color: #fdeff0;
}

/*Code to change color of active link*/
.navbar-nav .nav-item .nav-link.active {
    color: #E3DFB0; /* Vanilla */
}

.navbar-brand, .nav-link:hover {
    text-shadow: 0 0 11px rgba(255,255,255,.7); 
}

.nav-link img:hover {
    filter: drop-shadow(0 0 11px rgba(255,255,255,.7));
}

.nav-text {
    color: #fff;
}

.brand {
    padding-top: var(--bs-navbar-brand-padding-y);
    padding-bottom: var(--bs-navbar-brand-padding-y);
    margin-right: var(--bs-navbar-brand-margin-end);
    font-size: var(--bs-navbar-brand-font-size);
    color: var(--bs-navbar-brand-color);
    text-decoration: none;
    white-space: nowrap;
    font-weight: 600;
}

.disabled-link {
    pointer-events: none;
}

/* CSS for Statistic page */
.stats h3 {
    color: #3D52A0;
}

.stats h5 {
    background: linear-gradient(45deg, #7091e6 10%, #fff 60%, #fff 30%);
    border-radius: 15px 0px 15px;
    padding: 10px;
} 

.stats table {
    width: auto; 
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
}

.best-time {
    color: gray;
}

/* CSS for Leaderboard */
.leaderboard-title {
    background: linear-gradient(90deg, #A32838, #FA913C); 
    background-clip: text;
    color: transparent;
    font-weight: 700;
}

.leaderboard-subtitle {
    color: grey;
    letter-spacing: 0.1rem;
}

.running-up {
    font-size: 24px;
}

.champion {
    font-size: 28px;
}

.leaders-block {
    height: 400px;
}

.champion-bg {
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(216,236,251,1) 100%);
    height: 320px;
    border-radius: 20px 20px 0px 0px;
}

.first-runner-up-bg {
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(184,219,247,1) 100%);
    height: 300px;
    border-radius: 20px 20px 0px 0px;
}

.secnond-runner-up-bg {
    background: linear-gradient(0deg, rgba(255,255,255,1) 0%, rgba(184,219,247,1) 100%);
    height: 280px;
    border-radius: 20px 20px 0px 0px;
}

.leaderboard-img {
    width: 150px;
}

.mb-first-runner-up {
    margin-bottom: 0rem;
}

.mb-champion {
    margin-bottom: 1rem;
}

.mb-second-runner-up {
    margin-bottom: 0rem;
}

.text-time {
    font-size: 22px;
}

.text-div {
    height: 130px;
 }

@media (max-width: 576px) {
    .leaderboard-subtitle {
        letter-spacing: 0rem;
        font-size: small;
    }

    .leaderboard-img {
        width: 80px;
    }

    .running-up {
        font-size: 15px;
    }
    
    .champion {
        font-size: 18px;
    }

    .mb-first-runner-up {
       margin-bottom: 5rem;
    }

    .mb-champion {
        margin-bottom: 6rem;
    }

    .mb-second-runner-up {
        margin-bottom: 4rem;
    }

    .text-div {
        height: 100px;
    }

    .text-time {
        font-size: 18px;
    }

    tr {
        font-size: 15px;
    }
}

@media (min-width: 576px) and (max-width: 1024px) {
    .leaderboard-img {
        width: 120px;
    }

    .mb-first-runner-up {
        margin-bottom: 2rem;
     }
 
     .mb-champion {
         margin-bottom: 3rem;
     }
 
     .mb-second-runner-up {
         margin-bottom: 1rem;
     }

    .running-up {
        font-size: 18px !important;
    }
    
    .champion {
        font-size: 20px !important;
    }

    .text-div {
        height: 120px;
    }

    .text-time {
        font-size: 20px !important;
    }

}

/* CSS for header and footer */
.header {
    height: 60px;
    margin-left: 10px;
}

.header img {
    height: 100%; /* Ensures the images are the same height as the header */
}

.footer {
    position: fixed;
    bottom: 0;
    width: 100%;
    height: 60px;
    background-color: #404040;
    color: lightgrey;
    text-align: center;
    line-height: 60px;
    font-size: 0.8rem;
}