/* Copyright © 2026 YourQuiz. All rights reserved. */


/* ================= BASIC ================= */
body{
    margin:0;
    font-family:Arial, Helvetica, sans-serif;
    height: 100vh;
}

/* ================= HEADER ================= START */
.top-header{
    width:clamp(1400px, 99vw, 1415px);
    margin:1px auto;        /* 1px gap between header, container and footer */
    border-radius:5px;
    border:2px solid #1398cd;
    background:#1398cd;
}

/* HEADER GRID */
.header-grid{
    min-height:92px;
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    align-items:center;
}

/* --------------- LEFT SIDE  of the top header ------------------  */
.left-side{
display:grid;
grid-template-columns:auto 1fr; /* logo + flexible space */
align-items:center;
}

/* ---------------------- LOGO ------------------------  */
.logo{
display:flex;                /* keeps icon + text on same line */
align-items:center;
gap:5px;
margin-left:19px;            /* exactly what you wanted */

}

.logo h1{
margin:0;
font-size:36px;
color:#fff;
white-space:nowrap;
}

.logo a {
    color: #fff;
    text-decoration: none;
}

/* NAVBAR AREA (used only to center the button) */
.navbar{
display:flex;
justify-content:center; /* centers the Home button */
}

/* ---------  Home button on the Top Header ------------------ */
.Home-btn {
border-radius:999px;
padding:6px 15px;
font-size:18px;
cursor:pointer;
white-space:nowrap;
border:2px solid #9e9e9e;
background:#1398cd;
color:#fff;
transition:all 0.2s ease;
}

.Home-btn:hover {
background:#0f7fb0;
border:2px solid #9e9e9e;
color:#fff;
}


/* ---------  Home, and Quiz buttons dropdown functionality ------- START  ----- */
.dropdown { 
    position: relative; 
    display: inline-block;
    align-items: center;  
}

.dropdown-content {
    display: none;  /* Hidden by default */
    position: absolute;
    background-color: #f9f9f9;
    min-width: 170px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 7px;
    border: 2px solid #1398cd;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover { 
    background-color: #ddd; 
    border-radius: 5px;
}

.dropdown:hover .dropdown-content { 
    display: block; 
}

.dropdown-content a.active-link {
    background-color: #1398cd; 
    color: white !important;
    border-radius: 5px;
}
/* ---------  Home, and Quiz buttons dropdown functionality -------END  ----- */


/* -------------Leader boared for 728x90 HEADER AD on the Top header ------------ */
.board-600-90{
    width:600px;
    height:90px;
    /*background:#ddd;*/
    background-color: #1398cd; 

    display:flex;
    align-items:center;
    justify-content:center;
}


/* ---------------- RIGHT SIDE of the top header ------------------ */
.right-side{
    display:grid;
    grid-template-columns:repeat(4,auto);
    justify-content:space-evenly;
    align-items:center;
}

/* ---------  QUIZ button on the Top Header ------------------ */
.quiz-btn {
    border-radius: 999px;
    padding: 6px 15px;
    font-size: 18px;
    cursor: pointer;
    white-space: nowrap;
    border: 2px solid #9e9e9e;
    background: #1398cd;
    color: #fff;

    transition: all 0.2s ease;
}

.quiz-btn:hover {
    background: #0f7fb0;
    border: 2px solid #9e9e9e;
    color: #fff;
}

/* ---------  Home, and Quiz buttons dropdown functionality ------- START  ----- */
.dropdown-quiz { 
    position: relative; 
    display: inline-block;
    align-items: center;  
}

.dropdown-quiz-content {
    display: none;  /* Hidden by default */
    position: absolute;
    top: 100%;
    right: 0;
    left: auto;
    background-color: #f9f9f9;
    min-width: 150px;
    box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 7px;
    border: 2px solid #1398cd;
}

.dropdown-quiz-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-quiz-content a:hover { 
    background-color: #ddd; 
    border-radius: 5px;
}

.dropdown-quiz:hover .dropdown-quiz-content { 
    display: block; 
}

.dropdown-quiz-content a.active-link {
    background-color: #1398cd; 
    color: white !important;
    border-radius: 5px;
}

/* Disabled state */
.dropdown-quiz.disabled .dropdown-quiz-content a {
    pointer-events: none;
    color: #999;
}

/* Remove hover effect when disabled */
.dropdown-quiz.disabled .dropdown-quiz-content a:hover {
    background-color: #f9f9f9 !important;
}
/* ---------  Home, and Quiz buttons dropdown functionality -------END  ----- */

/* ================= HEADER ================= END */



/* ================= MIDDLE CONTAINER ================= START */
.container{
    
    width:clamp(1400px, 99vw, 1420px);
    margin:1px auto;        /* 1px gap between header, container and footer */
    border-radius:5px; 
    min-height: calc(100vh - 96px - 35px); /* 96 for top header, gaps, margin and footer*/
    
    display:grid;
    grid-template-columns:      /* width wise */
        minmax(0,342px)         /* left column shrinks first */
        minmax(610px,1fr)       /* middle column never smaller than 610px */
        minmax(0,342px);        /* right column shrinks first */

    gap:1px;   /* 1px space between columns */
}


/* ================= LEFT / RIGHT COLUMNS ================= START */
.side-column{
    border:2px solid #1398cd;
    border-radius:5px;
    overflow:hidden;

    display:flex;
    flex-direction:column;
}

/* top + bottom sections */
.column-top,
.column-bottom{
    flex:1;
    display:flex;
    align-items:center;
    justify-content:center;
}

/* Adding extra space so that corner of the ad will not poke out */
.column-top{
    border-top:10px solid #1398cd;
}
/* partition border */
.column-top{
    border-bottom:20px solid #1398cd;
}

/* Adding extra space so that corner of the ad will not poke out */
.column-bottom{
    border-bottom:10px solid #1398cd;
}

/* ------- 336x280 ADS (fixed size) in the left and right columns --------- */
.ad-container.ad-desktop-only {
    width: 336px;
    height: 280px;
    min-height: 280px;
    background: #e5e5e5;
    display: flex;
    align-items: center;
    justify-content: center;
}

.game-ad-slot {
    position: relative !important;
    width: 336px;
    height: 280px;
}



/* ================= MIDDLE COLUMN (main-content area where all quiz appears )================= */
/* Main content container */
.main-content {
    border: 2px solid #1398cd;
    border-radius: 5px;
    width: 100% !important;
    box-sizing: border-box !important; /* important to include padding & border in width */
    padding: 0 !important;
    margin: 0 !important;
}


/* These all are related to page in the the main content area ------ Start----*/
/* Hide all sections by default */
.page-section {
    display: none !important;
}

/* Only show the section with the .active class */
.page-section.active {
    display: block !important;
}

/* Optional: Smooth fade-in effect */
.page-section.active {
    animation: fadeIn 0.3s ease-in;
}

/* Only apply flex layout to content divs inside page-section, NOT title-row or promo-row */
.page-section > div:not(.title-row):not(.promo-row) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
}

/* Title row inside main-content */
.title-row {
    width: 100% !important;          /* span full width of main-content */
    display: block !important;
    text-align: center !important;
    margin: 0 !important;
    padding: 12px !important;        /* only internal spacing */
    box-sizing: border-box !important; /* include padding in width */
    background: #1398cd;
    color: #ffffff;
    border-radius: 3px 3px 0 0;
}

/* Title text */
.title-row h1 {
    margin: 0;
    font-size: 32px;
    line-height: 1;
}

/* If you want promo-row to use flex for vertical centering of text */
.promo-row {
    display: flex !important;
    justify-content: center !important; /* horizontal center */
    align-items: center !important;     /* vertical center */
    text-align: center !important;      /* extra safeguard */
    padding-top: 5px !important;
    padding-bottom: 10px !important;
    background: #1398cd;
    color: #ffffff;
}

/* Promo text */
.promo-title {
    font-weight: bold;
    font-size: 20px;
    font-family: Arial, sans-serif;
    text-align: center;
}

.title-row,
.promo-row {
    display: block !important;
    width: 100% !important;
}

.page_container {
    padding-top: 15px;
    padding-right: 50px;
    padding-bottom: 15px;
    padding-left: 60px;
}
/* ================= MIDDLE CONTAINER ================= END */


/* ================= FOOTER ================= START */
.footer{
    /*width:clamp(1400px, 99vw, 1415px);*/
    width: 1397px;
    margin:1px auto;
    border-radius:5px;
    border:2px solid #1398cd;
    background:#1398cd;

    /*min-height:92px;*/
    padding:5px 10px;

    display:flex;
    align-items:center;
    justify-content:space-between; /* distribute sections */
}

/* Left and right take equal space */
.footer .left-footer {
    flex:1;
    display:flex;
    justify-content:center;  /* horizontal center */
    align-items:center;      /* vertical center */
    text-align:center;
    color: #ffffff;
    font-size:15px !important;
}

.footer a {
    color: #fff;
    text-decoration: none;
}

.footer a:hover {
    text-decoration: underline;
}
/* ================= FOOTER ================= END */

