/* Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Important pour gérer les dimensions */
}

/* Body Styling */
body {
    font-family: 'Arial', sans-serif;
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100vh; /* Utilise 100% de la hauteur de l'écran */
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: white;
    overflow: hidden; /* Empêche le scroll */
    background-attachment: fixed; /* Fond fixe */
    background-size: cover; /* Empêche la répétition du fond */
}

/* Header Styling */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 5%; /* Réduit la hauteur de l'en-tête */
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    z-index: 10; /* Pour s'assurer que l'en-tête reste en haut */
}

/* Footer Styling */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 5%; /* Réduit la hauteur du footer */
    background-color: rgba(0, 0, 0, 0.7);
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    letter-spacing: 1px;
    z-index: 10; /* Pour s'assurer que le footer reste en bas */
}

/* Main Content Styling */
.content {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    padding-top: 5%; /* Marge pour ne pas chevaucher l'en-tête */
    padding-bottom: 5%; /* Marge pour ne pas chevaucher le footer */
    width: 100%; /* Empêche le scroll horizontal */
    height: 90%; /* Hauteur restante après l'en-tête et le footer */
    box-sizing: border-box;
}

/* Central Block Styling */
.block {
    width: 85%; /* Largeur du bloc ajustée */
    height: 85%; /* Hauteur du bloc réduite à 80% */
    background-color: rgba(0, 0, 0, 0.8);
    border-radius: 10px;
    border: 2px solid #fff; /* Ajoute un contour blanc autour du bloc */
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    box-sizing: border-box;
    overflow: hidden; /* Empêche le scroll interne */
    word-wrap: break-word; /* Empêche les mots de déborder */
}

#stl-container {
    width: 100%;
    height: 500px;
    background-color: #1c1c1c;
    border: 1px solid #fff;
    border-radius: 10px;
    margin-top: 20px;
}


/* Responsive Styles */
@media (max-width: 600px) {
    header h1 {
        font-size: 1.2rem;
    }

    footer p {
        font-size: 0.8rem;
    }

    .block {
        width: 90%; /* Réduit la largeur sur petits écrans */
        height: 80%; /* Ajuste la hauteur du bloc pour les petits écrans */
    }
}
