/* NUEVO: Configuración de la fuente de Minecraft */
@font-face {
    font-family: 'Minecraftia';
    src: url('fonts/Minecraftia.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    margin: 0;
    background-color: #f0f0f0;
    font-family: 'Minecraftia', sans-serif;
}
/* Nuevo contenedor para los tres botones principales */
.top-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 100px; /* Ajusta la posición vertical de los botones principales */
    margin-bottom: 20px;
}
.btn {
    background-color: #333;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}
.btn:hover {
    background-color: #555;
}
.five-buttons-container,
.three-buttons-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    position: absolute; /* Posicionamiento absoluto */
    top: 500px; /* Ajusta este valor para posicionar los menús debajo de los botones principales */
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.5s ease-out;
    pointer-events: none;
    z-index: 100;
}
.five-buttons-container.visible,
.three-buttons-container.visible {
    opacity: 1;
    pointer-events: auto;
}
.whatsapp-btn {
    display: inline-block;
    background-color: #25D366;
    color: #fff;
    border-radius: 8px;
    padding: 10px 20px;
    text-decoration: none;
    font-size: 14px;
    text-align: center;
    transition: background-color 0.3s ease, transform 0.2s ease;
}
.whatsapp-btn:hover {
    background-color: #128C7E;
    transform: scale(1.05);
}
.container {
    width: 375px;
    height: 812px;
    position: relative;
    overflow: hidden;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}
.image-background {
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-image: url('https://i.imgur.com/G37jXgT.png'); 
}
.movable-panel {
    position: absolute;
    width: 80%;
    height: 90%;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
    cursor: grab;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    text-align: center;
    padding: 20px;
    box-sizing: border-box;
    transition: none; 
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
}
.movable-panel.grabbing {
    cursor: grabbing;
}
.circular-image {
    width: 120px;
    height: 120px;
    object-fit: cover;
    background-position: center;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 15px 5px rgba(255, 255, 255, 0.6);
    margin-bottom: 20px;
}
.text-content {
    color: white;
    margin-bottom: 20px;
}
.welcome-heading {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0 0 10px;
}
.description-text {
    font-size: 0.9em;
    margin: 0;
}
@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}
.circular-image.animate-spin {
    animation: spin 3s linear infinite;
}
.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    transition: opacity 0.5s ease-out;
}
.loader-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.loader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: white;
}
.loader-fixed-image {
    width: 150px; 
    height: 150px;
    background-image: url('https://i.imgur.com/G37jXgT.png'); 
    background-size: cover;
    background-position: center;
    border-radius: 50%; 
    margin-bottom: 20px;
    border: 2px solid #fff;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}
.loader-greeting {
    font-size: 2.5em;
    font-weight: bold;
    margin-bottom: 20px;
}
.loader-spinner {
    border: 8px solid rgba(255, 255, 255, 0.3);
    border-top: 8px solid #fff;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin-loader 1.5s linear infinite;
    margin-bottom: 20px;
}
@keyframes spin-loader {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
.loading-text {
    font-size: 2em;
    font-weight: bold;
    letter-spacing: 5px;
    display: flex;
}
.loading-text span {
    display: inline-block;
    animation: snake-wave 2s infinite ease-in-out;
    transform-origin: bottom;
}
.loading-text span:nth-child(1) { animation-delay: 0.0s; }
.loading-text span:nth-child(2) { animation-delay: 0.1s; }
.loading-text span:nth-child(3) { animation-delay: 0.2s; }
.loading-text span:nth-child(4) { animation-delay: 0.3s; }
.loading-text span:nth-child(5) { animation-delay: 0.4s; }
.loading-text span:nth-child(6) { animation-delay: 0.5s; }
.loading-text span:nth-child(7) { animation-delay: 0.6s; }
@keyframes snake-wave {
    0%, 100% { transform: translateY(0); }
    25% { transform: translateY(-10px) rotate(5deg); }
    50% { transform: translateY(0) rotate(0deg); }
    75% { transform: translateY(10px) rotate(-5deg); }
}
.progress-container {
    width: 200px;
    height: 8px;
    background-color: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
    overflow: hidden;
    margin-top: 20px;
}
.progress-bar {
    width: 0;
    height: 100%;
    background-color: #fff;
    transition: width 0.2s ease-in-out;
}
.copyright-text {
    color: #555;
    font-size: 0.8em;
    margin-top: 10px;
    text-align: center;
}
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 10000;
    visibility: hidden;
    opacity: 0;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}
.modal-overlay.visible {
    visibility: visible;
    opacity: 1;
}
.modal-content {
    background: #fff;
    color: #333;
    padding: 20px;
    border-radius: 10px;
    width: 90%;
    max-width: 350px;
    position: relative;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}
.modal-overlay.visible .modal-content {
    transform: scale(1);
}
.close-btn {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 2em;
    font-weight: bold;
    color: #aaa;
    cursor: pointer;
    line-height: 1;
    transition: color 0.3s ease;
}
.close-btn:hover {
    color: #000;
}
.modal-header h2 {
    margin: 0;
    padding-right: 30px; 
}
.modal-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin: 15px 0;
    border-radius: 8px;
}
