/*
=============
    RESET
=============
*/
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/*
==============
    GLOBAL
==============
*/
body {
    background-image: url("/images/bg.png");
    background-size: cover;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: "Roboto", Arial, sans-serif;
    color: #10178D;
}

a {
    color: #9E32C8;
    text-decoration: none;
    transition: color 0.2s ease;
}

a:hover {
    color: #7904A8;
}

/*
================
    HEADINGS
================
*/
h1, h2, h3, h4, h5 {
    font-family: "Verdana", Arial, sans-serif;
    color: #10178D;
    text-align: center;
}

h1 { font-size: 44px; margin: 30px 0; }
h2 { font-size: 40px; margin: 30px 0; }
h3 { font-size: 36px; margin: 30px 0; }
h4 { font-size: 32px; margin: 20px 0; }
h5 { font-size: 28px; margin: 20px 0; }

/*
===================================================
    CONTENT CONTAINER    (3-Column Home Layout)
===================================================
*/
.content-container {
    display: flex;
    max-width: 70%;
    margin: 30px auto 0;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
}

.content-left-section {
    width: 25%;
    padding: 20px 15px;
    border-right: 2px solid #7904A8;
}

.content-main-section {
    width: 50%;
    padding: 20px;
    border-right: 2px solid #7904A8;
}

.content-right-section {
    width: 25%;
    padding: 20px 15px;
}

/*
===================
    SERVER TIME
===================
*/
.server-time {
    text-align: center;
    color: #10178D;
    font-size: 20px;
    font-weight: bold;
    padding-bottom: 12px;
    margin-bottom: 16px;
    position: relative;
}

.server-time::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    height: 2px;
    background-color: #7904A8;
}

/*
======================
    MESSAGE MODULE
======================
*/
.message-module {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 18, 70, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.message-module.active {
    display: flex;
}

.message-content {
    background-color: #FFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(16, 23, 141, 0.3);
    text-align: center;
    position: relative;
    width: 360px;
    max-width: 90%;
}

.close-message {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #7904A8;
}

/*
=======================
    RECOVERY MODULE
=======================
*/
.recovery-module {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 18, 70, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 2000;
}

.recovery-module.active {
    display: flex;
}

.recovery-content {
    background-color: #FFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 30px rgba(16, 23, 141, 0.3);
    text-align: center;
    position: relative;
    width: 420px;
    max-width: 90%;
}

.close-recovery {
    position: absolute;
    top: 12px;
    right: 18px;
    font-size: 22px;
    cursor: pointer;
    color: #7904A8;
}

/*
=====================
    LOGOUT MODAL
=====================
*/
.logout-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(15, 18, 70, 0.4);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.logout-modal-content {
    background-color: #FFF;
    padding: 40px;
    border-radius: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    text-align: center;
    width: 300px;
    max-width: 90%;
}

.loading-spinner {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100px;
    margin: 20px auto 0;
}

.dot {
    width: 10px;
    height: 10px;
    background-color: #10178D;
    border-radius: 50%;
    animation: dot-fade 1.2s infinite ease-in-out both;
}

.dot:nth-child(1) { animation-delay: -1.1s; }
.dot:nth-child(2) { animation-delay: -1.0s; }
.dot:nth-child(3) { animation-delay: -0.9s; }
.dot:nth-child(4) { animation-delay: -0.8s; }
.dot:nth-child(5) { animation-delay: -0.7s; }
.dot:nth-child(6) { animation-delay: -0.6s; }

@keyframes dot-fade {
    0%, 80%, 100% {
        opacity: 0;
    }

    40% {
        opacity: 1;
    }
}


/*
================================
    RESPONSIVE - SMALL PHONE
================================
*/
@media only screen and (max-width: 480px) {
    h1 { font-size: 26px; }
    h2 { font-size: 22px; }
    h3 { font-size: 20px; }
    h4 { font-size: 18px; }
    h5 { font-size: 16px; }

    .content-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        margin-top: 10px;
    }

    .content-left-section,
    .content-main-section,
    .content-right-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #7904A8;
    }

    .content-right-section {
        border-bottom: none;
    }

    .server-time {
        font-size: 16px;
    }
}

/*
===========================
    RESPONSIVE - MOBILE
===========================
*/
@media only screen and (max-width: 768px) {
    h1 { font-size: 30px; }
    h2 { font-size: 26px; }
    h3 { font-size: 22px; }
    h4 { font-size: 20px; }
    h5 { font-size: 18px; }

    .content-container {
        flex-direction: column;
        max-width: 100%;
        border-radius: 0;
        margin-top: 15px;
    }

    .content-left-section,
    .content-main-section,
    .content-right-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #7904A8;
    }

    .content-right-section {
        border-bottom: none;
    }

    .server-time {
        font-size: 17px;
    }
}

/*
===========================
    RESPONSIVE - TABLET
===========================
*/
@media (min-width: 769px) and (max-width: 1024px) {
    h1 { font-size: 36px; }
    h2 { font-size: 32px; }
    h3 { font-size: 28px; }
    h4 { font-size: 24px; }
    h5 { font-size: 20px; }

    .content-container {
        flex-direction: column;
        max-width: 95%;
    }

    .content-left-section,
    .content-main-section,
    .content-right-section {
        width: 100%;
        border-right: none;
        border-bottom: 2px solid #7904A8;
    }

    .content-right-section {
        border-bottom: none;
    }

    .server-time {
        font-size: 18px;
    }
}