/* ============================================= */
/*                  VARIABLES                    */
/* ============================================= */
:root {
    --yellow: #f5f410;
    --magenta: #8B008B;
    --primary-color: #6a11cb;
    --secondary-color: #2575fc;
    --highlight-color: #ff2d75;
    --light-bg: #f8f9fa;
}

/* ============================================= */
/*               GLOBAL STYLES                   */
/* ============================================= */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

a:hover {
    text-decoration: none;    
}

::-webkit-scrollbar {
    width: 0.2em;
    height: 2em;
}
::-webkit-scrollbar-button {
    background: white;
}
::-webkit-scrollbar-track-piece {
    background: white;
}
::-webkit-scrollbar-thumb {
    background: white;
}

/* ============================================= */
/*               LAYOUT STYLES                   */
/* ============================================= */
section {
    padding-top: 6%;
    padding-bottom: 4%; 
}

.section-box {
    border: 1px solid lightgrey;
    box-shadow: 2px 2px 2px 2px lightgrey;
    margin: 2%;
}

.box {
    box-shadow: 2px 2px 5px 2px lightgray; 
    padding: 15px;
    margin-bottom: 20px;
    z-index: 1;
}

.box button, a {
    width: 100%;
    white-space: normal !important;
}

.full-screen {
    width: 100%;
    min-height: 100%;
    height: auto;
    position: absolute;
    top: 20%;
    left: 0;
    z-index: 1;
}

.div-text-center {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* ============================================= */
/*               COMPONENT STYLES                */
/* ============================================= */
/* Navigation */
#mySidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 999;
    top: 0;
    right: 0;
    background-color: white;
    overflow-x: hidden;
    transition: 0.3s;
    padding-top: 60px;
}

#mySidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 15px;
    color: black;
    display: block;
    transition: 0.3s;
}

#mySidenav a:hover {
    color: #f1f1f1;
}

#mySidenav .closebtn {
    position: absolute;
    top: 0;
    left: 10px;
    font-size: 36px;
}

.menu-box {
    top: 250px;
    left: 80%;
    z-index: 1; 
    position: absolute;
    background-color: lightgrey;
    color: white;
    font-weight: 500;
    font-size: 12px;
}

.black_nav {
    background-color: black;
    color: white;
    border-radius: 20px;
    display: block;
    overflow-x: auto;
    white-space: nowrap;
    padding: 15px;
}

.black_nav::-webkit-scrollbar {
    width: 5px;
    height: 5px;
}

.nav-2 { 
    background-image: linear-gradient(45deg, ghostwhite 40%, white);
    border-radius: 5px;
}

/* Cards */
.card {
    border-radius: 10px;
    margin-top: 5px;
    margin-bottom: 5px;
}

.circle_card {
    width: 100px;
    height: 100px;
    background-color: var(--magenta);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    padding: 10px;
    border-radius: 67%;
}

/* Forms */
.srch_btn {
    border-radius: 1px 20px 20px 0px;
}

.srch_form {
    background-color: white;
    border-radius: 20px;
}

.srch_box {    
    border-radius: 20px;
}

/* Buttons */
.yellow_btn {
    border: 2px solid black;
    background-color: var(--yellow);
    border-radius: 20px;
    padding: 8px;
    text-align: center;
    color: black;
}

.black_btn {
    border: 2px solid black;
    background-color: black;
    border-radius: 20px;
    padding: 8px;
    box-shadow: 0px 2px 0px 0px black;
    text-align: center;
    color: white;
}

.active_nav {
    max-width: fit-content;
    background-color: var(--yellow);
    padding: 5px !important;
    color: black !important;
    border-radius: 5px;
    margin-top: 5px;
    margin-bottom: 5px;
}

/* ============================================= */
/*               UTILITY CLASSES                 */
/* ============================================= */
/* Backgrounds */
.bg_gwhite { background-color: ghostwhite; }
.bg_white { background-color: white; }
.bg_yellow { background-color: var(--yellow); }
.bg_black { background-color: black; }
.bg_gray { background-color: lightgray; }
.bg_none { background-color: transparent; }

/* Text Colors */
.text-black { color: black; }
.text-magenta { color: var(--magenta) !important; }
.text-red { color: red; }
.text-gray { color: lightgray !important; }
.text-green { color: green; }

/* Font Sizes */
.f-10 { font-size: 10px; }
.f-12 { font-size: 12px; }
.f-14 { font-size: 14px; }
.f-16 { font-size: 16px; }
.f_100 { font-size: 100%; }
.fs_r { font-size: 7vw; }

/* Margins */
.mg_10 { margin: 10px 10px 10px 10px; }
.mg_15 { margin: 15px 15px 15px 15px; }
.mrb-0 { margin-bottom: 0px; }

/* Paddings */
.pd-0 { padding: 0px !important; }
.pd-10 { padding: 10px; }
.pd-25 { padding: 25px; }

/* Width */
.w_100 { width: 100%; }
.w-fc {
    max-width: fit-content;
    min-width: 120px;
}

/* ============================================= */
/*               SPECIAL ELEMENTS                */
/* ============================================= */
/* Images */
.logo_img {
    width: 90px; 
    height: 100px;
}

.blog_img {
    width: 100%;
    height: 250px;
}

.section_img {
    width: 80%;
    height: 250px;
}

/* Lines */
.hr_magenta {
    background-color: var(--magenta);
    width: 100%;
    border: 1px solid var(--magenta);
}

/* Curves */
.inverted-curve-section {
    position: relative;    
    background-color: white;
    padding: 10vw 0;
    height: 5px;
}

.inverted-curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

.curved-section {
    position: relative;
    background-color: var(--yellow);
    padding: 10vw 0;
}

.curve {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: auto;
}

/* Message Box */
.message-box {
    width: 90%;
    max-width: 400px;
    padding: 20px;
    text-align: center;
    background-color: #fff;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.message-box h1 {
    font-size: 1.5rem;
    margin: 0 0 10px;
    color: #333;
}

.message-box p {
    margin: 0 0 15px;
    color: #666;
}

.background {
    position: absolute;
    top: 2%;
    left: 10%;
    bottom: 0;
    right: 0;
    z-index: -1;
    color: lightgray;
    font-size: 40px;
    border-radius: 5%;
    border: 1px solid lightgray;
    height: 90%;
    text-align: center;
    width: 80%;
    padding: 10%;
}

/* ============================================= */
/*               MEDIA QUERIES                   */
/* ============================================= */
@media only screen and (max-width: 600px) {
    iframe {
        width: 100%;
        height: 500px;
    }
    
    .fs_r {
        font-size: 7vw;
    }

    #chat_win {
        min-height: 52vw;
    }
    
    .section-box {
        margin: 2%;
    }
    
    section {
        padding-top: 6%;
        padding-bottom: 4%; 
    }  
    
    .mb-h { display: none; }

    .section_img {
        height: 250px;
    }
}

@media only screen and (min-width: 601px) {
    iframe {
        width: 100%;
        height: 800px;
    }
    
    .nav_ht { height: 14%; }
    
    .fs_r {
        font-size: 3vw;
    }

    #chat_win {
        min-height: 25vw;
    }
    
    .section-box {
        margin: 1%;
    }
    
    .win-h { display: none; }
    
    section {
        padding-top: 3%;
        padding-bottom: 4%; 
    }

    .section_img {
        height: 400px;
    }
}

@media (max-width: 768px) {
    .welcome-title {
        font-size: 2rem;
    }
    
    .action-buttons .btn {
        width: 100%;
        margin-bottom: 10px;
    }
}

/* ============================================= */
/*               BOOTSTRAP OVERRIDES             */
/* ============================================= */
.navbar-collapse {
    background-color: white;
    z-index: 1;
    padding: 10px;
    line-height: 50px;
}

.nav-link {
    color: black; 
    font-weight: 700; 
    padding: 0px;   
    cursor: pointer;     
}

/* ============================================= */
/*               NEW STYLES                      */
/* ============================================= */
/* Section styling */
.section-title {
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 1.5rem;
}

.highlight-text {
    color: var(--highlight-color);
}

/* Card styling */
.card {
    border: none;
    border-radius: 12px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Welcome section */
.welcome-card {
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: white;
    border-radius: 15px;
    overflow: hidden;
}

.welcome-title {
    font-weight: 800;
    font-size: 2.5rem;
}

.welcome-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

/* Info items */
.info-item {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #eee;
}

.info-label {
    font-weight: 600;
    color: #555;
    min-width: 120px;
    display: inline-block;
}

.info-value {
    color: #333;
}

/* Login section */
.login-section {
    background: url('https://lecturehome.com/images/bg-pattern.png') no-repeat center center;
    background-size: cover;
}

.login-card {
    border-radius: 15px;
}

.promo-card {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
}

.promo-icon {
    font-size: 2.5rem;
    color: var(--highlight-color);
}

/* Birthday section */
.birthday-img {
    border: 5px solid white;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.birthday-name {
    color: var(--primary-color);
    font-weight: 700;
}

.birthday-wishes {
    font-style: italic;
    color: #666;
}