/* Base styles */

    body {
        font-family: Arial, sans-serif;
        line-height: 1.6;
        color: #333;
        margin: 0;
        padding: 0;
        background: #f5f7fa;
        text-align: justify;
    }


@media (max-width: 769px) {
    body { 
        font-size: 15px;
    }
}

/* Navigation */

nav {
    background-color:#f5f7fa;
    padding: 15px 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    text-align: center; /* Center content horizontally */
}

.menu {
    display: inline-block; /* Make the menu inline-block to center it */
    margin: 0;
    padding: 0;
    list-style-type: none;
}



.menu li a {
    text-decoration: none;
    color: #555;
    font-weight: bold;
    font-size: 1em;
    transition: color 0.3s ease;
}

.menu li a:hover {
    color: #4EB6D1;
}


.menu li {
    margin: 0 10px;
    display: inline-block;
    position: relative;
}

.menu li::after {
    content: "|"; /* Adds a vertical bar */
    color: #4EB6D1; /* Color of the bar */
    position: absolute;
    right: -15px; /* Position the bar 15px to the right of the menu item */
}

.menu li:last-child::after {
    content: ""; /* Removes the bar after the last item */
}




/* Adjustments for small screens */
@media (max-width: 768px) {
    .menu {
        text-align: center;
        width: 100%;
        padding: 0px;
    }

}


/* Hero Section */
.hero {
    background: url('hero-bg.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    text-align: center;
    height: 80vh;
    padding: 100px 20px 50px;
    margin-bottom: 40px;
    position: center top;
}


.hero h1 {
    font-size: 2.5em;
    margin-top: 50px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    
}

.hero p {
    font-size: 1.2em;
    margin-top: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

/* Call to Action Button */
.cta-button {
    display: inline-block;
    background-color: #4EB6D1;
    color: white;
    padding: 15px 30px;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s ease;
    margin: 0 auto;
    font-weight: bold;
    font-size: 16px; /* Ensure consistent font size */
    text-align: center; /* Align text to center */
    cursor: pointer;
}

/* Button Hover State */
.cta-button:hover {
    background-color: #F05A9B;
}

/* Specific styling for button elements */
button.cta-button {
    border: none; /* Remove default border */
    font-size: inherit; /* Inherit the font size */
    padding: 15px 30px; /* Apply consistent padding */
    background: #4EB6D1; /* Match the background color */
    color: white;
    cursor: pointer; /* Ensure button has pointer cursor */
}

/* Centers the button container */
.cta-button-container {
    text-align: center;
    margin-top: 20px;
}

/* Main Content */
main {
    max-width: 1400px;
    margin: 0 auto;
    padding: 20px 20px; /* Reduced top padding from 40px to 20px */
}
main h1 {
    font-size: 2em;
    margin-top: 10px;  /* Added margin-top for spacing within the section */
    margin-bottom: 15px;
    color:#F05A9B;
    text-align: center;
}

section {
    margin-bottom: 40px;
    padding: 40px; /* Reduced padding to tighten the space around content */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px #4EB6D1;
}
@media (max-width: 769px) {
    section {
        padding: 10px;
    }}

section h2 {
    font-size: 1.8em;
    margin-top: 10px;  /* Added margin-top for spacing within the section */
    margin-bottom: 15px;
    color:#F05A9B;
    text-align: left;
}

section h3 {
    font-size: 1.5em;
    margin-top: 10px; /* Added margin-top for spacing within the section */
    margin-bottom: 15px;
    color: #F05A9B;
    text-align: left;
}


section p, section ul {
    font-size: 1.1em;
    line-height: 1.8;
    color: #555;
}

section ul {
    list-style-type: disc;
    padding-left: 40px;

}
@media (max-width: 769px) {
    section ul {
        padding: 10px;
    }}

/* Image Group */
.image-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.image-group img {
    width: 100%;
    height: 100%;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.image-group img:hover, .image-group img:active {
    transform: scale(1.2);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

/* Footer */
footer {
    text-align: center;
    padding: 20px;
    background-color: #4EB6D1;
    color: #555;
    border-top: 1px solid #F05A9B;
}

footer p {
    margin: 0;
}
.contact-container {
    display: flex;
    flex-direction: column; /* Stack elements vertically */
    align-items: center; /* Center the content */
    text-align: center; /* Center the text */
}

.contact-img {
    width: 100%; /* Make the image take up 100% of the container's width on small screens */
    height: auto;
    margin-bottom: 20px;
}

@media (min-width: 769px) {
    .contact-container {
        flex-direction: row; /* Original row layout for larger screens */
        align-items: center;
        text-align: justify;
    }

    .contact-img {
        width: auto; /* Auto width for larger screens */
        max-width: 400px; /* Set a maximum width */
        margin-right: 20px;
        margin-bottom: 0;
    }
}

.profile-img {
    width: 400px;
    height: 400px;
    border-radius: 50%;
    margin: 20px auto;
    display: block;
  }
  @media (max-width: 769px) {
    .profile-img {
      width: 250px;
    height: 250px;
    }}

    .book-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 20px;
        margin-top: 20px;
      }
      .book {
        background: white;
        padding: 15px;
        border-radius: 5px;
        box-shadow: 0 2px 5px rgba(0,0,0,0.1);
      }
      .book img {
        width: 100%;
        height: auto;
        margin-bottom: 10px;
      }


    
    .news-box {
        position: absolute;
        bottom: 40px;
        left: 50%;
        transform: translateX(-50%);
        background: linear-gradient(to right, rgba(0, 102, 204, 0.9), rgba(0, 204, 255, 0.9));
        border-radius: 12px;
        padding: 20px 40px;
        box-shadow: 0 8px 15px rgba(0, 0, 0, 0.3);
        max-width: 90%;
        text-align: center;
        z-index: 10;
    }
    
    .news-content h2 {
        font-size: 1.8em;
        margin: 0;
        color: #fff;
        font-weight: 700;
    }
    
    .news-content p {
        font-size: 1.2em;
        margin: 10px 0;
        color: #fff;
    }
    
    .news-cta {
        display: inline-block;
        background-color: #ffffff;
        color: #0073e6;
        padding: 10px 20px;
        border-radius: 6px;
        font-weight: 600;
        text-decoration: none;
        margin-top: 10px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    .news-cta:hover {
        background-color: #0073e6;
        color: #fff;
    }
    @media (max-width: 600px) {
     
    
        .news-box {
            padding: 5px;
            width: 90%;
            max-width: 350px;
            bottom: -80px;
        }
    
        .news-content h2 {
            font-size: 1.3em;
        }
    
        .news-content p {
            font-size: 1em;
        }
    
        .news-cta {
            padding: 8px 15px;
        }
    }

    .social-media {
        margin-top: 20px;
        text-align: center;
    }
    
    .social-media a {
        margin-right: 10px;
    }
    
    .social-logo {
        width: 30px;
        height: 30px;
    }
    .translate-button-container {
        position: absolute;
        top: 60px;
        right: 0px;
        z-index: 1; /* Assure que le bouton soit au-dessus des autres éléments */
    }

    .translate-button {
        background-color: #ffffff; /* Green */
        border: none;
        color: #555;
        padding: 10px 10px;
        text-align: center;
        text-decoration: none;
        display: inline-block;
        font-size: 16px;
        cursor: pointer;
        border-radius: 5px;
    }

    .translate-button img {
        vertical-align: middle;
      
    }




    #room-selection {
        margin-bottom: 40px;
        padding: 0; /* Supprimez le padding si vous ne voulez pas d'espacement interne */
        background-color: transparent; /* Rendre l'arrière-plan transparent si nécessaire */
        border-radius: 0; /* Supprimez les coins arrondis */
        box-shadow: none; /* S'assurer que le box-shadow est bien retiré */
        border: none; /* Supprimez toutes les bordures */
        text-align: center;
    }
@media (max-width: 769px) {
    #room-selection {
           width: 100%;
    }}
    
    .room-selection-container {
        display: flex;
        flex-direction: column;
        align-items: center;
        margin-bottom: 20px;
    }
    
    #room-select {
        width: 50%; /* Vous pouvez ajuster la largeur selon vos préférences */
        padding: 10px;
        font-size: 16px;
        border-radius: 5px;
        border: 1px solid #ccc;
    }
    
    @media (max-width: 769px) {
        #room-select {
            width: 80%; /* Ajustez la largeur pour les petits écrans */
        }
    }
    
    .slider {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Display two images per row */
        gap: 20px; /* Space between images */
        margin-top: 10px; /* Add space between label and images */
    }
    @media (max-width: 769px) {
        .slider {
            grid-template-columns: repeat(1, 1fr);
        }}
    
    .slider img {
        width: 100%;
        height: auto;
        border-radius: 10px;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
        transition: transform 0.3s ease, box-shadow 0.3s ease;
        cursor: pointer;
    }

    .slider img:hover, .slider img:active {
        transform: scale(1.05); /* Slightly enlarge the image on hover */
        box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
    }
    
    button {
        background-color: #007BFF;
        color: #fff;
        padding: 10px 20px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
    }
    
    button:hover {
        background-color: #0056b3;
    }
    


  
  /* Media styles Blog posts */
/* Basic styling for the container */
#post-form {
    background-color: #ffffff;
    padding: 20px;
    margin: 20px auto;
    max-width: 800px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  }
  
  /* Title for the form */
  #post-form h2 {
    color: #333;
    font-size: 1.8em;
    margin-bottom: 20px;
    text-align: center;
  }
  
  /* Form group styling */
  .form-group {
    margin-bottom: 20px;
  }
  
  /* Labels */
  label {
    font-size: 1em;
    color: #666;
    display: block;
    margin-bottom: 8px;
  }
  
  /* Text inputs and textareas */
  input[type="text"],
  input[type="url"],
  textarea {
    width: 100%;
    padding: 12px;
    font-size: 1em;
    color: #333;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
    margin-bottom: 10px;
  }
  
  textarea {
    resize: vertical;
  }
  
  /* Button styling for file input */
  #media-btn {
    background-color: #4EB6D1;
    color: white;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    display: inline-block;
    margin-bottom: 10px;
  }
  
  #media-btn:hover {
    background-color: #3e98a7;
  }
  
  input[type="file"] {
    display: none;
  }
  
  /* Preview container */
  #media-preview,
  #link-preview-container {
    margin-top: 10px;
  }
  
  .thumbnail,
  .media {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin-top: 10px;
  }
  
   
  /* Link preview styles */
  .link-preview {
    display: flex;
    align-items: center;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 5px;
    margin-top: 10px;
  }
  
  .link-preview img.thumbnail {
    width: 120px;
    height: 120px;
    object-fit: cover;
    margin-right: 15px;
  }
  
  .link-preview-content {
    flex-grow: 1;
  }
  
  .link-preview-content h3 {
    margin: 0;
    font-size: 1.2em;
  }
  
  .link-preview-content a {
    color: #4EB6D1;
    text-decoration: none;
  }
  
  .link-preview-content a:hover {
    color: #F05A9B;
  }
  
  .link-preview-content p {
    color: #666;
    font-size: 0.9em;
    margin-top: 5px;
  }
  
  /* Responsive styles for mobile devices */
  @media (max-width: 768px) {
    #post-form {
      padding: 15px;
      margin: 10px;
    }
  
    #post-form h2 {
      font-size: 1.5em;
    }
  
    input[type="text"],
    input[type="url"],
    textarea {
      font-size: 1em;
    }
  
    #media-btn,
    .cta-button {
      font-size: 1em;
    }
  
    .link-preview {
      flex-direction: column;
      text-align: center;
    }
  
    .link-preview img.thumbnail {
      margin-bottom: 10px;
      width: 100%;
      height: auto;
    }
  
    .link-preview-content h3 {
      font-size: 1em;
    }
  
    .link-preview-content p {
      font-size: 0.9em;
    }
  }

  .delete-btn {
    background-color: #f05a9b;
    color: white;
    border: none;
    padding: 10px 15px;
    font-size: 1em;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    margin-top: 10px;
  }
  
  .delete-btn:hover {
    background-color: #e04883;
  }
  
    /* General styles for the app section */
    #recommended-apps {
        padding: 20px;
      }
    
      #recommended-apps .app-grid {
        display: flex;
        gap: 20px;
        justify-content: center;
        align-items: flex-start;
        flex-wrap: wrap; /* Allows apps to wrap to the next line if needed */
      }
    
      #recommended-apps .app {
        text-align: center;
        max-width: 400px;
        flex: 1; /* Makes apps take up equal width on larger screens */
        box-sizing: border-box;
      }
    
      #recommended-apps img {
        max-width: 100%;
        height: auto; /* Ensures images scale properly */
      }
    
      #recommended-apps .download-links {
        display: flex;
        justify-content: center;
        gap: 10px;
        margin-top: 10px;
        flex-wrap: wrap; /* Ensures download buttons wrap properly */
      }
    
      /* Responsive adjustments */
      @media (max-width: 768px) {
        #recommended-apps .app-grid {
          flex-direction: column; /* Stacks apps vertically */
          align-items: center;
        }
    
        #recommended-apps .app {
          max-width: 100%; /* Apps take full width on smaller screens */
        }
      }