* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 300;
    src: url('/fonts/Poppins-Light.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 400;
    src: url('/fonts/Poppins-Regular.woff2') format('woff2');
}

@font-face {
    font-family: 'Poppins';
    font-style: normal;
    font-weight: 600;
    src: url('/fonts/Poppins-SemiBold.woff2') format('woff2');
}

body {
    font-family: 'Poppins', sans-serif;
    padding-top: 112px;
    font-weight: 400;
    background: linear-gradient(120deg, #000, #59dd0f, #000, #59dd0f, #000);
    background-size: 200% 200%;
    /* Umožňuje plynulé pohyby gradientu */
    animation: gradientAnimation 12s ease infinite;
    /* Plynulá animace */
}

img{
    user-select: none;
    -webkit-user-drag: none;
}

#quiz {
    text-align: center;
}

@keyframes gradientAnimation {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

.bubble {
    position: fixed;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    animation: bubbleAnimation 10s infinite;
    z-index: -10;
}

@keyframes bubbleAnimation {
    0% {
        transform: translateY(100vh) scale(0.5);
    }

    50% {
        transform: translateY(0) scale(1);
    }

    100% {
        transform: translateY(-100vh) scale(0.5);
    }
}

/* Styly pro jednotlivé bubliny */
.bubble1 {
    width: 100px;
    height: 100px;
    left: 20%;
    animation-duration: 8s;
}

.bubble2 {
    width: 60px;
    height: 60px;
    left: 50%;
    animation-duration: 12s;
}

.bubble3 {
    width: 80px;
    height: 80px;
    left: 80%;
    animation-duration: 10s;
}

/* Tmavý overlay pro ztmavení pozadí */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    /* Tmavý overlay */
    z-index: -100;
    /* Pod ostatními prvky */
}

u {
    color: #59dd0f;
}

::-webkit-scrollbar {
    width: 15px;
}

::-webkit-scrollbar-track {
    background: #000;
}

::-webkit-scrollbar-thumb {
    border-radius: 10px;
    background: rgb(19, 21, 22);
}



h2 {
    font-size: 35px;
    color: #e2dfdb;
    margin: 50px 0 60px 0;
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
    letter-spacing: 0.5px
}

label {
    font-size: 23px;
    display: block;
    color: #e2dfdb;
    width: 85%;
    border: 2px solid #59dd0f;
    border-radius: 5px;
    padding: 10px;
    transition: border-color 0.3s;
    margin: 0 auto;
    margin-bottom: 30px;
    user-select: none;
    cursor: pointer;
}

label:hover {
    border-color: #4caf50;
}

label.active {
    background-color: #4caf50;
    /* Pozadí na zelenou */
    border-color: #4caf50;
    /* Rámeček na zelenou */
    color: #000;
    /* Text na černou */
    box-shadow: 0 0 10px #4caf50;
    /* Stín stejné barvy */
}

.points-animation {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 40px;
    color: #59dd0f;
    background: #000;
    /* Poloprůhledné pozadí */
    padding: 20px 40px;
    border-radius: 10px;
    z-index: 1000;
    opacity: 0;
    /* Na začátku neviditelná */
    animation: pointsEffect 3s ease-out forwards;
    /* Spustí animaci */
}

@keyframes pointsEffect {
    0% {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.5);
    }

    50% {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }

    100% {
        opacity: 0;
        transform: translate(-50%, -60%) scale(1.5);
    }
}

@media (max-width: 500px) {
    .points-animation {
        font-size: 28px;
        text-align: center;
        width: 210px;
    }
}

.points {
    color: #e2dfdb;
    font-size: 15px;
    user-select: none;
}

.correct,
.incorrect {
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    user-select: none;
}

.correct.show,
.incorrect.show {
    opacity: 1;
}

.correct {
    margin: 0 auto;
    color: #e2dfdb;
    background: #176c17;
    border: 3px solid #000;
    border-radius: 8px;
    width: 230px;
    padding: 8px 0px;
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
}

.halfAnswr {
    margin: 0 auto;
    color: #e2dfdb;
    background: linear-gradient(90deg, #a80000, #176c17);
    border: 3px solid #000;
    border-radius: 8px;
    width: 230px;
    padding: 8px 0px;
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
    user-select: none;
}

#correct-answer {
    color: #e2dfdb;
    font-size: 20px;
    margin-top: 20px;
    margin-bottom: 0;
}

.incorrect {
    margin: 0 auto;
    color: #e2dfdb;
    background: #a80000;
    border: 3px solid #000;
    border-radius: 8px;
    width: 230px;
    padding: 8px 0px;
    font-size: 20px;
    font-weight: 500;
    margin-top: 30px;
}

#submit {
    color: #e2dfdb;
    font-size: 25px;
    border: 2px solid #e2dfdb;
    background: none;
    display: block;
    margin: 0px auto;
    border-radius: 15px;
    width: 175px;
    outline: none;
    cursor: pointer;
    padding: 8px 0px;
    user-select: none;
}

#submit:hover {
    background: #e2dfdb;
    color: #000;
}

#numb-answer {
    color: #e2dfdb;
    font-size: 25px;
}

p.finish {
    color: #e2dfdb;
    font-size: 20px;
    margin-top: 50px;
}

#scoreIndicators {
    display: flex;
    justify-content: center;
    /* Zarovnáno na střed */
    height: 40px;
    /* Větší výška pro lepší vzhled */
    border-radius: 20px;
    /* Zaoblení rohů */
    overflow: hidden;
    /* Skrytí přetékající části */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    /* Stín pro hloubku */
    margin: 20px auto;
    /* Vzdálenost od ostatního obsahu a auto pro zarovnání */
    width: 30%;
}

#scoreIndicators div {
    height: 100%;
    /* Nastavení výšky divu na 100% */
    transition: width 0.5s ease;
    /* Plynulý přechod pro šířku */
}

.correctIND,
.incorrectIND {
    background-color: #176c17;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #e2dfdb;
    font-weight: bold;
    font-size: 30px;
    user-select: none;
}

.incorrectIND {
    background-color: #a80000;
}

.restart-btn {
    padding: 10px 20px;
    background-color: #4ec10b;
    color: #000;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 17px;
    margin-top: 20px;
}

.restart-btn:hover {
    background-color: #45a049;
}

@media (max-width: 720px) {
    h2 {
        font-size: 25px;
        margin: 22px 30px 55px 30px;
    }
}

@media (max-width: 720px) {
    label {
        font-size: 21.5px;
        margin-bottom: 25.5px;
    }

    input[type="checkbox"],
    #haseniInput {
        width: 14px;
        height: 14px;
    }

    .correct,
    .incorrect {
        font-size: 18px;
        width: 200px;
        margin-top: 22px;
    }

    #correct-answer {
        font-size: 16px;
        margin-top: 15px;
    }

    #scoreIndicators {
        width: 75%;
    }

    #submit {
        font-size: 20px;
        width: 168px;
        height: 43px;
    }
}

@media (max-width: 720px) {
    #numb-answer {
        font-size: 20px;
    }

    p.finish {
        font-size: 19px;
    }
}

@media (max-width: 320px) {
    #numb-answer {
        font-size: 19.5px;
    }
}


#timer {
    color: #e2dfdb;
    font-size: 30px;
    margin-top: 20px;
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 0px rgba(255, 0, 0, 0);
    }

    50% {
        box-shadow: 0 0 10px rgba(255, 0, 0, 0.7);
        /* Přidání červeného stínu */
    }

    100% {
        box-shadow: 0 0 0px rgba(255, 0, 0, 0);
    }
}

.pulse-animation {
    animation: pulse 1s infinite;
}

#h2-score {
    font-size: 40px;
    margin-bottom: 80px;
}

@media (max-width: 720px) {
    .question-img {
        width: 200px;
        height: 200px;
    }
}

@media (max-width: 720px) {
    .question-tech_img {
        width: 216px;
        height: 146px;
    }
}

.question-img,
.question-tech_img,
.question-priroda_img,
.question-img-uzle,
.question-img-uzle2 {
    border-radius: 2px;
    margin-bottom: 20px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 720px) {
    #h2-score {
        font-size: 32px;
        margin-top: 50px;
    }
}

@media (max-width: 720px) {
    .question-img-uzle {
        width: 270px;
        height: 191px;
    }
}

@media (max-width: 400px) {
    .question-img-uzle2 {
        width: 252px;
        height: 168px;
    }
}

/* Input kvízy */

#userAnswer {
    font-size: 17px;
    color: #e2dfdb;
    width: 300px;
    border: 2px solid #59dd0f;
    border-radius: 5px;
    display: block;
    margin: 0 auto;
    margin-top: 15px;
    margin-bottom: 35px;
    padding: 10px;
    background: transparent;
    outline: none;
}

::placeholder {
    color: #e3e3e3;
}

#userAnswer:focus::placeholder {
    color: #000;
}

#userAnswer:focus {
    background-color: #4caf50;
    color: #000;
    box-shadow: 0 0 10px #4caf50;
}

@media (max-width: 600px) {
    #userAnswer {
        width: 230px;
    }
}

/*soc_site-footer*/

.footer {
    padding: 30px 20px 20px;
    margin-top: 50px;
    color: #e0e0e0;
    text-align: center;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer .follow-us {
    font-size: 1rem;
    color: #888;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-bottom: 25px;
}

.social-link svg {
    width: 44px;
    height: 44px;
    fill: #bbb;
    transition: fill 0.25s ease, transform 0.25s ease, filter 0.3s ease;
    filter: none;
}

.social-link:hover svg {
    fill: #e0e0e0;
    transform: translateY(-1px);
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.footer-text {
    font-size: 0.9rem;
    color: #aaa;
}

.footer-text a {
    color: #aaa;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-text a:hover {
    color: #fff;
    text-decoration: underline;
}

@media (max-width: 720px) {
    .social-link svg {
        width: 36px;
        height: 36px;
    }

    .footer .follow-us {
        font-size: 0.85rem;
    }

    .footer-text {
        font-size: 0.8rem;
    }
}
