* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #0f172a;
    --accent: #2563eb;
    --background: #f8fafc;
    --card: #ffffff;
    --text: #1e293b;
    --muted: #64748b;
    --border: #e2e8f0;
}

body {
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 24px;
    background:
        linear-gradient(rgba(2, 8, 35, 0.35), rgba(2, 8, 35, 0.35)),
        url("../pro-hook-background.png") center / cover no-repeat fixed;
    font-family: Arial, Helvetica, sans-serif;
    color: var(--text);
}

.container {
    width: min(420px, 100%);
    padding: 30px;
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.9);
    box-shadow: 0 18px 50px rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(8px);
}

.language-card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 40px 30px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
}

h1 {
    text-align: center;
    font-size: 2rem;
    margin-bottom: 8px;
}

h2 {
    text-align: center;
    font-size: 1.3rem;
    color: var(--muted);
    font-weight: 500;
    margin-bottom: 24px;
}
p {
    text-align: center;
    color: var(--muted);
    line-height: 1.6;
    margin-bottom: 32px;
}

.language-buttons {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.language-button {
    width: 100%;
    padding: 18px;
    border: none;
    border-radius: 12px;

    background: var(--accent);
    color: white;

    font-size: 1.05rem;
    font-weight: 600;

    cursor: pointer;

    transition:
        background 0.2s,
        transform 0.15s;
}

.language-button:hover {
    background: #1d4ed8;
    transform: translateY(-2px);
}

.language-button:active {
    transform: translateY(0);
}

@media (max-width: 480px) {

    body {
        padding: 16px;
        background-attachment: scroll;
    }

    .container {
        padding: 24px 20px;
    }

    .language-card {
        padding: 30px 22px;
    }

    h1 {
        font-size: 1.7rem;
    }

}

.hidden {
    display: none;
}

audio {
    width: 100%;
    margin-top: 20px;
}

.hidden {
    display: none;
}

.card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.lang-btn,
#backBtn {

    width: 100%;
    padding: 16px;

    border: none;
    border-radius: 12px;

    cursor: pointer;

    font-size: 17px;
    font-weight: 600;

    background: #2563eb;
    color: white;

    transition: .2s;
}

.lang-btn:hover,
#backBtn:hover {

    background: #1d4ed8;

}
audio {

    width: 100%;

}


.card {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.button-group {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.hidden {
    display: none;
}

.lang-btn,
#changeLanguageBtn {

    width: 100%;
    padding: 16px;

    border: none;
    border-radius: 10px;

    background: #2563eb;
    color: white;

    font-size: 17px;
    font-weight: 600;

    cursor: pointer;

    transition: .2s;
}

.lang-btn:hover,
#changeLanguageBtn:hover {

    background: #1d4ed8;

}

audio {

    width: 100%;

}

.site-header {
    text-align: center;
    margin-bottom: 22px;
}

.book-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: -0.04em;
    color: #071a4d;
    text-shadow: 0 2px 0 rgba(255, 255, 255, 0.8);
    margin: 0;
}

.card h2 {
    align-self: center;
    width: fit-content;
    padding: 7px 18px;
    border: 1px solid rgba(245, 158, 11, 0.5);
    border-radius: 999px;
    background: linear-gradient(135deg, #fbbf24, #f59e0b);
    box-shadow: 0 6px 16px rgba(245, 158, 11, 0.24);
    color: #172554;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1.50rem;
    font-weight: 800;
    line-height: 1.2;
    letter-spacing: 0.04em;
    margin-bottom: 2px;
}

.card p {
    text-align: center;
    color: var(--muted);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1rem;
    font-weight: 500;
    line-height: 1.5;
    margin-bottom: 25px;
}

.card .language-prompt {
    margin: 4px 0 8px;
    color: #1e293b;
    font-size: 1.08rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.error-card p {
    margin: 4px 0 0;
}

.site-footer {
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid rgba(15, 23, 42, 0.18);
}

.site-footer p {
    margin: 0;
    color: var(--muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}
