body {
    background-color: #272822;
    color: #f8f8f2;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
    padding: 0;
}

a {
    color: #f8f8f2;
}



.terminal {
    background-color: #1e1e1e;
    border-radius: 5px;
    width: 80%;
    max-width: 800px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    margin: 15% auto;
}

.terminal-header {
    background-color: #333;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.buttons {
    display: flex;
    gap: 5px;
}
.button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #ff5f56;
}

.button.minimize {
    background-color: #ffbd2e;
}

.button.maximize {
    background-color: #27c93f;
}

.title {
    color: #f8f8f2;
    font-size: 14px;
}

.terminal-body {
    padding: 10px;
    overflow: auto;
    height: 200px;
}

.output {
    white-space: pre-wrap;
}

.input-line {
    display: flex;
    align-items: center;
}

.prompt {
    margin-right: 10px;
}

#terminal-input {
    background: none;
    border: none;
    color: #f8f8f2;
    outline: none;
    width: 100%;
    font-size: 16px;
}






/* Masquer les sections */
section {
    display: none;
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;  /* Ajuster pour mobiles avec une largeur plus petite */
    max-width: 600px;
    max-height: 80vh; /* Limiter la hauteur pour éviter de dépasser l'écran */
    overflow-y: auto; /* Activer le défilement vertical */
    z-index: 1001;
    background-color: #1e1e1e;
    border-radius: 8px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.6);
    padding: 20px;
}

/* Style pour le fond semi-transparent */
.overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    opacity: 0;
}

section h2 {
    margin-top: 0;
}

/* Media Queries for Responsiveness */

@media (max-width: 1200px) {
    .terminal, section {
        width: 90%;
    }
}

@media (max-width: 768px) {
    .terminal, section {
        width: 90%;
    }
}

@media (max-width: 480px) {
    .terminal  {
        width: 80%;
        margin: 55% auto;  /* Adjust margin for smaller screens */
    }

    section {
        margin: 55% auto;
        width: 90vw;      /* Prendre presque toute la largeur de l'écran */
        height: 100vh;     /* Limiter la hauteur */
        top: 25%;
        left: 50%;
        transform: translate(-50%, -50%); /* Centrer sur l'écran */
    }

    .terminal-body {
        height: 150px;
    }

    .title {
        font-size: 10px;
    }

    #terminal-input {
        font-size: 12px;
    }
}

@media (max-width: 400px) {
    .terminal, section {
        font-size: 10px;
    }
    
}


.close-button {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff5f56;
    border: none;
    color: #f8f8f2;
    font-size: 14px;
    padding: 5px 10px;
    border-radius: 5px;
    cursor: pointer;
}
.close-button:hover {
    background-color: #e0463d;
}
