html {
    scroll-behavior: smooth;
}

body {
    font-family: Nunito, monospace, sans-serif;
    margin: 0;
    padding: 0;
    background: linear-gradient(-45deg, #ee7752, #e73c7e, #23a6d5, #23d5ab);
    background-size: 400% 400%;
    animation: gradient 15s ease infinite;
    color: #333;
    line-height: 1.6;
}

@keyframes gradient {
    0% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }

    100% {
        background-position: 0% 50%;
    }
}

header {
    background-color: rgba(44, 62, 80, 0.7);
    color: #fff;
    padding: 0.5em 0;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    justify-content: space-between;
    /* Add a backdrop filter for a frosted glass effect */
    backdrop-filter: blur(10px);
    /* Ensure the background is slightly transparent to see the blur */
    /* Add a subtle border */
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

header h1 {
    margin: 0;
    font-size: 2em;
    font-weight: 400;
}

#logo {
    position: relative;
    width: 50px;
    height: 50px;
    border-radius: 0%;
    overflow: hidden;
    animation: fadeIn 2s ease-in-out, rotate 2s cubic-bezier(0.25, 1, 0.5, 1);
    /* box-shadow: 0 1px 20px rgba(0, 0, 0, 0.3); */
    margin-left: 20px;
}

#logo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

nav {
    display: flex;
    margin-top: 1em;
    margin-right: 20px;
}

nav a {
    color: #fff;
    text-decoration: none;
    padding: 0.5em 1em;
    margin: 0 0.25em;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    font-size: 0.9em;
}

nav a:hover {
    text-decoration: underline;
}

main {
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

section {
    margin-bottom: 30px;
    background-color: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

section h2 {
    color: #2c3e50;
    border-bottom: 2px solid #2c3e50;
    padding-bottom: 0.5em;
    margin-bottom: 0.75em;
}

#hero {
    text-align: center;
    padding: 3em 2em;
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1)), url('./materials/games_slide.png');
    background-size: cover;
    background-position: center;
    color: #fff;
    border-radius: 10px;
}

#hero h2 {
    color: #fff;
    border-bottom: none;
    font-size: 2.5em;
    margin-bottom: 0.5em;
}

#hero p {
    font-size: 1.2em;
    line-height: 1.8;
    margin-bottom: 1.5em;
}

.button {
    display: inline-block;
    background-color: #3498db;
    color: #fff;
    padding: 0.8em 1.75em;
    text-decoration: none;
    border-radius: 7px;
    margin-top: 1em;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1.1em;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.button:hover {
    background-color: #2980b9;
}

.game-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(500px, 1fr));
    gap: 20px;
    align-content: center;
}

.game-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.game-card img {
    width: 100%;
    height: 300px;
    object-fit: cover;
    display: block;
}

.game-card h3,
.game-card p {
    padding: 0 15px;
    text-align: left;
}

.game-card h3 {
    font-size: 1.4em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #3498db;
}

.game-card p {
    font-size: 1em;
    color: #555;
    line-height: 1.5;
}

.game-card a.button {
    text-align: center;
    display: inline-block;
    margin: 15px auto;
    width: fit-content;
}

.work-in-progress-banner {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 0, 0, 0.7);
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 0.8em;
    z-index: 10;
}

.game-buttons {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 15px;
}

.game-button {
    display: inline-block;
    padding: 0.6em 1.3em;
    text-decoration: none;
    border-radius: 7px;
    transition: background-color 0.3s ease;
    border: none;
    font-size: 1em;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    color: #fff;
    margin-bottom: 2%;
}

.website-button {
    background-color: #630cc7;
}

.website-button:hover {
    background-color: #3e077d;
}

.steam-button {
    background-color: #171a21;
}

.steam-button:hover {
    background-color: #12141b;
}

.switch-button {
    background-color: #e60012;
}

.switch-button:hover {
    background-color: #d40010;
}

.android-button {
    background-color: #3ddc84;
}

.android-button:hover {
    background-color: #35c477;
}

.team-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 350px));
    gap: 20px;
    justify-content: center;
}

.team-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    text-align: center;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    width: 250px;
    margin: 0 auto;
}

.team-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.team-card img {
    width: 100%;
    height: auto;
    object-fit: cover;
    display: block;
    object-position: top;
}

.team-card h3,
.team-card p {
    padding: 0 15px;
}

.team-card h3 {
    font-size: 1.2em;
    margin-top: 15px;
    margin-bottom: 10px;
    color: #3498db;
}

.team-card p {
    font-size: 1em;
    color: #555;
}

footer {
    background-color: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 1em 0;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.2);
    margin-top: 2em;
}

#background-video {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
}

#background-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

#background-video #video-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 50%;
    height: auto;
    z-index: 2;
}

#contact p {
    font-size: 1.1em;
    margin-bottom: 1em;
}

#contact a {
    color: #3498db;
    text-decoration: none;
    transition: color 0.3s ease;
}

#contact a:hover {
    color: #2980b9;
}

#services ul {
    list-style: none;
    padding: 0;
}

#services li {
    background-color: #f9f9f9;
    margin-bottom: 0.5em;
    padding: 1em;
    border-left: 5px solid #3498db;
    border-radius: 5px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
    font-size: 1.1em;
}

.pricing-plan {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}

.plan-card {
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background-color: #fff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.plan-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.plan-card h3 {
    background-color: #3498db;
    color: #fff;
    padding: 15px;
    margin: 0;
    font-size: 1.4em;
}

.plan-card .price {
    font-size: 2em;
    margin: 15px 0;
    color: #2c3e50;
}

.plan-card ul {
    list-style: none;
    padding: 0;
}

.plan-card li {
    padding: 10px;
    font-size: 1em;
    color: #555;
    border-bottom: 1px solid #eee;
}

.plan-card li:last-child {
    border-bottom: none;
}

.plan-card .button {
    margin: 20px auto;
    width: fit-content;
}

/* Responsive Design */
@media (max-width: 768px) {
    header {
        flex-direction: column;
        padding: 0.5em 0;
    }

    header h1 {
        font-size: 1.75em;
    }

    #logo {
        position: static;
        margin-bottom: 0.5em;
    }

    nav {
        flex-direction: column;
        align-items: center;
    }

    nav a {
        margin: 0.25em 0;
    }

    #hero {
        padding: 2em 1em;
    }

    #hero h2 {
        font-size: 2em;
    }

    .game-list,
    .team-list {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }

    .team-card img,
    .game-card img {
        height: 150px;
    }

    #background-video {
        height: 300px;
    }
}