* {
    font-family: "JetBrains Mono", sans-serif;
}

.main-upper-text {
    color: rgb(198, 67, 67);
    font-size: 37px;
}

body {
    text-align: center;
    display: flex;
}

body.light {
    background-color: antiquewhite;
    color: black;
}

body.dark {
    background-color: rgb(14, 21, 49);
    color: antiquewhite;
}

.main-container {
    display: block;
    margin: auto;
    margin-top: 50px;
}

.left-buttons-container {
    display: flex;
    position: fixed;
    top: 27px;
    left: 30px;
}

.tutorial-btn {
    font-size: 19px;
    font-weight: bold;
    background: none;
    border: none;
    margin: 0;
    padding: 0;
    cursor: pointer;
    position: fixed;
    top: 25.8px;
    left: 75px;
    text-decoration: underline;
    text-underline-offset: 3px;
    transition: transform 0.25s ease;
}

.tutorial-btn:hover {
    transform: scale(1.06);
}

body.dark .tutorial-btn {
    color: antiquewhite;
}

.toggle-theme-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    margin: 0;
    font-size: 24px;
    font-variation-settings: 'wght' 500;
    transition: transform 0.25s ease;
}

.toggle-theme-btn:hover {
    transform: scale(1.15);
}

body.light .toggle-theme-btn {
    color: black;
}

body.dark .toggle-theme-btn {
    color: antiquewhite;
    font-variation-settings: 'FILL' 1;
}

.media-info-container {
    display: flex;
    position: fixed;
    top: 5px;
    right: 30px;
    z-index: 1000;
    gap: 20px;
}

.bpm, .volume {
    display: flex;
    gap: 5px;
}

.bpm-value-div, .volume-value-div {
    color: rgb(198, 67, 67);
}

.text-input {
    font-size: 20px;
    line-height: 1.4;
    height: 200px;
    width: 800px;
    border: 2px solid black;
    border-radius: 45px;
    margin: 0 auto;
    display: block;
    margin-bottom: 10px;
    padding: 15px;
    resize: none;
}

body.light .text-input {
    background-color: antiquewhite;
    color: black;
}

body.dark .text-input {
    background-color: rgb(18, 26, 61);
    color: antiquewhite;
}

.text-input:focus {
    outline: none;
    border: 2px solid rgb(198, 67, 67);
    box-shadow: 0 3px 13px rgba(198, 67, 67, 0.4);
}

.note-display {
    font-size: 70px;
    margin-top: 17px;
}

.note-display.pulse {
    transform: scale(1.1);
    animation: pulse 0.3s ease-in-out;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    30% {
        transform: scale(1.03);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.buttons-container {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 10px;
}

.upload-file-btn, .save-file-btn {
    width: 35px;
    height: 35px;
    font-size: 17px;
    background-color: black;
    color: antiquewhite;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.save-file-btn {
    position: fixed;
    bottom: 20px;
    left: 45.7%;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 120px;
}

[type="submit"] {
    width: 100px;
    height: 35px;
    font-size: 17px;
    background-color: black;
    color: antiquewhite;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: transform 0.4s ease;
}

[type="submit"]:hover, .upload-file-btn:hover, .save-file-btn:hover {
    background: linear-gradient(45deg, rgb(198, 67, 67), rgb(220, 90, 90));
    box-shadow: 0 6px 20px rgba(198, 67, 67, 0.4);
    transform: scale(1.07);
}

[type="submit"]:active, .upload-file-btn:active, .save-file-btn:active {
    transform: scale(0.98) translateY(2px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    transition: all 0.08s ease;
}

.arrow {
    color: rgb(198, 67, 67);
    font-size: 80px;
    text-align: center;
    margin-top: 20px;
}

.bottom-alert-display {
    position: fixed;
    font-size: 15px;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    justify-content: center;
    color: rgb(198, 67, 67);
}

.bottom-alert-display.saved {
    color: black;
}

.tutorial-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* ← Overlay escuro */
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.tutorial-modal.show {
    display: flex;
}

.tutorial-content {
    background-color: white;
    border-radius: 15px;
    width: 90%;
    max-width: 600px; /* ← Controla tamanho máximo */
    max-height: 80%; /* ← Altura máxima */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    overflow: hidden;
    animation: modalSlideIn 0.2s ease-out;
}

/* Adaptação para temas */
body.light .tutorial-content {
    background-color: antiquewhite;
    color: black;
}

body.dark .tutorial-content {
    background-color: rgb(18, 26, 61);
    color: antiquewhite;
    border: 2px solid rgb(198, 67, 67);
}

.tutorial-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 2px solid rgb(198, 67, 67);
}

.tutorial-header h2 {
    margin: 0;
    color: rgb(198, 67, 67);
    font-size: 24px;
}

.close-tutorial-btn {
    background: none;
    border: none;
    font-size: 30px;
    cursor: pointer;
    color: rgb(198, 67, 67);
    font-weight: bold;
    padding: 0;
    line-height: 1;
}

.close-tutorial-btn:hover {
    transform: scale(1.2);
    transition: transform 0.2s ease;
}

.tutorial-body {
    padding: 20px;
    text-align: left;
    max-height: 400px;
    overflow-y: auto; /* ← Scroll se necessário */
}

.tutorial-body h3 {
    color: rgb(198, 67, 67);
    margin-top: 0;
}

.tutorial-body ul {
    margin: 15px 0;
    padding-left: 20px;
}

.tutorial-body li {
    margin: 8px 0;
    line-height: 1.5;
}

.tutorial-body strong {
    color: rgb(198, 67, 67);
}

/* animação de entrada */
@keyframes modalSlideIn {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}