@font-face {
    font-family: 'Hacked';
    src: url('../fonts/Hacked-Regular.ttf') format('truetype');
}

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

body {
    background: linear-gradient(rgba(0, 0, 0, 0.6), rgba(0, 0, 0, 0.6)), url('../assets/nicolas-arnold-s3-2wPcP72s-unsplash.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    color: #0f0;
    font-family: 'Courier New', monospace;
    min-height: 100vh;
    line-height: 1.6;
}

.header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.back-link {
    color: #0f0;
    text-decoration: none;
    font-size: 1.2rem;
}

.back-link:hover {
    color: #00ff00;
}

.lang-selector {
    visibility: hidden;
    position: relative;
    margin-left: auto;
}

.lang-selector.ready {
    visibility: visible;
}



.lang-button {
    background: #111;
    color: #0f0;
    border: none;
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
}

.lang-button:hover {
    background: #0f0;
    color: #111;
}

.flag-icon {
    width: 20px;
    height: 15px;
}

.lang-dropdown {
    display: none;
    position: absolute;
    right: 0;
    top: 100%;
    background: #1a1a1a;
    border: 1px solid #0f0;
    border-radius: 8px;
    min-width: 150px;
    z-index: 100;
    margin-top: 0.25rem;
}

.lang-selector:hover .lang-dropdown,
.lang-dropdown:hover {
    display: block;
}

.lang-option {
    padding: 0.5rem 1rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: 'Courier New', monospace;
}

.lang-option:hover {
    background: #0f0;
    color: #111;
}

/* Link styling */
a {
    color: #fff;
    text-decoration: none;
}

a:visited {
    color: #33ff33;
}

@media (max-width: 768px) {
    body {
        line-height: 1.5;
    }

    .container {
        padding: 1rem;
    }

    .header-container {
        flex-wrap: wrap;
        gap: 0.5rem;
        width: 100%;
    }

    .back-link {
        font-size: 1rem;
    }

    .lang-selector {
        margin-left: auto;
    }

    .lang-button {
        padding: 0.375rem 0.75rem;
    }

    .lang-dropdown {
        min-width: 120px;
    }

    .main-header h1 {
        font-size: 3rem;
        margin-bottom: 0.5rem;
        min-height: auto;
    }

    .main-header p {
        font-size: 0.95rem;
        min-height: auto;
    }
}

@media (max-width: 480px) {
    .main-header h1 {
        font-size: 2rem;
    }
}
