* {
    user-select: none;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    font-family: 'Arial', sans-serif;
}

body {
    background-image: url('data/BG.svg');
    background-color: #b8b8b8;
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    margin: 10px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
}

h2 {
    font-size: 1.2em;
    text-align: center;
}

h3 {
    font-size: 1em;
    line-height: 1.5;
    margin: 20px 0;
}

p {
    font-size: 12px;
    line-height: 1.5;
    margin: 20px 0;
}

nav {
    text-align: center;
    display: flex;
    background: linear-gradient(to bottom, #bebebe, #929292);
    box-shadow: 1px 1px 5px rgba(0,0,0,0.1);
    border-radius: 10px;
    justify-content: center;
    padding: 10px;
    gap: 40px;
}

select {
    border-radius: 5px;
    border: 1px solid #ffffff00;
    background-color: #ebebeb;
}

select:focus {
    outline: none;
}

.language-selector {
    position: absolute;
    right: 20px;
}

.container {
    max-width: 800px;
    margin: 50px auto;
    margin-bottom: 100px;
    padding: 20px;
    background-color: #bebebe;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.news-item {
    background-color: #ebebeb;
    padding: 15px;
    border-radius: 5px;
    margin-bottom: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.news-content {
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.news-image {
    max-width: 200px;
    height: auto;
    border-radius: 5px;
}

.news-text {
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    margin-top: 0;
    margin-bottom: 5px;
}

.news-right {
    flex: 1;
}

.news-right h2 {
    margin-top: 0;
    margin-bottom: 10px;
}

.news-right p {
    margin-top: 5px;
    color: #666;
}

a.nav-link {
    color: #000000;
    text-decoration: none;
}

a.nav-link:hover {
    text-decoration: underline;
}

button {
    display: block;
    margin: 20px auto;
    padding: 10px 20px;
    font-size: 14px;
    background-color: #ebebeb;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #bebebe;
    border-radius: 5px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.game-list {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.game-item {
    background-color: #ebebeb00;
    width: 250px;
    text-align: center;
}

.game-content {
    position: relative;
}

.game-item img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    justify-content: center;
    align-items: center;
}

.game-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #ffffff00;
    padding: 0;
    font-size: 14px;
    border: none;
}

.game-button:not(.vfl):hover {
    filter: brightness(1.1);
}

.fnas {
    transition: filter 0.3s ease;
}

.fnasBG {
    animation: fnasIdle 2s step-end infinite;
}

.fnas:hover {
    filter: invert(1);
}

.vfl {
    cursor: pointer;
    transition: all 2s linear;
    background-color: #ffffff00;
    animation: shake 7.5s ease-in-out infinite;
}

.vfl-BG {
    position: relative;
    display: inline-block;
}

.vfl:hover {
    cursor: pointer;
    animation: shake 0.5s ease-in-out infinite;
}

.chocoFly {
    animation: chocoFly 2s ease-in-out infinite;
}

.text-on-image {
    position: absolute;
    transform: translate(-50%, -950%);
    color: white;
}

.YT-button {
    display: inline-block;
    background-color: #ff0000;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px 5px;
}

.TG-button {
    display: inline-block;
    background: linear-gradient(to bottom, #29abed, #23a0da);
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px 5px;
}

.TT-button {
    display: inline-block;
    background-color: #000000;
    color: white;
    padding: 12px 30px;
    border-radius: 5px;
    text-decoration: none;
    margin: 10px 5px;
}

@keyframes shake {
    0% { transform: translate(-50%, -50%) translate(0, 0); }
    10% { transform: translate(-50%, -50%) translate(-1px, -1px); }
    20% { transform: translate(-50%, -50%) translate(1px, -1px); }
    30% { transform: translate(-50%, -50%) translate(-1px, 1px); }
    40% { transform: translate(-50%, -50%) translate(1px, 1px); }
    50% { transform: translate(-50%, -50%) translate(-1px, -1px); }
    60% { transform: translate(-50%, -50%) translate(1px, -1px); }
    70% { transform: translate(-50%, -50%) translate(-1px, 1px); }
    80% { transform: translate(-50%, -50%) translate(1px, 1px); }
    90% { transform: translate(-50%, -50%) translate(-1px, -1px); }
    100% { transform: translate(-50%, -50%) translate(0, 0); }
}

@keyframes fnasIdle {
    0% { transform: skew(0deg, 0deg); }
    20% { transform: skew(2.5deg, 0deg); }
    40% { transform: skew(0deg, 2.5deg); }
    60% { transform: skew(-2.5deg, 0deg); }
    80% { transform: skew(0deg, 2.5deg); }
    100% { transform: skew(0deg, -2.5deg); }
}

@keyframes chocoFly {
    0% { transform: translate(-50%, -47.5%); }
    50% { transform: translate(-50%, calc(-47.5% - 2.5px)); }
    100% { transform: translate(-50%, -47.5%); }
}

/* ============================================
   MEDIA QUERIES
   ============================================ */

/* --- Tablet (768px+) --- */
@media (min-width: 768px) {
    body {
        margin: 10px;
        padding: 0;
    }

    .news-content {
        flex-direction: row;
        align-items: flex-start;
    }

    .news-image {
        align-self: flex-start;
        max-width: 200px;
    }

    .news-right h2 {
        text-align: left;
    }

    .game-item {
        width: clamp(200px, 30vw, 250px);
    }
}

/* --- Desktop (1024px+) --- */
@media (min-width: 1024px) {
    .container {
        max-width: 800px;
        padding: 20px;
    }

    nav {
        gap: 40px;
        padding: 10px;
    }

    footer {
        position: fixed;
        width: 100%;
    }

    body {
        padding-bottom: 80px;
    }
}

/* --- Large screens (1440px+) --- */
@media (min-width: 1440px) {
    .container {
        max-width: 900px;
    }
}