@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100..900;1,100..900&family=Rubik:ital,wght@0,300..900;1,300..900&display=swap');

:root {
    /* Initial variables for mouse cursor*/
    --mouse-x: 50%;
    --mouse-y: 50%;
}

html {
    height: 100%;
}

@media (min-width: 768px) and (pointer: fine) {
    /* Set up scrolling on desktop */
    html {
        scroll-snap-type: y mandatory;
        overflow-y: scroll;
    }
}

html, body {
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

body {
    position: relative;

    /* Set font */
    color: rgb(249, 248, 248);
    font-family: Rubik, sans-serif;
}

body::before {
    /* Background gradient */
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    background-image: linear-gradient(45deg, #009fd2 10%, #a069c4 50%, #ff52a2 90%);
    background-repeat: no-repeat;
    background-size: cover;
    z-index: -2;
    will-change: transform;
}

body::after {
    /* Background bestagons */
    content: "";
    position: fixed;
    inset: 0;
    width: 100%;
    pointer-events: none;
    transform: translateZ(0);
    background-image: url('/img/branding/HexagonMask.png');
    background-repeat: repeat;
    background-size: 250px 250px;
    background-position: 10px 10px; /* Makes edges not perfect */
    z-index: -1;

    /* Adds highlight circle around hexagons at cursor */
    -webkit-mask-image: radial-gradient(
        circle 80px at var(--mouse-x) var(--mouse-y), 
        rgba(0, 0, 0, 1.0) 0%, 
        rgba(0, 0, 0, 0.1) 80%
    );
    mask-image: radial-gradient(
        circle 80px at var(--mouse-x) var(--mouse-y), 
        rgba(0, 0, 0, 1.0) 0%, 
        rgba(0, 0, 0, 0.1) 80%
    );
}

@media (hover: none), (pointer: coarse) {
    body::before {
        position: fixed;
        height: 100lvh;
        background-attachment: scroll;
        background-size: cover;
    }

    /* Disable cursor highlight + background on touch devices */
    body::after {
        position: fixed;
        height: 100lvh;
        -webkit-mask-image: none;
        mask-image: none;
        opacity: 0.1;
    }
}

/* Common elements */

section {
    /* min-height: var(--locked-vh); */
    min-height: 100svh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding-top: 56px; /* Offset for fixed navbar */
    scroll-snap-align: start; /* Snap to the top of the section */
}

footer {
    font-family: Roboto, sans-serif;
    width: 100%;
    text-align: center;
    background-color: rgba(1, 4, 0, 0.8);
    line-height: 2;
    scroll-snap-align: end;
    scroll-snap-stop: always;
    padding-bottom: env(safe-area-inset-bottom);
}

footer p {
    font-size: clamp(0.5rem, 4vw, 0.75rem);
}

/* Text Formatting */

h1, h2, h3, p, a, i, li, table, span {
    color: inherit;
}

@media (min-width: 768px) {
    h1, h2, h3, p, a, i, li, table, span {
        text-shadow: 0px 0px 4px rgba(1, 4, 0, 1), 0px 0px 12px rgba(1, 4, 0, 0.5);
        will-change: text-shadow;
    }
}

h1, h2, h3 {
    font-weight: 700;
}

p, a, i, li {
    font-size: clamp(1rem, 4vw, 1.25rem);
    text-decoration: none;
}

/* Navbar */

.nav-link {
    position: relative;
    display: inline-block;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100%;
    max-width: 100px;
    height: 4px;
    background-color: rgba(249, 248, 248, 0.5);
    
    /* Start line collapsed at center */
    transform: translateX(-50%) scaleX(0);
    transform-origin: center;
    transition: transform 0.15s ease-in-out;
}

@media (hover: hover) {
    .nav-link:hover::after {
        /* Expand line to full width on hover */
        transform: translateX(-50%) scaleX(1);
    }
}

.nav-link.active::after {
    /* Expand line to full width on hover */
    transform: translateX(-50%) scaleX(1);
    background-color: rgb(249, 248, 248);
}

/* Page Scroller */

.page-scroller {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 1000;
    width: 45px;
    height: 45px;
    background-color: rgba(0, 0, 0, 0.6);
    color: #ffffff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 20px;
    transition: background-color 0.3s ease, transform 0.3s ease;
}

@media (hover: hover) {
    .page-scroller:hover {
        background-color: rgba(0, 0, 0, 0.85);
        transform: scale(1.05);
    }
}

/* Multi Page */

.link-icon {
    font-size: clamp(2.5rem, 4vw, 3rem);
    transition: transform 0.15s ease-in-out;
}

@media (hover: hover) {
    .link-icon-container:hover .link-icon {
        transform: scale(1.1);
    }

    .link-icon-container:hover p {
        text-decoration: underline;
    }
}

.page-card {
    border-radius: 1rem;
    border: 3px solid transparent;
    opacity: 0.9;
    background-image: linear-gradient(rgba(1, 4, 0, 0.9), rgba(1, 4, 0, 0.9)),
    linear-gradient(235deg, rgba(0, 159, 210, 0.8) 10%, rgba(160, 105, 196, 0.8) 50%, rgba(255, 82, 162, 0.8) 90%);
    background-clip: padding-box, border-box;
    background-origin: padding-box, border-box;
    margin-top: 1rem;
    margin-bottom: 1rem;
}

/* Home Page */

video {
    /* Disable the video hover over effect */
    pointer-events: none;
}

.ee-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10;
}

.logo-caption {
    filter: drop-shadow(0px 0px 8px rgba(1, 4, 0, 0.5));
}

.featured-video {
    margin: 0 auto;
}

.video-thumbnail-image {
    width: 100%;
    filter: drop-shadow(0px 0px 8px rgba(1, 4, 0, 0.5));
    border-radius: 1em;
}

.video-thumbnail {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: transform 0.15s ease-in-out;
}

.play-overlay {
    /* Add a play button to the video thumbnail image */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.15s ease-in-out;
}

.play-overlay i {
    color: #ffffff;
    font-size: clamp(2rem, 4vw, 4rem);
    transition: transform 0.15s ease-in-out;
    text-shadow: 0px 0px 4px rgba(1, 4, 0), 0px 0px 12px rgba(1, 4, 0, 0.5);
}

@media (hover:none) {
    /* Always show play button on touch devices */
    .video-thumbnail .play-overlay {
      opacity: 1;
    }
}

@media (hover: hover) {
    /* Show play button on hover */
    .video-thumbnail:hover {
        transform: scale(1.02);
    }

    .video-thumbnail:hover .play-overlay {
      opacity: 1;
    }

    .video-thumbnail:hover .play-overlay i {
      transform: scale(1.1);
    }
}

/* Video Page */

.featured-video-grid {
    flex-basis: 100%;
    flex-shrink: 1;
    min-width: 240px;
}

.featured-short-grid {
    flex-basis: 100%;
    flex-shrink: 1;
    min-width: 180px;
}

@media (min-width: 768px) {
    .featured-video-grid {
        flex-basis: calc(50% - 0.75rem);
    }

    .featured-short-grid {
        flex-basis: calc(33% - 0.75rem);
    }
}

/* Game Review Pages */

.review-image {
    filter: drop-shadow(0px 0px 8px rgba(1, 4, 0, 0.5));
    border-radius: 0.25em;
    aspect-ratio: 2 / 3;
    object-fit: cover;
}

.review-stars i {
    font-size: clamp(0.75rem, 4vw, 1.25rem);
}

.review-recommend i {
    font-size: clamp(1.5rem, 4vw, 4rem);
}

.review-text-small {
    font-size: clamp(0.75rem, 4vw, 1rem);
}

.review-card {
    position: relative;
    overflow: hidden;
    flex-basis: calc(25% - 0.75rem);
    flex-shrink: 1;
    min-width: 240px;
    max-width: 480px;
}

.review-rating-overlay {
    /* Adds overlay of the review */
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding-top: 1rem;
    padding-bottom: 1rem;

    /* Add transparent background */
    background: linear-gradient(to bottom, rgba(1, 4, 0, 0) 0%, rgba(1, 4, 0, 1) 100%);
    border-radius: 0 0 0.25em 0.25rem;  
    
    /* Start hidden below the container */
    opacity: 0;
    transform: translateY(50%);
    transition: opacity 0.3s ease, transform 0.3s ease-in-out;
}

@media (hover: hover) {
    /* Show overlay on hover setting translate to origin */
    .review-card:hover {
        transform: scale(1.02);
    }

    .review-card:hover .review-rating-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (hover: none) {
    /* Show overlay always on mobile */
    .review-rating-overlay {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-select:focus {
    border-color: rgb(249, 248, 248);
    outline: 2px solid rgba(249, 248, 248, 0.5) !important;
    box-shadow: 0 0 0 0.25rem rgba(249, 248, 248, 0.25) !important;
}

/* Info Page */

.table-transparent {
    --bs-table-bg: transparent;
    --bs-table-color:rgb(249, 248, 248);
}

/* Contact Page */
