/* Reset e configuração inicial */
html, body {
    margin: 0;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background: black;
    color: white;
    font-family: 'OldLondon', sans-serif;
    text-align: center; /* Centraliza o texto */
}

/* Fonte personalizada */
@font-face {
    font-family: 'OldLondon';
    src: url('OldLondon.ttf') format('truetype');
    font-display: swap;
}

/* Contêiner para o título e subtítulo */
.titulo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem; /* Espaço entre o título e o subtítulo */
    transform: translateY(-20%); /* Move o contêiner para cima */
    user-select: none;
    position: relative; /* Adiciona posição relativa */
    z-index: 2; /* Garante que o título fique sobre os previews */
}

/* Estilo do título */
h1 {
    font-size: calc(6rem + 6vw);
    margin: 0;
}

/* Estilo do subtítulo */
h2 {
    font-size: calc(2rem + 2vw);
    margin: 0;
    font-weight: normal;
    opacity: 0.8; /* Deixa o subtítulo mais suave */
    margin: -4rem 0 0; /* Margem superior negativa para aproximar do <h1> */
}


/* Estilo dos botões */
.button-container {
    display: flex;
    gap: 5rem; /* Espaço entre os botões */
}

/* Botão outline */
.registrar{
    border: 2px solid white;
    background-color: black;
    color: white;
    padding: 25px 40px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.registrar:hover {
    background-color: white;
    color: black;
}

/* Botão cheio (fundo branco, texto preto) */
.entrar {
    background-color: white;
    color: black;
    padding: 25px 50px;
    font-size: 1rem;
    cursor: pointer;
    text-transform: uppercase;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.entrar:hover {
    background-color: black;
    color: white;
}
    


/* Contêiner principal dos previews */
#preview-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 110%;
    height: 80%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 1; /* Garante que o preview fique atrás do título */
}

/* Cada preview (esquerdo e direito) */
.preview {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 40%;
    height: 100%;
    position: relative;
}

#random-music-container {
    position: relative;
    display: inline-block;
    margin: 0 40px; /* Adiciona espaço lateral entre os contêineres */
    width: 150px; /* Ajuste conforme o tamanho da música e setas */
}


/* Estilo da capa das músicas */
.random-music img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    cursor: pointer;
    border-radius: 16px;
    transition: transform 0.5s ease-in-out, opacity 1s ease-in-out, filter 0.5s ease-in-out;
    will-change: transform, opacity, filter;
    contain: layout style paint;
}

/* Quando a imagem sai (fade-out), aplicamos a opacidade 0 e o desfoque */
.random-music img.fade-out {
    opacity: 0;
    filter: blur(5px); /* Aplica desfoque durante o fade-out */
}

/* Quando a imagem entra (fade-in), aplicamos a opacidade 1 e o desfoque é removido */
.random-music img.fade-in {
    opacity: 1;
    filter: blur(0px); /* Remove o desfoque */
}



.random-music img:hover {
    transform: scale(1.05);
}

.random-music.playing img {
    filter: brightness(70%);
}

.random-music.stopped img {
    filter: brightness(100%);
}

/* Estilo para o texto de carregamento */
.loading {
    font-size: 1.2rem;
    color: white;
    margin-top: 10px;
    animation: fadeIn 1.5s ease-in-out infinite;
}

@keyframes fadeIn {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Estilos para os modais */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

.modal-content {
    background-color: #000000;
    padding: 20px;
    border-radius: 8px;
    width: 90%;
    max-width: 400px;
    text-align: center;
}

.modal-content h2 {
    margin-bottom: 20px;
}

.modal-content .field {
    margin-bottom: 15px;
}

.modal-content label {
    display: block;
    margin-bottom: 5px;
}

.modal-content input {
    width: 100%;
    padding: 10px;
    border: 1px solid #303030;
    background-color: #222222;
    border-radius: 5px;
    color:#ffffff
}




.modal-content button {
    padding: 10px 20px;
    background-color: #222222;
    color: #ffffff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}

.modal-content .close {
    position: absolute;
    top: 10px;
    right: 20px;
    font-size: 20px;
    cursor: pointer;
}

#notification {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: black;  /* Cor padrão */
    color: white;
    padding: 40px 80px;    /* Aumentando o padding para aumentar o tamanho da caixa */
    font-size: 2rem;        /* Aumentando o tamanho da fonte */
    height: 150px;          /* Definindo uma altura fixa para a notificação */
    display: flex;
    align-items: center;    /* Alinha o conteúdo verticalmente no centro */
    justify-content: space-between;
    z-index: 10000;
    transition: all 0.3s ease;
    text-align: center;     /* Centraliza o texto */
    border-radius: 15px;    /* Arredondamento das bordas */
    opacity: 0.85; /* Opacidade reduzida, mas ainda visível */
}


.header-text:hover{
    cursor:pointer;
}


#notification.hidden {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(-20px);
    pointer-events: none;
}

/* Notificação de sucesso */
#notification.success {
    background-color:#000000;  /* Verde para sucesso */
}

/* Notificação de erro */
#notification.error {
    background-color: #000000;  /* Vermelho para erro */
    
}

#notification .close-btn {
    cursor: pointer;
    font-size: 1.5rem;
    font-weight: bold;
}

/* Estilos para o Modal de Aviso */
.warning-modal-content {
    background: linear-gradient(135deg, #1a1a1a 0%, #2d2d2d 100%);
    border: 2px solid #ffffff;
    border-radius: 15px;
    padding: 2rem;
    max-width: 500px;

    animation: warningSlideIn 0.3s ease-out;
}

@keyframes warningSlideIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

.warning-content {
    text-align: center;
    margin-bottom: 1.5rem;
}

.warning-content h2 {
    font-size: 1.8rem;
    margin: 0 0 1rem 0;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.warning-content p {
    font-size: 1rem;
    line-height: 1.6;
    color: #e0e0e0;
    margin: 0.8rem 0;
    font-family: Arial, sans-serif;
    font-weight: normal;
}

.warning-content .highlight {
    background-color: rgba(255, 165, 0, 0.2);
    padding: 1rem;
    border-radius: 8px;
    border-left: 4px solid #3d3d3d;
    margin-top: 1.5rem;
    font-weight: bold;
    color: #ffffff;
}

.btn-warning {
    background-color: #ffa500;
    color: #000;
    border: none;
    padding: 0.8rem 2rem;
    font-size: 1rem;
    font-weight: bold;
    border-radius: 8px;
    cursor: pointer;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-warning:hover {
    background-color: #ffb81a;

}

.btn-warning:active {
    transform: translateY(0);
}

