* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #f0f0f0;
    text-align: center;
    padding-top: 50px;
    font-family: Arial, sans-serif;
    background-image: url(/static/core/images/bg.jpg);
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    height: 100vh;
    background-attachment: fixed;

    display: flex;
    justify-content: center;
    align-items: center;
}

.container {
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    width: 60%;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

h1 {
    color: brown;
}

h2 {
    color: white;
    margin-bottom: 30px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    margin-top: 40px;
    font-size: 24px;
}

button, .button {
    color: white;
    background-color: rgba(255, 255, 255, 0.25);
    padding: 15px 30px;
    margin: 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    backdrop-filter: blur(5px);
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

button:hover, .button:hover {
    background-color: #45a049;
}

button:disabled {
    background-color: #cccccc;
    opacity: 0.7;
}


.result {
    font-size: 20px;
    font-weight: bold;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    width: fit-content;
    margin: 30px auto;
    border-radius: 15px;
}

.score-board {
    position: absolute;
    top: 20px;
    left: 20px;
    background-color: rgba(255, 215, 0, 0.8);
    padding: 20px;
    border-radius: 20px;
    font-weight: bold;
    color: #333;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.question-image {
    width: 50%;
    margin: 20px 0;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    max-height: 230px;
    object-fit: cover;
}

@media (max-width: 768px) {
    body {
        padding-top: 20px;
        height: auto;
        min-height: 100vh;
    }

    .container {
        width: 90%;
        padding: 20px;
        margin: 20px 0;
    }

    h1 {
        font-size: 24px;
        margin-bottom: 10px;
    }

    h2 {
        font-size: 18px;
        margin-bottom: 20px;
        margin-top: 20px;
    }

    button, .button {
        padding: 12px 20px;
        font-size: 14px;
        width: 90%;
        margin: 8px auto;
        display: block;
    }

    .question-image {
        width: 90%;
        max-height: 180px;
        margin: 15px 0;
    }

    .result {
        font-size: 16px;
        padding: 8px 15px;
        margin: 20px auto;
    }

    .score-board {
        position: fixed;
        top: 10px;
        right: 10px;
        left: auto;
        padding: 10px 15px;
        font-size: 14px;
        background-color: rgba(255, 215, 0, 0.9);
        z-index: 100;
    }

    a {
        display: inline-block;
        margin-top: 15px;
        padding: 10px 20px;
        background-color: rgba(255, 255, 255, 0.3);
        border-radius: 10px;
        color: white;
        text-decoration: none;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
    }

    button {
        padding: 10px 15px;
        font-size: 13px;
    }

    .score-board {
        top: 5px;
        right: 5px;
        padding: 6px 12px;
        font-size: 12px;
        border-radius: 15px;
    }

    .question-image {
        max-height: 150px;
    }
}

@media (max-width: 768px) and (orientation: landscape) {
    body {
        padding-top: 10px;
    }

    .container {
        width: 95%;
        padding: 15px;
    }

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 16px;
        margin-bottom: 10px;
    }

    button {
        padding: 8px 15px;
        font-size: 12px;
        display: inline-block;
        width: auto;
        margin: 5px;
    }

    .question-image {
        max-height: 120px;
        width: 60%;
    }

    .score-board {
        position: absolute;
        top: 10px;
        right: 10px;
        left: auto;
    }
}