body {
    font-family: Arial, sans-serif;
    text-align: center;
    background: url("../images/background.jpg") no-repeat center center fixed;
    background-size: cover;
    color: white;
    margin: 0;
    padding: 0;
}

.container {
    background: rgba(0, 0, 0, 0.6);
    padding: 50px 20px 20px;
    margin: 50px auto;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    position: relative;
}

.lang-switcher {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-switcher a {
    padding: 8px 15px;
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    color: white;
    text-decoration: none;
    cursor: pointer;
}

.lang-switcher a:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

[data-lang] {
    display: none !important;
}

[data-lang].active {
    display: block !important;
}

ul {
    list-style: none;
    padding: 0;
    margin: 30px 0;
}

ul li {
    margin: 15px 0;
}

ul li a {
    display: inline-block;
    padding: 15px 30px;
    background: linear-gradient(145deg, #0066cc, #0052a3);
    color: white;
    border-radius: 30px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    min-width: 250px;
    font-size: 1.1em;
}

ul li a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #007bff, #0066cc);
    border-color: rgba(255, 255, 255, 0.4);
}

footer {
    margin-top: 30px;
}

footer a {
    padding: 8px 15px;
    border-radius: 20px;
    transition: all 0.2s ease;
    color: #cce6ff;
    font-size: 0.9em;
    background: rgba(255, 255, 255, 0.1);
    text-decoration: none;
    margin: 0 5px;
}

footer a:hover {
    background: rgba(255, 255, 255, 0.2);
}

.logo {
    max-width: 400px;
    height: auto;
    margin: 20px 0;
}

h1 {
    margin: 20px 0 20px;
}

/* Flashcards page styles */
.intro {
    margin: 20px auto;
    max-width: 700px;
    line-height: 1.6;
    font-size: 1.05em;
}

.flashcard-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin: 40px 0;
    padding: 0 20px;
}

.flashcard-grid[data-lang].active {
    display: grid !important;
}

.flashcard-item {
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 25px;
    transition: all 0.3s ease;
}

.flashcard-item:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.flashcard-item h3 {
    margin: 0 0 15px 0;
    font-size: 1.5em;
    color: #4da6ff;
}

.flashcard-info {
    text-align: left;
    margin: 15px 0;
}

.flashcard-info p {
    margin: 10px 0;
    font-size: 0.95em;
}

.flashcard-info strong {
    color: #99ccff;
}

.flashcard-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
}

.flashcard-links a {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(145deg, #0066cc, #0052a3);
    color: white;
    border-radius: 20px;
    transition: all 0.3s ease;
    font-weight: bold;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.flashcard-links a:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
    background: linear-gradient(145deg, #007bff, #0066cc);
    border-color: rgba(255, 255, 255, 0.4);
}

.flashcard-links a.disabled {
    background: linear-gradient(145deg, #666, #555);
    cursor: not-allowed;
    opacity: 0.6;
}

.flashcard-links a.disabled:hover {
    transform: none;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.back-link {
    display: inline-block;
    margin: 30px 0 20px;
    padding: 12px 30px;
    background: rgba(255, 255, 255, 0.15);
    color: white;
    border-radius: 25px;
    transition: all 0.3s ease;
    text-decoration: none;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.back-link:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
}

/* Override container width for flashcards page */
body.flashcards-page .container {
    max-width: 900px;
}
