/* Base Styles */
:root {
    --primary-color: #2F80ED;
    /* Bright blue */
    --primary-light: #56CCF2;
    --background-color: #F8FBFE;
    --text-color: #333333;
    --white: #FFFFFF;
    --shadow-sm: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 30px rgba(0, 0, 0, 0.12);
    --border-radius-lg: 24px;
    --border-radius-md: 16px;
    --font-main: 'Varela Round', sans-serif;
}

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

body {
    font-family: var(--font-main);
    color: var(--text-color);
    line-height: 1.6;
    margin: 0;
}

/* Full Viewport Layout */
.full-screen-wrapper {
    height: 100vh;
    width: 100%;
    background-image: url('../images/home-background.png');
    background-size: cover;
    background-position: center bottom;
    background-repeat: no-repeat;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow: hidden;
    padding: 0 20px;
}

.hero-header {
    text-align: center;
    width: 100%;
    max-width: 800px;
    height: 25vh;
    /* Less than 30% of viewport */
    margin-top: 5vh;
    margin-bottom: 5vh;
    /* Equal margin above and below */
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-logo {
    max-width: 100%;
    max-height: 100%;
    /* restrict image to the header */
    width: auto;
    object-fit: contain;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.2));
    animation: floatingLogo 4s ease-in-out infinite;
}

.games-container {
    width: 100%;
    max-width: 450px;
    flex: 1;
    /* Remainder of viewport */
    margin-bottom: 5vh;
    /* Equal margin above + below (above comes from hero-header margin-bottom) */
    display: flex;
    justify-content: center;
    align-items: center;
    /* Center the game card vertically in the remaining space */
    z-index: 2;
}

/* Card Updates for Overlay */
.game-card {
    background: var(--white);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 4px solid var(--white);
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

.game-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.2);
    border-color: var(--primary-light);
}

.game-image-wrapper {
    width: 100%;
    flex: 1 1 auto;
    display: flex;
    overflow: hidden;
    border-radius: calc(var(--border-radius-lg) - 4px) calc(var(--border-radius-lg) - 4px) 0 0;
}

.game-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.game-card:hover .game-image {
    transform: scale(1.05);
}

.game-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
    height: 100%;
}

.game-action {
    padding: 16px 24px;
    flex: 0 0 auto;
    text-align: center;
    background-color: var(--white);
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    border-radius: 0 0 calc(var(--border-radius-lg) - 4px) calc(var(--border-radius-lg) - 4px);
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 32px;
    font-size: 1.2rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 50px;
    transition: all 0.3s ease;
    cursor: pointer;
    box-shadow: var(--shadow-sm);
}

.btn-primary {
    background-color: var(--primary-light);
    color: var(--white);
    border: 3px solid #36a5cf;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

.btn-primary:hover {
    background-color: var(--primary-color);
    border-color: #1c5ba6;
    transform: translateY(-3px);
    box-shadow: var(--shadow-md);
}

/* Animations */
@keyframes floatingLogo {
    0% {
        transform: translateY(0px);
    }

    50% {
        transform: translateY(-15px);
    }

    100% {
        transform: translateY(0px);
    }
}

/* Responsive */
@media (max-width: 768px) {
    .full-screen-wrapper {
        padding: 20px 15px;
    }

    .hero-logo {
        max-width: 90%;
    }
}