/* Fonts */
@font-face {
    font-family: 'RoadRage';
    src: url('RoadRage-Regular.ttf');
}

@font-face {
    font-family: 'SpecialElite';
    src: url('SpecialElite-Regular.ttf');
}

body,html {
    scroll-behavior: smooth;
}

/* Roots */
:root {
    --background: #360E09;
    --textColor: #E2C0BB;
}

/* Page Styles */
body {
    background-color: var(--background);
    margin: 0;
}

/* Text Styles */
h1 {
    word-spacing: 0.1rem;
    text-shadow: 4px 4px #8b0000;
    font-size: 4rem;
    font-family: 'RoadRage';
    letter-spacing: 0.2rem;
}

.subTitle {
    color: var(--textColor);
    font-size: 5rem;
    font-family: 'RoadRage';
    text-shadow: 1px 5px darkred;
    text-align: center;
    margin: 0;
    background-color: black;
    padding-top: 4vw;
}

.cardSubTitle {
    color: var(--textColor);
    font-size: 5rem;
    font-family: 'RoadRage';
    text-shadow: 1px 5px darkred;
    text-align: center;
    margin: 0;
    padding-top: 15vw;
    padding-bottom: 5vw;
    }

p {
    color: #E2C0BB;
    font-size: 2.6rem;
    font-family: 'SpecialElite';
    margin-right: 10vw;
    margin-top: 4vw;
    display: flex;
    transform: translateY(-96px);
}

button {
    all: unset;
    color: var(--textColor);
    font-size: 5rem;
    text-decoration: none;
    font-family: 'RoadRage';
    transform: translateY(-5px);
}

/* Hero Styles */
.hero-content {
    color: #ff0000;
    position: fixed;
    left: 50%;
    top: 35%;
    transform: translateX(-50%);
}

.hero {
    align-items: center;
    height: 100vh;
    display: flex;
}

.hero video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Card Style */
.row{
    display: flex;
    justify-content: center;
    gap: 150px;
    padding-bottom: 10vw;
    transform: scale(.9);
}

.card {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    transition: all 150ms;
    overflow: hidden;
}

.game-content {
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    background-color: #360e09;
    padding: 1vw;
    border-radius: 42px;
    visibility: hidden;
}

.game-image img {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

/* Bring back to the top of the page */
.backToTop {
    position: absolute;
    transform: translate(120px, -85px);
    cursor: pointer;
    color: white;
}

.backToTop::before {
    content: "\21E7";
    display: inline-block;
    margin-right: -1.2em;
    font-size: 3em;
    vertical-align: 20px;
}
/* Hovers */
.card:hover {
    animation: glow 1000ms linear infinite alternate;
    .game-content{
        visibility: visible;
    }
}

.game-content:hover {
        cursor: pointer;
        text-shadow: 3px 5px darkred;
    }

.game-image img:hover {
    animation: huff 1500ms linear infinite alternate;
}

.switch-left:hover, .switch-right:hover {
    animation: blink 1000ms linear infinite alternate;
}

.backToTop:hover {
    animation: blink 1000ms linear infinite alternate;
}

/* Game Section */
.section {
    background-color: black;
    padding: 8vw 15vw;
    padding-top: 4vw;
    padding-bottom: 15vw;
    display: flex;
    gap: 150px;
}

.section img {
    width: 250px;
    height: 400px;
    border-radius: 20px;
    object-fit: cover;
    border: 4px solid white;
}

/* Parallax fixed backgrounds */
.fixed-bg {
    background: url('images/ResidentEvil-Parallax.jpg') no-repeat 50% 50%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 40vh;
}
.fixed-bg-silent {
    background: url('images/SilentHill-Parallax.jpg') no-repeat 50% 50%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 40vh;
}

.fixed-bg-dead {
    background: url('images/deadSpace-Parallax.jpg') no-repeat 50% 50%;
    background-attachment: fixed;
    background-position: center;
    background-size: cover;
    height: 40vh;
}



/*Animations*/
@keyframes huff {
    0%{transform: scale(1)}
    100%{transform: scale(1.1)}
}

@keyframes wiggle {
    0% {transform: rotate(3deg)}
    100%{transform: rotate(-3deg)}
}

@keyframes blink {
    50%{opacity: 50%}
    100%{opacity: 100%}
}

@keyframes glow {
    0%{box-shadow: 0px 0px 15px 15px darkred;}
    100%{box-shadow: 0px 0px 4px 15px darkred;}
}

/* Media Queries */
@media screen and (max-width: 800px) {
    .hero video {
        object-fit: contain;
    }

    .hero {
        height: 34vh;
    }

    h1 {
        font-size: 3rem;
        text-wrap-mode: nowrap;
    }

    .hero-content {
        top: 10%;
    }

    .row {
        gap: 50px;
        transform: scale(.7);
        width: 100%;
    }

    .section {
        padding: 5vw;
        padding-top: 16vw;
        padding-bottom: 15vw;
    }

p {
        font-size: 1.3rem;
        transform: translateY(-37px);
        margin-right: 0px;
        margin-left: -50px;
    }
}