:root {
    --color-white: #FFFFFF;
    --color-brown: #834B32;
    --color-orange: #CD6C40;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;500;600;700&display=swap');

body {
    width: 100%;
    min-height: 100vh;
    overflow: hidden;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.game-title {
    position: absolute;
    width: 850px;
    left: 50%;
    top: 16%;
    transform: translateX(-50%);
    z-index: 5;
    animation: titleEntrance 1.2s ease-out both;
}

.game-screen {
    height: 100vh;
    position: relative;
    background-image: url("img/BG.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
}

@keyframes titleEntrance {

    0% {
        opacity: 0;
        transform: translateX(-50%) translateY(-35px) scale(0.9);
    }

    60% {
        opacity: 1;
        transform: translateX(-50%) translateY(5px) scale(1.03);
    }

    100% {
        opacity: 1;
        transform: translateX(-50%) translateY(0) scale(1);
    }
}

.game-plate {
    position: absolute;
    width: 1070px;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.main-bird {
    position: absolute;
    width: 365px;
    left: 50%;
    top: 14%;
    transform: translateX(-50%);
    z-index: 6;
    animation: birdFloat 5s ease-in-out infinite;
}

@keyframes birdFloat {

    0% {
        transform: translateX(-50%) translateY(0);
    }

    50% {
        transform: translateX(-50%) translateY(-12px);
    }

    100% {
        transform: translateX(-50%) translateY(0);
    }
}

.game-button {
    position: absolute;
    width: 250px;
    height: 88px;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    z-index: 6;
    transition:
        transform 0.25s ease,
        filter 0.25s ease;
}


.game-button img {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
}


.game-button span {
    position: absolute;
    left: 50%;
    top: 45%;
    transform: translate(-50%, -50%);
    width: 90%;
    font-family: "Montserrat", sans-serif;
    font-size: 28px;
    font-weight: 500;
    white-space: nowrap;
    pointer-events: none;
}

.left-button {
    left: 20%;
    top: 47%;
}

.left-button span {
    color: var(--color-white);
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-weight: 400;
}

.right-button {
    right: 20%;
    top: 47%;
}

.right-button span {
    color: var(--color-brown);
    text-align: center;
    font-family: Montserrat;
    font-size: 24px;
    font-weight: 400;
}

.game-button {
    transition: transform 0.15s ease;
}

.left-button:hover {
    animation: gameButtonWiggle 0.55s ease;
}

@keyframes gameButtonWiggle {

    0% {
        transform: scale(1);
    }

    20% {
        transform: scale(1.04) rotate(-2deg);
    }

    40% {
        transform: scale(1.04) rotate(2deg);
    }

    60% {
        transform: scale(1.04) rotate(-1deg);
    }

    80% {
        transform: scale(1.02) rotate(1deg);
    }

    100% {
        transform: scale(1);
    }
}

.left-button:hover span {
    animation: buttonTextBounce 0.5s ease;
}


@keyframes buttonTextBounce {

    0% {
        transform: translate(-50%, -50%);
    }

    40% {
        transform: translate(-50%, -55%);
    }

    70% {
        transform: translate(-50%, -48%);
    }

    100% {
        transform: translate(-50%, -50%);
    }
}

.sticker {
    position: absolute;
    z-index: 7;
    pointer-events: none;
}

.sticker-one {
    width: 44px;
    left: 57%;
    top: 31%;
    animation: stickerOne 2.8s steps(2, end) infinite;
}

.sticker-two {
    width: 28px;
    right: 18%;
    top: 42%;
    animation: stickerTwo 3.2s ease-in-out infinite;
}

.sticker-three {
    width: 28px;
    left: 24%;
    top: 69%;
    animation: stickerThree 3s steps(2, end) infinite;
}

@keyframes stickerOne {

    0% {
        transform: rotate(-5deg) translateY(0);
    }

    50% {
        transform: rotate(5deg) translateY(-5px);
    }

    100% {
        transform: rotate(-5deg) translateY(0);
    }
}


@keyframes stickerTwo {

    0% {
        transform: rotate(0deg) scale(1);
    }

    50% {
        transform: rotate(8deg) scale(1.05);
    }

    100% {
        transform: rotate(0deg) scale(1);
    }
}


@keyframes stickerThree {

    0% {
        transform: rotate(4deg) translateY(0);
    }

    50% {
        transform: rotate(-4deg) translateY(-6px);
    }

    100% {
        transform: rotate(4deg) translateY(0);
    }
}

.small-bird {
    position: absolute;
    z-index: 8;
    pointer-events: none;
}


.bird-top {
    width: 84px;
    left: 3.5%;
    top: 6%;
    animation: smallBirdTop 4.5s ease-in-out infinite;
}

.bird-bottom {
    width: 141px;
    right: 4%;
    bottom: 7%;
    animation: smallBirdBottom 5s ease-in-out infinite;
}

@keyframes smallBirdTop {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}


@keyframes smallBirdBottom {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }
}

#runawayButton {
    transition: left 0.1s ease, top 0.1s ease;
}

.game-screen {
    width: 100%;
    height: 100vh;
    position: relative;
    background-image: url("img/BG.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pet-passport {
    position: relative;
    width: 1080px;
    aspect-ratio: 1250 / 750;
}

.passport-image {
    position: absolute;
    width: 100%;
    height: 100%;
    left: 0;
    top: 0;
    object-fit: contain;
    display: block;
}

.passport-info {
    position: absolute;
    z-index: 5;
    color: var(--color-orange);
    font-family: Montserrat;
    font-size: 22px;
    font-style: normal;
    font-weight: 700;
    line-height: normal;
    white-space: nowrap;
    transform-origin: center;
}

.passport-name {
    left: 61%;
    top: 34.3%;
    transform: rotate(-2deg);
}

.passport-species {
    left: 62%;
    top: 42.5%;
    transform: rotate(-2deg);
}

.passport-breed {
    left: 61%;
    top: 50.5%;
    transform: rotate(-2deg);
}

.passport-color {
    left: 60.5%;
    top: 58.5%;
    transform: rotate(-2deg);
}

.passport-birth {
    left: 66%;
    top: 66.5%;
    transform: rotate(-1deg);
}

.passport-owner {
    left: 61.5%;
    top: 74.5%;
    transform: rotate(-0.5deg);
}

.passport-bird-top {
    position: absolute;
    width: 160px;
    right: -13%;
    top: -2%;
    animation: passportBirdTop 4.5s ease-in-out infinite;
}

.passport-bird-bottom {
    position: absolute;
    width: 121px;
    left: -12%;
    bottom: 0;
    animation: passportBirdBottom 5s ease-in-out infinite;
}


@keyframes passportBirdTop {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-8px) rotate(2deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }

}

@keyframes passportBirdBottom {

    0% {
        transform: translateY(0) rotate(0deg);
    }

    50% {
        transform: translateY(-10px) rotate(-3deg);
    }

    100% {
        transform: translateY(0) rotate(0deg);
    }

} 