@import './components/header_2.css';
@import '../fonts/fonts.css';
@import './components/footer_2.css';

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

:root {
    --font-family: 'Inter', sans-serif;
    --second-family: 'JekoVariable', sans-serif;
    --third-family: 'Space Grotesk', sans-serif;
    --font3: 'Jeko-Black', sans-serif;
}

:root {
    --font-family: 'Inter', sans-serif;
    --second-family: 'JekoVariable', sans-serif;
    --third-family: 'Space Grotesk', sans-serif;
    --font3: 'Jeko-Black', sans-serif;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    cursor: url('/public/cursors/arrow.cur'), auto;
    font-family: var(--font-family);
    background: #7c3dc7;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
    position: relative;
}

.page-body {
    background: #7c3dc7;
}
.page-body-gradient {
    background: linear-gradient(180deg, #7c3dc7 0, #f1f1f1 100%);
}

.dino-game-selector {
    width: 800px;
}

@media (min-width: 769px) {
    .dino-game-selector {
        width: 100%;
    }
}

@media (max-width: 1080px) {
    body {
        background: #f1f1f1;
    }
}

h1,
h2,
h3 {
    font-family: var(--second-family);
    text-transform: uppercase;
    font-weight: 800;
}

h1 {
    font-size: 125px;
    line-height: 80%;
    text-align: center;
    color: #fff;
}

h2 {
    color: #44247a;
    font-size: 48px;
    line-height: 90%;
}

h3 {
}

h4 {
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 16px;
    line-height: 118%;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 20px 0;
    max-width: 1440px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.2s;
    cursor: url('/public/cursors/pointer.cur'), auto;
}

button {
    cursor: url('/public/cursors/pointer.cur'), auto;
    transition: 0.2s;
}

a:hover,
button:hover {
    opacity: 0.8;
}

.go-back-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    border-radius: 38px;
    padding: 12px;
    background: #bc8bff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 10px;
    line-height: 160%;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    color: #fff;
    border: none;
    width: fit-content;
}

.glow-text {
    color: #fff;
    text-shadow:
        0 0 5px #fff,
        0 0 10px #fff,
        0 0 15px #fff;
}

.glow-text-small {
    text-shadow: 0 0 3px #fff;
}

.glow-text-animated {
    color: #fff;
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from {
        text-shadow:
            0 0 3px #fff,
            0 0 6px #fff,
            0 0 12px #fff;
    }
    to {
        text-shadow:
            0 0 1px #fff,
            0 0 3px #fff,
            0 0 6px #fff;
    }
}

.download-pdf-btn {
    border-radius: 38px;
    padding: 12px;
    background: #fff;
    font-family: var(--font-family);
    font-weight: 700;
    font-size: 12px;
    line-height: 133%;
    letter-spacing: 0.02em;
    color: #000;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: fit-content;
}

.parallax-element {
    will-change: transform;
    backface-visibility: hidden;
    perspective: 1000px;
    -webkit-backface-visibility: hidden;
    -webkit-perspective: 1000px;
    transform: translate3d(0, 0, 0);
    -webkit-transform: translate3d(0, 0, 0);
    position: absolute;
    transform-style: preserve-3d;
    -webkit-transform-style: preserve-3d;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

@media (max-width: 768px) {
    .parallax-element {
        transform: none !important;
        -webkit-transform: none !important;
        animation: softGlow 8s infinite ease-in-out;
    }

    @keyframes softGlow {
        0% {
            opacity: 0.6;
        }
        20% {
            opacity: 0.8;
        }
        40% {
            opacity: 0.9;
        }
        60% {
            opacity: 1;
        }
        80% {
            opacity: 0.85;
        }
        100% {
            opacity: 0.6;
        }
    }

    .parallax-element:nth-child(2n) {
        animation-delay: 2s;
        animation-duration: 10s;
    }

    .parallax-element:nth-child(3n) {
        animation-delay: 4s;
        animation-duration: 12s;
    }

    .parallax-element:nth-child(4n) {
        animation-delay: 6s;
        animation-duration: 9s;
    }

    .parallax-element:nth-child(5n) {
        animation-delay: 3s;
        animation-duration: 11s;
    }

    .parallax-element:nth-child(6n) {
        animation-delay: 5s;
        animation-duration: 13s;
    }
}

@media (max-width: 768px) {
    a:hover,
    button:hover {
        opacity: 1;
    }
}
/*@media (max-width: 768px) {*/
/*    .parallax-element {*/
/*        -webkit-overflow-scrolling: touch;*/
/*        transform: translate3d(0, 0, 0);*/
/*        -webkit-transform: translate3d(0, 0, 0);*/
/*    }*/
/*}*/

/*@supports (-webkit-overflow-scrolling: touch) {*/
/*    .parallax-element {*/
/*        -webkit-overflow-scrolling: touch;*/
/*        transform: translate3d(0, 0, 0);*/
/*        -webkit-transform: translate3d(0, 0, 0);*/
/*    }*/
/*}*/

@media (max-width: 1080px) {
    .container {
        padding: 0;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 100px;
        line-height: 80%;
    }
    h2 {
        font-size: 36px;
        line-height: 90%;
    }
}

.heart-icon {
    position: relative;
    width: 25px;
    height: 23px;
}

.heart-icon:before,
.heart-icon:after {
    content: '';
    display: inline-block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-repeat: no-repeat;
    transition: opacity 0.3s ease;
}

.heart-icon:before {
    background-image: url('/public/static/heart-icon.svg');
    opacity: 1;
}

.heart-icon:after {
    background-image: url('/public/static/hover-heart-icon.svg');
    opacity: 0;
}

.heart-icon:hover:before {
    opacity: 0;
}

.heart-icon:hover:after {
    opacity: 1;
}
