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

body {
    font-family: "Arial", sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 10px;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.show {
    opacity: 1;
}

.modal-content {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 20px;
    width: 95%;
    min-height: 95vh;
    max-width: 1200px;
    max-height: 95vh;
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    overflow: auto;
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 36px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease;
    z-index: 10;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.modal-body {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 60px 40px;
    text-align: center;
}

.modal-body h2 {
    font-size: 3em;
    margin-bottom: 30px;
    font-weight: 300;
    line-height: 1.2;
}

.modal-count {
    font-weight: 700;
    color: #ffd700;
    text-shadow: 0 0 20px rgba(255, 215, 0, 0.5);
}

.modal-subtitle {
    font-size: 2.2em;
    margin-bottom: 40px;
    line-height: 1.4;
    color: rgba(255, 255, 255, 0.95);
}

.modal-subtitle em {
    font-style: normal;
    font-weight: 600;
    display: block;
    margin-top: 20px;
    font-size: 1.1em;
    color: #ffd700;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.modal-text {
    font-size: 1.4em;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.9);
    max-width: 800px;
    margin-bottom: 50px;
}

.modal-buttons {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
    justify-content: center;
}

.modal-button {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: white;
    padding: 18px 35px;
    border-radius: 50px;
    text-decoration: none;
    font-size: 1.2em;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.modal-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 100;
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.language-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.language-button:hover {
    background: rgba(255, 255, 255, 0.3);
}

.language-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 8px;
    min-width: 180px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    z-index: 1000;
}

.language-menu.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 12px 16px;
    color: #333;
    cursor: pointer;
    transition: background 0.2s ease;
    font-size: 14px;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

.language-option:hover {
    background: rgba(102, 126, 234, 0.1);
}

.container {
    text-align: center;
    position: relative;
    z-index: 1;
    padding: 20px;
}

.phrase-container {
    margin-bottom: 40px;
}

.phrase {
    font-size: 3.5em;
    font-weight: 300;
    margin: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.8s ease;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    line-height: 1.2;
}

.phrase.show {
    opacity: 1;
    transform: translateY(0);
}

.controls-container {
    margin-bottom: 30px;
}

.mute-button {
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    color: white;
    padding: 12px 16px;
    border-radius: 50px;
    cursor: pointer;
    font-size: 18px;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.mute-button:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.online-container {
    position: fixed;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.online {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 14px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

@media (max-width: 768px) {
    .modal-content {
        width: 100%;
        min-height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .modal-body {
        padding: 40px 20px;
    }

    .modal-body h2 {
        font-size: 1.8em;
    }

    .modal-subtitle {
        font-size: 1.4em;
    }

    .modal-subtitle em {
        font-size: 1em;
    }

    .modal-text {
        font-size: 1.1em;
    }

    .modal-buttons {
        flex-direction: column;
        width: 100%;
        gap: 15px;
    }

    .modal-button {
        width: 100%;
        padding: 15px 25px;
        font-size: 1.1em;
    }

    .modal-close {
        width: 40px;
        height: 40px;
        font-size: 28px;
        top: 15px;
        right: 15px;
    }

    .language-selector {
        top: 15px;
        right: 60px;
    }

    .phrase {
        font-size: 2.5em;
    }

    .container {
        padding: 10px;
    }
}

@media (min-width: 1920px) {
    .modal-content {
        max-width: 1400px;
    }

    .modal-body h2 {
        font-size: 3.5em;
    }

    .modal-subtitle {
        font-size: 2.5em;
    }

    .modal-text {
        font-size: 1.6em;
    }

    .modal-button {
        font-size: 1.3em;
        padding: 20px 40px;
    }

    .phrase {
        font-size: 4.5em;
    }
}
