@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&display=swap');

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

body {
    font-family: 'Montserrat', sans-serif;
    background-color: #1b1b1f;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 1rem;
}

.container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #282828;
    padding: 2rem;
    border-radius: 1rem;
    color: #00ffea;
    width: 100%;
    max-width: 500px;
    margin: 1rem;
}

.title {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    margin-bottom: 1rem;
    text-align: center;
}

.counter {
    font-size: clamp(3rem, 15vw, 6rem);
    font-weight: bold;
    margin: 1rem 0;
    text-align: center;
}

.button-container {
    margin: 1.5rem 0;
    display: flex;
    gap: 0.8rem;
    flex-wrap: wrap;
    justify-content: center;
    width: 100%;
}

/* Botões */

.btn {
    border: 2px solid #00ffea;
    background-color: transparent;
    color: inherit;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    letter-spacing: 0.1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 3vw, 1rem);
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

.btn:hover {
    background-color: #00ffea;
    color: #282828;
    transform: translateY(-2px);
}

.btn.speech {
    background-color: #00ffea;
    color: #282828;
}

.btn.speech:hover {
    background-color: #00e0d1;
}

.btn.speech.gravando {
    background-color: #ff4d6d;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.btn.speech.gravando::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.2);
}

.ajuda {
    border: none;
    background-color: #00ffea;
    color: #282828;
    color: inherit;
    text-transform: uppercase;
    padding: 0.5rem 1rem;
    letter-spacing: 0.1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: clamp(0.8rem, 3vw, 1rem);
    min-width: 120px;
    flex: 1;
    max-width: 200px;
}

/* Tutorial */

.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6);
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.modal-content {
    background-color: #282828;
    color: #00ffea;
    padding: 2rem;
    border-radius: 1rem;
    max-width: 400px;
    width: 100%;
    text-align: left;
    position: relative;
    animation: fadeIn 0.3s ease-in-out;
}

.modal-content h2 {
    margin-bottom: 1rem;
    font-size: 1.5rem;
}

.modal-content p {
    margin: 0.5rem 0;
}

.close {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 1.5rem;
    cursor: pointer;
    color: #ff4d6d;
    transition: transform 0.2s;
}

.close:hover {
    transform: scale(1.2);
}