:root{
      --bg: #f6fbff;
      --card: #ffffff;
      --muted: #6b7280;
      --accent-white:#FFF;
      --accent-blue: #2563eb;
      --accent-green: #10b981;
      --accent-orange: #fb923c;
      --accent-yellow: #f59e0b;
      --sidebar: #0ea5e9;
      --theme: #000000;
      --glass: rgba(255,255,255,0.6);
      --error-color: #F00;
      --border-radius: 6px;
      --transition: transition: all 0.2s;
      font-family: "Open sans", Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", "Helvetica Neue", Arial;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
h1,h2,h3,h4,h5,h6{
    margin: 20px 0;
}
a{
    text-decoration: none;
}

body{margin:0; background:var(--bg); color:#111;}
section.tiles, section.banner {max-width: 60rem;margin: 28px auto;padding:24px;}
.topbar{display:flex; align-items:center; justify-content:space-between; padding:8px 40px; background:var(--theme);box-shadow: 0 6px 20px rgba(0,0,0,0.2);color: #FFF;}
.logo{font-weight:700; font-size:1.5rem;display:flex;align-items:center;gap:7px}
.logo a{text-decoration: none;color: #FFF; display: flex; flex-flow: row;}
.logo a span{font-size: 1.6rem; line-height: 44px;}
nav{display:flex; gap:22px; align-items:center;}
nav a{color:var(--light); text-decoration:none; font-weight:600; position:relative; font-size: 1.1rem; letter-spacing: 0.1rem;margin: 0 12px;}
nav a:hover{color:#FFFFFF;}
nav a:hover{ color: #fff; text-decoration: none; }
nav a:before, nav a:after { content: ''; position: absolute; width: 0%; height: 2px; bottom: -4px; background: #fff; }
nav a.active:before, nav a.active:after { content: ''; position: absolute; width: 100%; height: 2px; bottom: -4px; background: #fff; }
nav a:before { left: 0; }
nav a:after { right: 0; background: #fff; transition: width 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
nav a:hover:before { background: #fff; width: 100%; transition: width 0.5s cubic-bezier(0.22, 0.61, 0.36, 1); }
nav a:hover:after { background: transparent; width: 100%; transition: 0s; }


.default-btn {padding: 0.75rem 2rem; font-size: 1rem; font-weight: 600; text-transform:uppercase; letter-spacing: 0.1rem; cursor: pointer; display: block; width: auto; border: none; border-radius: var(--border-radius); transition: var(--transition);}
.green-btn {background: var(--theme);color:#FFF}
.green-btn:disabled{background: var(--dgreen);}
/* categories hover dropdown */
.categories {position:relative;}
.categories .dropdown{ position:absolute; top:30px; left:0; background:var(--card); border-radius:8px; box-shadow:0 6px 24px rgba(20,20,45,0.08); display:none; padding:8px 0; min-width:160px; z-index:50; }
.categories .dropdown a{display:block; padding:10px 14px; color:#222; text-decoration:none;}
.categories:hover .dropdown{display:block;}
/* Mobile Menu Button (Hamburger) */
        .mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; width: 30px; height: 30px; position: relative; z-index: 1001; }
        .mobile-menu-btn span { display: block; width: 100%; height: 3px; background-color: white; margin: 5px 0; transition: 0.3s; border-radius: 3px; }
        /* Mobile Menu Overlay */
        .mobile-menu-overlay { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background-color: rgba(0, 0, 0, 0.7); z-index: 999; opacity: 0; visibility: hidden; transition: opacity 0.3s, visibility 0.3s; }
        .mobile-menu-overlay.active { opacity: 1; visibility: visible; }
        /* Mobile Menu Content */
        .mobile-menu { position: fixed; top: 0; right: -100%; width: 80%; max-width: 240px; height: 100%; background: var(--theme); z-index: 1000; padding: 100px 20px 30px; transition: right 0.4s ease; overflow-y: auto; box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1); display: flex; flex-direction: column;}
        .mobile-menu.active { right: 0; }
        .mobile-menu a { width: 100%; display: block; color: var(--light); text-decoration: none; font-weight: 600; font-size: 1.2rem; padding: 8px; border-bottom: 1px solid rgba(255, 255, 255, 0.1); transition: color 0.3s; }
        /* .mobile-menu a:hover { background: var(--menuhover); } */
        .mobile-categories { position: relative; width: 100%;}
        .mobile-categories > a { display: flex; justify-content: flex-start;padding-left: 0;}
        .mobile-categories .mobile-dropdown { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; background-color: rgba(0, 0, 0, 0.1); border-radius: 5px; margin: 10px 0; }
        .mobile-categories .mobile-dropdown.active { max-height: 300px; }
        .mobile-categories .mobile-dropdown a { padding-left: 20px; font-size: 1rem; border-bottom: none; padding-top: 12px; padding-bottom: 12px; }
        .mobile-categories .mobile-dropdown a:hover {
            background-color: rgba(0, 0, 0, 0.05);
        }


.navBar{
    position: absolute;
    top: 20px;
    left: 20px;
}
.container{
    width: 100%;
    margin: 0;
    padding: 0;
    min-height: 100vh;
}
.login-container{
    max-width: 400px;
    width: 100%;
    margin: 0 auto;
    padding: 1.5rem;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    background: white;
}
#main-content{
    position: relative;
    top: 56px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 5%;
    gap: 2rem;
    margin: 0 50px 0 50px;
    height: calc(100vh - 112px);
    background-color: #f2f4f8;
    border-radius: 2em;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
.textBox {
  flex: 1;
}
.textBox span {
  line-height: 50px;
  font-size: 50px;
  font-weight: 900;
}
.highlight {
  border-radius: 1em 0 1em 0;
  display: inline-block;
  background-image: linear-gradient(-100deg,rgba(253,150,38, 0.2), rgba(255, 133, 0, 0.7) 95%, rgba(253,150,38, 0.1) );
}
.start-btn{
    background-color: #2563eb;
    letter-spacing: 1px;
    font-weight: 900;
    padding: 12px 36px;
    width: auto;
}
.imgBox {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}
.imgHolder {
  width: 80%;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #6b7280;
  font-size: 1.2rem;
  font-style: italic;
}
.imgHolder {
  color: #6b7280;
  font-size: 1.2rem;
  font-style: italic;
}
h1 {
    text-align: center;
    margin-bottom: 1.5rem;
    color: #333;
}

.form-group {
    margin-bottom: 1rem;
}

label {
    display: block;
    margin-bottom: 0.5rem;
    color: #555;
}

input[type="email"],
input[type="text"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 1rem;
}

/* button {
    width: 100%;
    padding: 0.75rem;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s;
}

button:hover {
    background-color: #0056b3;
}

button:disabled {
    background-color: #6c757d;
    cursor: not-allowed;
} */

.default-btn {
    margin-top: 12px;
    width: 100%;
    padding: 1rem;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.05rem;
    cursor: pointer;
    transition: background-color 0.3s;
    display: block;
    border: none;
    border-radius: var(--border-radius);
    transition: var(--transition);
}
.default-btn:hover {transform: translateY(-2px);box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);}
.muted-btn{background: var(--muted);color: white;box-shadow: 0 5px 15px rgba(111, 112, 117, 0.4);}
.muted-btn:hover{background: var(--accent-blue);}
.blue-btn{background: var(--accent-blue);color: white;box-shadow: 0 5px 15px rgba(67, 97, 238, 0.4);}
.orange-btn{background: var(--accent-orange);color: white;box-shadow: 0 5px 15px rgba(238, 164, 67, 0.4);}
.green-btn{background: var(--accent-green);color: white;box-shadow: 0 5px 15px rgba(121, 238, 67, 0.4);}

.default-btn:active {
    transform: translateY(0);
}
.default-btn:disabled {
    background: #cccccc;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

#timer{
    display: flex;
    margin-top: 20px;
    margin-left: auto;
    margin-right: auto;
}
#timer h5,#timer span{
    margin: 0 !important;
    font-size: 0.85rem;
    font-weight: 400;
}
#resendBtn{
    margin-top: 0.5rem;
    background-color: #28a745;
    display: none;
}
.fade-in {
    animation: fadeIn 0.5s ease forwards;
}
.fade-out {
    animation: fadeOut 0.5s ease forwards;
}  
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeOut {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(-10px);
    }
}     
@keyframes pulse {
    0% {
        box-shadow: 0 0 0 0 rgba(37, 117, 252, 0.4);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(37, 117, 252, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(37, 117, 252, 0);
    }
}
.message {
    padding: 0.75rem;
    border-radius: 5px;
    margin-bottom: 1rem;
    text-align: center;
}
.success {
    background-color: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.error {
    background-color: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.hidden {
    display: none;
}

#otpSection {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #ddd;
}

.logout-btn {
    background-color: #dc3545;
    width: auto;
    padding: 0.5rem 1rem;
}

.logout-btn:hover {
    background-color: #c82333;
}
/*Select Username Page*/
.username-options {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.username-option {
    padding: 1rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
}

.username-option:hover {
    border-color: #007bff;
    background: #f8f9fa;
}

.username-option.selected {
    border-color: #007bff;
    background: #007bff;
    color: white;
}

.custom-username-section {
    margin-top: 2rem;
    padding-top: 1.5rem;
    border-top: 1px solid #ddd;
}

.toggle-section {
    text-align: center;
    margin: 1rem 0;
}

.toggle-btn {
    background: none;
    border: none;
    color: #007bff;
    cursor: pointer;
    text-decoration: underline;
    font-size: 0.9rem;
}
.toggle-btn:hover{
    color: #FFF;
}

.hidden {
    display: none;
}

.username-preview {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
    margin: 1rem 0;
    text-align: center;
}
/*END of Select Username Page*/