/* Style pour le modal */
.modal {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

.modal-aboutus {
    display: none;
    position: fixed;
    z-index: 1001;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 30px;
}

.modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    border: 1px solid #888;
    width: 300px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

.modal-content-aboutus {
    background-color: #fefefe;
    margin: auto;
    padding: 10px;
    border: 1px solid #888;
    width: 90%;
    max-width: 600px;
    max-height: 95%;
    /* Set a maximum height relative to the viewport */
    overflow-y: auto;
    /* Allows scrolling if content exceeds the height */
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}

@media (max-width: 768px) {
    .modal-content-aboutus {
        width: 80%;
        padding: 15px;
        max-height: 95%;
        /* Reduce maximum height for smaller screens */
    }

    .modal-content-aboutus h2 {
        font-size: 22px;
        /* Larger heading font size for better readability */
    }

    .modal-content-aboutus h4 {
        font-size: 20px;
        /* Larger heading font size for better readability */
    }

    .modal-content-aboutus p {
        font-size: 15px;
        /* Adjust font size */
    }
}

@media (max-width: 480px) {
    .modal-content-aboutus {
        width: 95%;
        padding: 20px;
        max-height: 95%;
        /* Further reduce maximum height */
    }

    .modal-content-aboutus h2 {
        font-size: 20px;
        /* Larger heading font size for better readability */
    }

    .modal-content-aboutus h4 {
        font-size: 16px;
        /* Adjusted subheading font size */
    }

    .modal-content-aboutus p {
        font-size: 14px;
        /* Smaller font size for the text */
    }
}


.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Centrer le contenu de la modal */
.modal-content-aboutus h2,
.modal-content-aboutus label,
.modal-content-aboutus h4,
.modal-content h2,
.modal-content label,
.modal-content input,
.modal-content input[type="submit"] {
    text-align: center;
    display: block;
    margin: 10px auto;
}

.modal-content-aboutus p {
    text-align: center;
    display: block;
    margin: 5px auto;
}

.center {
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 50%;
}

.text-content {
    text-align: center;
    display: block;
    margin: 10px auto;
}

/* Style pour le toggle switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 60px;
    height: 34px;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 26px;
    width: 26px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}

input:checked+.slider {
    background-color: #2196F3;
}

input:checked+.slider:before {
    transform: translateX(26px);
}