body {
    font-family: Arial, sans-serif, 12px;
    text-align: center;
    background-color: #f4f4f4;
    padding: 20px;
}

.container {
    background: linear-gradient(45deg, #f75a30, #ffae60);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: auto;
}

.button-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    margin-right: 60px;
}

.button-generate-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
    flex-wrap: wrap;
}

button {
    margin: 10px;
    padding: 10px 20px;
    border: none;
    background-color: #28a745;
    color: white;
    cursor: pointer;
    border-radius: 5px;
}

button:hover {
    background-color: #218838;
}

input[type="radio"] {
    margin-right: 10px;
}

label {
    display: block;
    text-align: left;
    margin: 5px 0;
}

#imageBox img {
    max-width: 100%;
    height: auto;
    margin: 10px 0;
    border-radius: 5px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

#timer {
    font-size: 20px;
    font-weight: bold;
    color: #d9534f;
    background: #ffe6e6;
    padding: 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 10px;
    box-shadow: 0px 0px 5px rgba(0, 0, 0, 0.2);
}

.option {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 5px;
}

label {
    display: inline-block;
}

#loginLink,
#registerLink {
    margin-right: 10px;
}

#loginLink,
#logOutLink,
#registerLink {
    color: #007bff;
    font-weight: 500;
    transition: color 0.3s, text-shadow 0.3s;
}

#loginLink:hover,
#logOutLink:hover,
#registerLink:hover {
    color: #0056b3;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.modal-dialog {
    max-width: 500px;
    margin: 0 auto;
}

.modal-content {
    border-radius: 8px;
    border: 1px solid #ddd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.modal-header {
    background-color: lightgreen;
    color: white;
    border-bottom: 1px solid #ddd;
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
}

.modal-title {
    font-size: 1.25rem;
    font-weight: bold;
}

.modal-body {
    padding: 20px;
}

.modal-footer {
    border-top: 1px solid #ddd;
}

.score-card {
    border: 2px solid #3498db;
    background-color: #ecf0f1;
    padding: 15px;
    margin: 10px 0;
    border-radius: 10px;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
}

.score-card p {
    margin: 5px 0;
    font-size: 16px;
}

.help-item {
    text-align: center;
    margin-bottom: 20px;
}

.help-image {
    cursor: pointer;
    width: 200px;
    height: auto;
    transition: transform 0.2s ease-in-out;
}

.help-image:hover {
    transform: scale(1.1);
}

.help-text {
    margin-top: 10px;
    font-size: 16px;
}


.option {
    display: flex;
    align-items: center;
    gap: 10px; /* Kis távolság a rádiógomb és a szöveg között */
    cursor: pointer;
}

.option input {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #333;
    border-radius: 50%;
    position: relative;
    cursor: pointer;
}

.option input:checked::before {
    content: "";
    width: 10px;
    height: 10px;
    background-color: #333;
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.option label {
    flex: 1; /* Kitölti a rendelkezésre álló helyet */
    padding: 10px;
    background-color: #f0f0f0;
    border-radius: 5px;
    cursor: pointer;
}

.option label:hover {
    background-color: #ddd;
}

#image {
    margin-top: 20px;
}



/* Alapértelmezett mobilnézet (max. 600px széles) */
@media (max-width: 600px) {
    .container {
        max-width: 90%;
        padding: 15px;
    }

    .button-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
        margin: 0 auto;
        padding: 0;
        gap: 10px;
    }

    .button-container button {
        width: 90%;
        max-width: 300px;
        font-size: 16px;
        padding: 12px;
    }

    .button-generate-container {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .button-generate-container button {
        width: 100%;
        max-width: 300px;
    }

    img {
        max-width: 100% !important;
        height: auto;
        display: block;
        margin: 0 auto;
    }

    .image-container img {
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .option {
        flex-direction: row;
        align-items: center;
        gap: 5px;
    }

    .option input[type="radio"] {
        width: 16px;
        height: 16px;
    }

    .option label {
        font-size: 14px;
        padding: 5px 8px;
    }

    #timer {
        font-size: 14px;  /* Kisebb betűméret */
        padding: 6px;
        text-align: center;
        display: block;
        width: auto;
        min-width: 80px;
        position: fixed;
        top: 10px;
        right: 10px; /* Jobbra igazítás */
        z-index: 1000;
        background: white;
        box-shadow: 0px 2px 10px rgba(0, 0, 0, 0.2);
    }

    .score-card {
        font-size: 14px;
        padding: 10px;
    }
}

/* Kicsit nagyobb mobil/tablet nézet (600px - 900px) */
@media (max-width: 900px) {
    .container {
        max-width: 80%;
    }

    .button-container {
        gap: 5px;
    }

    .option {
        flex-direction: row;
        justify-content: flex-start;
    }
}