@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Inter", sans-serif;
}

body {
    overflow: hidden;
    background: #11111100;
    font-family: "Inter", sans-serif;
    background-image: url("./bg.png");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 100%;
    position: relative;
    height: 100vh;
    position: relative;
    z-index: -1;
    -webkit-user-select: none;
    /* Safari, eski Chrome */
    -moz-user-select: none;
    /* Firefox */
    -ms-user-select: none;
    /* Internet Explorer / Edge eski */
    user-select: none;
    /* Standart */
}


.loader {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: #111;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
}

.loader .text {
    position: absolute;
    display: flex;
    align-items: center;
    text-align: center;
    bottom: 15px;
    color: #b6b6b6;
    font-weight: 600;
}


.loader .img img {
    max-width: 200px;
    pointer-events: none;
    animation: loader-ani infinite alternate 5.8s;
}

@keyframes loader-ani {
    0% {
        transform: scale(0.4);
        opacity: 0.7;
    }

    50% {

        opacity: 0.9;
    }

    100% {
        transform: scale(1.1);
        opacity: 1;
    }
}

.start-games {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #fff;
    padding: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
    border-radius: 0.8rem;
    z-index: 0;
}


.start-games button {
    padding: 0.8rem 5rem;
    font-size: 1.5rem;
    border: none;
    background-color: #18c002;
    color: #fff;
    border-radius: 0.8rem;
    transition: all 0.3s ease-in-out;
}

.start-games button:hover {
    opacity: 0.5;
}

.start-games button:active {
    padding: 1rem 5.5rem;
}

.games {
    display: none;
    flex-direction: column;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
    position: relative;
    z-index: 0;
    transition: all 0.3s ease-in-out;
}

.games::before {
    content: "";
    position: absolute;
    top: 0;
    width: 100%;
    height: 100vh;
    background-color: rgba(17, 17, 17, 0.486);
    z-index: -1;
}

.penguin {
    width: 250px;
    height: 280px;
    background-repeat: no-repeat;
    background-size: contain;
    background-image: url(../img/penguin.png);
    position: relative;
}

.penguin span {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
}

.ices {
    display: flex;
    justify-content: space-between;
    gap: 15px;
}

.ice-1,
.ice-2 {

    width: 250px;
    height: 280px;
    background-repeat: no-repeat;
    text-align: center;
    background-size: contain;
    background-image: url(../img/ice.png);
}

.ice-1 span,
.ice-2 span {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    font-size: 2.5rem;
    font-weight: 900;
}

span.info {
    position: absolute;
    bottom: 130px;
    font-size: 1.5rem;
    font-weight: 600;
}

.answers {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}


.answers span {
    width: 100px;
    height: 100px;
    background: #def;
    border: 2px dashed #339;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
    font-size: 20px;
    font-weight: bold;
}

#feedback {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.75);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    font-weight: bold;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
    z-index: 9999;
}

#feedback.show {
    opacity: 1;
    pointer-events: auto;
    animation: popIn 0.6s ease;
}

@keyframes popIn {
    0% {
        transform: scale(0.7);
        opacity: 0;
    }

    50% {
        transform: scale(1.1);
        opacity: 1;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

#score {
    position: absolute;
    top: 5px;
    right: 12px;
    background-color: rgb(255, 187, 0);
    border-radius: 0.7rem;
    padding: 1rem 15px;
    color: #ffffff;
    font-weight: bold;
}

/* Mobilde uyarı overlay’i gizli başlasın */
.wait {
    display: none;
    position: fixed;
    z-index: 9999;
    /* Üstte görünsün */
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background-color: #000;
    color: #fff;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    overflow-y: auto;
    /* Metin taşarsa kaydır */
}

.wait h1 {
    font-size: 1.8rem;
    margin-bottom: 0.5em;
    line-height: 1.2;
}

.wait span {
    display: block;
    font-size: 1.2rem;
    margin-bottom: 0.5em;
}

.wait p {
    font-size: 1rem;
    max-width: 90%;
    line-height: 1.4;

}

/* 768px ve altındaki ekranlarda */
@media screen and (max-width: 768px) {
    .wait {
        display: flex;
        /* Flex ile ortala */
        flex-direction: column;
        justify-content: center;
        align-items: center;
    }

}