* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    text-align: center;
    padding-top: 80px;
    background-color: #e3e6ff;
}

section {
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    scroll-margin-top: 50px;
}

/* Header for the navigation bar */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background-color: #4a5462;
    padding: 10px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.5);
    z-index: 1000;
}

/* Navigation bar and it's contents */
.navbar-top {
    display: flex;
    align-items: center;
    justify-content:center;
}

.flag {
    width: 40px;
    height: auto;
    margin-left: 40px;
    position: relative;
    right:10px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;
}

.flag:hover {
    opacity: 0.5;
}

.logo img {
    width: 40px;
    height: 40px;
    position:relative;
    right: 20px;
    cursor: pointer;
    transition: opacity 0.2s ease-in-out;

}

.logo img:hover {
    opacity: 0.5;
}

.menu-toggle {
    background: none;
    border: none;
    color: white;
    font-size: 30px;
    cursor: pointer;
    position: relative;
    left: 30px;
}

.nav-links {
    list-style: none;
    display: flex; /* Change from 'none' to 'flex' when showing */
    flex-direction: column;
    background-color: #4a5462;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    text-align: center;
    max-height: 0; /* Start with no height */
    overflow: hidden; /* Hide content that overflows */
    transition: max-height 0.2s ease-in-out; /* Smooth transition */
}

.nav-links.show {
    max-height: 500px; /* Set a value large enough to show all items, adjust if needed */
}

.nav-links li {
    margin: 5px 0;
}

.nav-links a {
    color: white;
    text-decoration: none;
    font-size: 18px;
    position: relative;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;    
    left: 0;      
    width: 0;     
    height: 2px;
    background-color: #e3e6ff;
    transition: width 0.3s ease-in-out;
}

.nav-links a:hover::after {
    width: 100%;
}

.about-section {
    width: 100%;
    height: 100%;
}
.newspaper-container {
    position: relative;
    width: 512px; /* The width of the image */
    height: 700px; /* The height of the image */
    margin: 20px auto;
  }
  
  .newspaper {
    width: 100%;
    height: 100%;
  }
  
  .newspaper-text {
    position: absolute;
    top: 20%; /* Adjust this value to place text vertically on the image */
    left: 10%; /* Adjust this value to place text horizontally on the image */
    width: 80%; /* Adjust text box width as per your need */
    color: #333; /* Or any other contrasting color */
    text-align: left; /* Centers text horizontally */
    font-family: "Arial", sans-serif;
  }
  
  .newspaper-text h2 {
    font-size: 40px; /* Adjust font size */
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: #333;
  }
  
  .newspaper-text p {
    font-size: 24px; /* Adjust font size */
    line-height: 1.5; /* Adjust line height for readability */
  }

footer {
    background-color: #4a5462;
    color: white;
    text-align: center;
    padding: 15px;
    margin-top: 20px;
}

.logo-container {
    position: relative;
    display: inline-block;
    width: 420px;
    height: auto;
}

.border {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: auto;
    z-index: 2;
}

.title {
    position: relative;
    width: 100%;
    height: auto;
    z-index: 1;
}

.custom-download-button {
    margin-top: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 320px;
    height: 140px;
    background-image: url('Button.png');
    background-size: cover;
    background-repeat: no-repeat;
    text-decoration: none;
    transition: transform 0.2s ease;
    font-family: sans-serif;
    font-size: 32px;
    color: black;
    padding-left: 10px;
    padding-bottom: 5px;
    text-decoration: none;
  }
  
  
  .custom-download-button:hover {
    transform: scale(1.05);
  }

/* Image carousels */
.carousel {
    position: relative;
    width: 25%;
    height: auto;
    margin: auto;
    overflow: hidden;
    text-align: center;
}

.partners {
    display: inline-block;
}

.gallery {
    display: inline-block;
}
.carousel-top {
    margin-bottom: 20px;
    margin-top: 50px;
    font-size: 24px;
    font-weight: bold;
    color: #333;
}

.carousel-images {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.carousel-item {
    width: 100%;
    height: auto;
    flex-shrink: 0;
}

.carousel button {
    position: absolute;
    top: 50%;
    background-color: transparent;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.partners .carousel button {
    top: 30%;
}

button:hover {
    color:rgba(0, 0, 0, 0.2);
}

.prev {
    left: 5px;
}

.next {
    right: 5px;
}

/* Embeded Youtube trailer */
.video-container {
    display: inline-block;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
    width: 500px;
    height: 300px;
    color: #333;
  }
  .video-container h2 {
    margin-bottom: 20px;
  }


.video-container iframe {
    width: 90%;
    height: 90%;
}

/* Team section  */
.team-container {
    text-align: center;
    margin-top: 50px;
    margin-left: 5px;
    margin-right: 5px
  }
  .team-container h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
  }
  .team-members {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: center;
  }
  
  .team-member {
    text-align: center;
    max-width: 200px;
  }
  .team-member img {
    width: 200px;
    height: 200px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
  }
  .team-member h3 {
    margin-top: 10px;
    font-size: 20px;
  }
  .team-member p {
    font-size: 16px;
    color: #666;
  }

  .privacy-policy {
    
    color: white;
  }

  
/* For most phone screens */
@media screen and (max-width: 768px) {
    .carousel {
        width: 75%;
    }

    .newspaper-container {
        width: 75%;
        height: 75%;
      }

      .newspaper-text {
        position: absolute;
        top: 15%;
        left: 10%;
        width: 80%;
        color: #333;
        text-align: left;
        font-family: "Arial", sans-serif;
      }

      .newspaper-text h2 {
        font-size: 20px;
        margin-bottom: 10px;
        color: #333;
      }
      
      .newspaper-text p {
        font-size: 18px;
        line-height: 1.2;
      }

      .logo-container {
        width: 75%;
        height: auto;
    }

    .custom-download-button {
        width: 160px;
        height: 70px;
        font-size: 16px;
        
      }
}

/* For small screens */
@media screen and (max-width: 400px){
    .newspaper-text p{
        font-size: 16px;
      }
}