/* General Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
}

body {
    width: 100%;
    height: 100vh;
    background-image: url(ban2.jpg);
    background-size: cover;
    background-position: center;
    color: #fff;
    display: grid;
    place-items: center;
    position: relative;
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(210, 207, 207, 0.595);
    z-index: 1;
}

body > * {
    position: relative;
    z-index: 2;
}





/* navigation */


.navbar {
    display: flex;
    align-items: center;
    justify-content: left;
    height: 60px;
    background: rgba(247, 244, 244, 0.863); 
    backdrop-filter: blur(10px); /* Optional: adds a blur effect to the background */
    position: fixed;
    top: 0;
    width: 100%;
    
    /* box-shadow: 0 2px 4px rgb(239, 238, 238); */
}

.logo {
    display: flex;
    align-items: left;
    margin-left: 2%;
}

.logo-img {
    height: 50px; 
    width: 50px;
    margin-right: 10px; /* Space between logo and app name */
}

.app-name {
    font-size: 32px; /* Slightly larger font size for emphasis */
    font-family: 'Arial', sans-serif; /* Clean, readable font */
    color: #ffffff; /* Classic white for a clean look */
    font-weight: 700; /* Semi-bold font weight */
    background: linear-gradient(135deg, #00f7ff, #0077ff); /* Gradient background */
    -webkit-background-clip: text; /* Clip background to text */
    background-clip: text; /* Clip background to text */
    color: transparent; /* Make text color transparent to show gradient */
    text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.3); /* Subtle shadow for depth */
    padding: 10px; /* Padding around the text */
    border-radius: 8px; /* Rounded corners */
    margin: 20px 0; /* Margin for spacing */
    display: inline-block; /* Ensure padding and background apply correctly */
    transition: transform 0.3s ease, color 0.3s ease;
}

.app-name:hover {
    transform: scale(1.05); /* Slight zoom effect on hover */
    text-shadow: 1px 1px 10px rgba(0, 0, 0, 0.5); /* Stronger shadow on hover */
}


@media (max-width: 600px) {
    .app-name {
        font-size: 20px; /* Adjust font size for smaller screens */
    }
}



















.game-title {
    font-size: 68px;
    font-weight: bold;
    text-align: center;
    background: linear-gradient(90deg, #1e3a8a, #000000, #e91e63);
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    border-right: 2px solid #fff;
    width: fit-content;
    margin: 0 auto;
    white-space: nowrap;
    overflow: hidden;
    animation: gradient-fade 3s ease forwards;
}

@keyframes gradient-fade {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

.hide-cursor {
    border-right: none;
}

.container {
    width: 80%;
    max-width: 850px;
    padding: 30px;
    text-align: center;
    display: none;
}

.container h1 {
    font-size: 26px;
    margin-bottom: 40px;
    text-decoration: underline;
    text-underline-offset: 8px;
    color: rgb(67, 67, 118);
}

.question-box {
    border: 3px solid #00f;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0, 0, 255, 0.8);
    background: #000;
    animation: neon-border 1.5s infinite alternate;
    margin-bottom: 20px;
}

@keyframes neon-border {
    from {
        border-color: #00f;
    }
    to {
        border-color: #0ff;
    }
}

.question {
    font-size: 26px;
    margin-bottom: 20px;
    color: white;
    text-align: left;
}

.choice {
    font-size: 20px;
    padding: 15px;
    margin: 10px;
    text-align: left;
    border-radius: 5px;
    color: white;
    background-color: #1c1c1c; /* Darker background for better contrast */
    cursor: pointer;
    position: relative;
    transition: all 0.3s ease;
}

.choice::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 2px solid #00f7ff; /* Blue Neon Border */
    box-shadow: 0 0 15px rgba(0, 247, 255, 0.8), 0 0 30px rgba(0, 247, 255, 0.8);
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    transform: scale(0.98);
    z-index: -1;
}

.choice:hover {
    background-color: #282828; /* Slightly lighter on hover */
    color: #00f7ff; /* Neon blue text on hover */
}

.choice:hover::before {
    transform: scale(1);
    box-shadow: 0 0 20px rgba(0, 247, 255, 1), 0 0 40px rgba(0, 247, 255, 1);
}

.choice.selected {
    background-color: #0077b6; /* Brighter blue for selected choice */
    box-shadow: 0 0 15px rgba(0, 247, 255, 1), 0 0 30px rgba(0, 247, 255, 1);
    color: #fff; /* White text for contrast */
}


.choice-label {
    font-weight: bold;
    margin-right: 10px;
}

@keyframes fade-in {
    from {
        opacity: 0;
        transform: translateY(50%);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}


.btn {
    font-size: 29px;
    font-weight: 600;
    padding: 22px 80px;
    margin: 20px auto 0;
    background-color: #00b894; /* Neon green base color */
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    box-shadow: 0px 4px 10px rgba(0, 255, 200, 0.6); /* Soft neon shadow */
    transition: all 0.3s ease;
    text-align: center;
    justify-content: center;
}

.btn:hover {
    background-color: #00e6a8; /* Brighter neon on hover */
    box-shadow: 0px 4px 15px rgba(0, 255, 200, 0.6), 0 0 20px rgba(0, 255, 200, 0.5); /* Subtle glow */
    transform: scale(1.05);
}

.startBtn {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0 auto;
    /* margin-top: -20%; */
}



.alert {
    display: none;
    padding: 10px;
    color: white;
    border-radius: 5px;
    position: fixed;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 1000;
}

.alert-success {
    background-color: green;
}

.alert-error {
    background-color: red;
}

.alert-info {
    background-color: blue;
}


.timer {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: #08203e;
    border: 2px solid #f00;
    font-size: 24px;
    font-weight: 600;
    padding: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: pulse 1s ease-in-out infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

@keyframes fade-in {
    0% {
        opacity: 0;
        transform: translateY(50%);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@media screen and (max-width: 1200px) {
    .game-title {
        font-size: 50px;
    }
}

@media screen and (max-width: 900px) {
    .container {
        width: 90%;
        margin-top: 30px;
    }

    .container h1 {
        font-size: 28px;
    }

    .question-box {
        padding: 15px;
    }

    .question {
        font-size: 22px;
    }

    .choice {
        width: calc(50% - 10px);
    }

    .btn {
        font-size: 24px;
        padding: 15px 60px;
    }

    .timer {
        width: 50px;
        height: 50px;
        font-size: 20px;
    }

    .startBtn {
        width: 60%;
        margin-top: 0;
    }
}

@media screen and (max-width: 600px) {
    .game-title {
        font-size: 36px;
    }

    .container h1 {
        font-size: 24px;
    }

    .question {
        font-size: 20px;
    }

    .choice {
        width: 100%;
        font-size: 18px;
    }

    .btn {
        font-size: 20px;
        padding: 10px 40px;
    }

    .timer {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .startBtn {
        width: 80%;
    }
}


.scoreCard {
    display: none; /* Initially hidden */
    padding: 30px;
    background-color: #1e1e1e; /* Dark background for contrast */
    border: 2px solid #00f7ff; /* Neon blue border */
    border-radius: 10px;
    text-align: center;
    font-size: 22px;
    color: #ffffff; /* White text */
    box-shadow: 0 0 20px rgba(0, 247, 255, 0.5), 0 0 30px rgba(0, 247, 255, 0.5); /* Neon glow effect */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    max-width: 600px;
    margin: 20px auto;
}

.scoreCard:hover {
    transform: scale(1.03); /* Slight zoom on hover */
    box-shadow: 0 0 30px rgba(0, 247, 255, 0.7), 0 0 40px rgba(0, 247, 255, 0.7); /* Stronger glow on hover */
}

.floating-text {
    font-size: 28px;
    color: rgb(0, 213, 255); /* Bright yellow for a bright effect */
    font-weight: bold;
    animation: float 2s ease-in-out infinite; /* Floating animation */
    margin-top: 20px;
}

@keyframes float {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}








/* footer */
footer {
    text-align: center;
    padding: 10px 0;
   
}

.footer-link {
    text-decoration: underline;
    color: #000; 
}

.footer-link:hover {
    color: #0c4fc4; /* Change color on hover if desired */
}
