/* social media sharing dropdown styles: */
.dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #f9f9f9;
    min-width: 200px;
    box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
    z-index: 1;
    top: 2.5rem;
    border-radius: 10px;
    overflow: hidden;
}

.dropdown.show-dropdown .dropdown-content {
    display: block;
}

.dropbtn {
    background-color: #28384b;
    color: white;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    margin-left: 10px;
    display: block;
    min-height: 2.7rem;
    min-width: 2.7rem;
    border: 1px solid #b3c2d35c;
}

.dropbtn svg {
    vertical-align: middle;
    position: absolute;
    margin-left: -0.9rem;
    margin-top: -0.08rem;
}

.dropdown-content a {
    color: black;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
}

.dropdown-content a:hover {
    background-color: #f1f1f1;
}

@media (max-width: 420px) {
    .dropdown {
        position: fixed;
        bottom: 10px;
        left: 0;
    }
}

.underline {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .dropdown-content {
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        position: fixed;
        flex-direction: column;
        /* center it vertically */
        justify-content: center;
        align-items: center;
    }

    .dropdown-content a {
        font-size: 1.6rem;
        font-weight: 700;
    }

    .dropdown.show-dropdown .dropdown-content {
        display: flex;
    }
}

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

.logo {
    max-height: 390px;
    max-width: 80%;
    margin: 3rem 0;
}


.quicksand-300 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 300;
    font-style: normal;
}

.quicksand-400 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

.quicksand-500 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
}

.quicksand-600 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
}

.quicksand-700 {
    font-family: "Quicksand", sans-serif;
    font-optical-sizing: auto;
    font-weight: 700;
    font-style: normal;
}

body {
    font-family: 'Arial', sans-serif;
    background: #1b2838;
    min-height: 100vh;
    color: #fff;
}

.header {
        min-height: 140px;
    text-align: center;
    padding: 2.5rem 1rem 0.5rem;
    background: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    margin-bottom: 0;
}

header.header::after {
    content: "";
    display: block;
    position: absolute;
    bottom: -5rem;
    height: 5rem;
    background: rgba(0, 0, 0, 0.2);
    left: 0;
    width: 100%;
}

.not-so-aaa header.header::after {
    display: none;
}

.not-so-aaa header.header {
    margin-bottom: 2rem;
}

.not-so-aaa .social-media-wrapper {
    text-align: right;
    margin-bottom: -5.7rem;
    max-width: fit-content;
    margin-left: auto;
}



.not-so-aaa .social-media {
    padding: 0;
    padding-right: 1rem;
}

@media (max-width: 1024px) {
    .not-so-aaa .social-media {
        padding-right: 0;
    }
    .not-so-aaa .social-media-wrapper {
        margin: 0 auto;
        margin-bottom: -0.7rem;
        margin-top: -1.5rem;
        text-align: center;
    }
}


.header h1 {
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    
}

.header p {
    max-width: 600px;
    font-size: 1.2rem;
    opacity: 0.9;
    margin: 0 auto;
}

.not-so-aaa .header p {
    font-size: 1.5rem;
    line-height: 2.5rem;
    margin-bottom: 2rem;
    font-weight: 500;
    border-top: 2px dashed #ffffff;
    border-bottom: 2px dashed #ffffff;
    /* padding-top: 2rem; */
    padding: 2rem;
    /* border-radius: 30px; */
    max-width: 700px;
}

.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1rem;
}

.games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.game-card {
    line-height: 0;
    position: relative;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #666;
}


.game-card:hover {
    
}

.game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
}


.game-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 200px;
    opacity: 0;
    pointer-events: none;
    z-index: 2;
}

.game-card:hover .game-video {
    opacity: 1;
    pointer-events: auto;
}

.game-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.preview-button {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 3;
    line-height: 0;
    display: none;
}

.preview-button:hover {
    background: rgba(0, 0, 0, 0.9);
    transform: scale(1.1);
}

.preview-button.active {
    background: #007acc;
}

@media (max-width: 768px) {
    .game-card:hover .game-video {
        opacity: 0;
    }

    .preview-button {
        display: block;
    }

    .game-video.mobile-active {
        opacity: 1 !important;
        pointer-events: auto !important;
    }
}

.game-overlay {
    line-height: 1rem;
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
        background: linear-gradient(transparent, rgba(0, 0, 0, 0.9));
    padding: 0.9rem;
    padding-bottom: 0.8rem;
    transform: translateY(0);
    transition: transform 0.3s ease;
}

.game-name {
    font-size: 1.3rem;
    /* padding-bottom: 0.1rem; */
    font-weight: 600;
    color: #fff;
    text-shadow: 2px 2px 2px rgba(0, 0, 0, 0.9);
    line-height: 1.5;
    /* force one line only: */
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
}



.loading {
    text-align: center;
    padding: 2rem;
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
}

.spinner {
    display: inline-block;
    width: 40px;
    height: 40px;
    border: 4px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: #fff;
    animation: spin 1s ease-in-out infinite;
    margin: 1rem auto;
}

.video-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    margin-left: -20px;
    margin-top: -20px;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.info {
text-align: center;
    padding: 1rem;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    margin: 1rem 0;
}

.info.stats {
    display: flex;
    justify-content: space-between;
    min-height: 68px;
}

.info.stats > div {
    flex: 0.8;
}

.info.stats > div.flex-center {
    flex: 1;
}

.flex-left {
    /* justify-self: start; */
    text-align: left;
}

@media (max-width: 1024px) {
    .info.stats {
        flex-direction: column;
        align-items: center;
    }
    .spacer {
        display: none;
    }
    .info.stats > div {
        margin: 0.9rem 0;
    }
}

.info.want-more {
    margin-top: 2rem;
    background: none;
}

.info-item,
.extra-link {
    display: inline-block;
    margin: 0 0.4rem;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    backdrop-filter: blur(5px);
}

.info-item {
    background: #2b3546;
    color: #d4d6df;
}

.emoji {
    transform: scale(3) rotate(0) translate(-0.2rem, 0.2rem);
    display: inline-block;
    padding-right: 0.4rem;
    margin-left: 0.7rem;
}

.want-more .emoji {
    transform: scale(3.5) rotate(0deg) translate(-0.2rem, -0.1rem);
}

.emoji img {
    max-width: 1.2rem;
}

a.extra-link {
    color: white;
    font-weight: 600;
    border: 1px solid white;
    text-decoration: none;
    background: bottom;
    box-shadow: 1px 2px white;
    background: #19222e;
    transform: translateY(-1px);
    display: flex;
    max-width: fit-content;
    flex-direction: row;
    justify-content: flex-start;
    flex-wrap: nowrap;
    align-items: center;
    margin-bottom: -3px;
    margin-top: -2px;
}

.instagram-icon {
    max-width: 1.3rem;
    display: inline-block;
    vertical-align: bottom;
    margin-right: 0.2rem;
    margin-left: -0.1rem;
}

/* instagram icon has a scaling up and shaking animation after 30 seconds, to incentive clicking */
@keyframes animation {
    0% {
        transform: scale(1) rotate(0deg);
    }
    50% {
        transform: scale(1.2) rotate(15deg);
    }
    70% {
        transform: scale(1.2) rotate(-15deg);
    }
    90% {
        transform: scale(1.2) rotate(15deg);
    }
    100% {
        transform: scale(1) rotate(0deg);
    }
}

.instagram-icon {
    animation: animation 0.5s ease-in-out 2;
    animation-delay: 30s;
    animation-fill-mode: forwards;
    transform-origin: 50% 50%;
}

a.extra-link:hover {
    box-shadow: 0px 1px white;
    transform: translateY(1px) translateX(1px);
}

.want-more .extra-link a {
    color: gold;
    font-size: 1.4em;
    font-weight: bold;
    text-decoration: none;
}

.want-more .extra-link a:hover {
    color: white;
}

.want-more .extra-link {
    margin: 0 0.4rem;
    padding: 0.8rem 2rem;
    border: 2px solid gold;
    border-radius: 30px;
}

.want-more .extra-link:has(a:hover) {
    border-color: white;
}

@media (max-width: 768px) {
    .want-more .emoji {
        display: block;
        margin-bottom: 4rem;
        text-decoration: none;
        border: 0;
        transform: scale(3.5) rotate(0deg) translate(0rem, 0.4rem);
    }
}

.reset-button {
    display: inline-block;
    margin: 0 1rem;
    padding: 0.5rem 1rem;
    background: rgba(255, 59, 59, 0.2);
    border: 1px solid rgba(255, 59, 59, 0.5);
    border-radius: 20px;
    backdrop-filter: blur(5px);
    color: #fff;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.9rem;
}

.reset-button:hover {
    background: rgba(255, 59, 59, 0.4);
    transform: translateY(-1px);
}

.social-media-wrapper {
    position: sticky;
    top: 0;
    z-index: 10;
    padding: 1rem;
    text-align: center;
}


.social-media {
    display: inline-block;
    text-align: center;
    border-radius: 8px;
    position: sticky;
    top: 0;
    z-index: 10;
    font-size: 1.1rem;
}

.social-media p {
    margin: 0 0 1rem 0;
    font-size: 1rem;
    color: #fff;
}

.social-link {
    vertical-align: top;
    display: inline-block;
    padding: 0.7rem 1.5rem;
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.3), rgba(138, 43, 226, 0.3));
    border: 1px solid rgb(60 77 99 / 48%);
    border-radius: 25px;
    backdrop-filter: blur(5px);
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 1rem;
    font-weight: 500;
}

.social-link:hover {
    background: linear-gradient(135deg, rgba(0, 191, 255, 0.5), rgba(138, 43, 226, 0.5));
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 191, 255, 0.3);
}


.game-date, .game-price {
    font-size: 0.7em;
    text-transform: uppercase;
    color: #e7e6edd9;
    padding: 0.2rem;
    vertical-align: bottom;
    border-radius: 2px;
    display: inline-block;
    text-shadow: 1px 1px 0px rgba(0, 0, 0, 0.5);
}


.game-date {
    border-right: 1px solid #e7e6ed91;
    padding-right: 0.5rem;
}

.game-price {
    padding-left: 0.5rem;
}


@media (max-width: 768px) {

    .game-card {
        border-radius: 0;
        transition: none;
        overflow: visible;
    }
    .game-date, .game-price {
        border-radius: 0;
        font-size: 0.8em;
    }
    .game-name {
        font-size: 1.4rem;
        padding-bottom: 0.2rem;
    }

    .header {
        padding-bottom: 0;
    }

    .header h1 {
        font-size: 2rem;
    }

    .header p {
        line-height: 1.9rem;
    }

    .games-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: 1rem;
    }

    .info-item,
    .extra-link {
        display: block;
        margin: 0;
    }

    .reset-button {
        display: block;
        margin: 0;
    }

    .social-link {
        display: inline-block;
        margin: 0;
        max-width: 250px;
        padding: 0.8rem 1rem;
    }

    .dropdown {
        margin: 0;
    }

    .dropbtn {
        padding: 0.8rem 1rem;
        min-height: 3.1rem;
        min-width: 3.1rem;
    }

}

@media (max-width: 480px) {
    .games-grid {
        grid-template-columns: 1fr;
    }
}

