/* Basic styling for body and container */
body, html {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Inter', Arial, sans-serif;
  background-color: rgb(170, 170, 170);
  overflow-x: hidden;
}

p{
  margin: 0;
  padding-bottom: 0px;
  font-size: 13px;
  line-height: 18px;
  color: rgb(25, 25, 25);
}

a{
  font-size: 13px;
  text-decoration: none;
  color: rgb(25, 25, 25);
}

.container {
  display: flex;
  height: 100vh;
  overflow-x: hidden; /* Prevent horizontal scrolling */
}

/* Styling for the navbar */
.navbar {
  width: 230px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  padding-top: 20px;
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  font-weight: 400;
}

.navbar ul{
  margin-top: 100px;
}

/* Styling for the menu and list items */
.menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
  width: 100%;
  background-color: rgb(170, 170, 170);
}

.menu li {
  display: block;
  cursor: pointer;
}

.menu li a {
  display: block;
  padding: 0px;
  color: rgb(25, 25, 25);
  text-decoration: none;
}

/* Styling for the menu and list items */
.menu, #dropdown-menu {
  list-style-type: none;
  padding: 0;
  margin: 0;
}

/* Style for regular menu items */
.menu li, #dropdown-menu li {
  display: block;
  background-color: rgb(170, 170, 170);
  cursor: pointer;
  padding: 0px 0px 0px 40px;
}

/* Link styling for all menu items */
.menu li a, #dropdown-menu li a {
  display: block;
  color: rgb(25, 25, 25);
  text-decoration: none;
  padding: 2px 0px 2px 0px;
}

#dropdown-menu li a:hover,
#dropdown-menu li a.selected {
    background-color: rgb(40, 60, 80); /* Darker background color */
    color: #fff; /* White text color */
    padding-left: 30px; /* Padding for both hover and selected */
}




#menu1 {
  font-weight: 600;
  margin-bottom: 30px;
  font-size: 12px !important;
}
#menu1 a{
  color: rgb(25, 25, 25);
}



/* Initially, set the hamburger button */
.menu-toggle {
  display: block;
  font-size: 15px;
  background: none;
  border: none;
  cursor: pointer;
  width: 100%;          /* Full width of the container */
  color: rgb(25, 25, 25); /* Icon color */
  transition: transform 0.5s ease;  /* Smooth transition for any transform */
  padding: 0px;
  margin-top: 0px;
  outline: none;
  box-shadow: none;
  border-bottom: none;
}

#sub-menu{
  display: none;
}


/* Hide dropdown menu by default */
#dropdown-menu {
  display: none;
  list-style-type: none;
  padding: 0;
  margin: 0;
}


.menu-actions {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 10px;  /* Add space between the hamburger and buttons */
  padding: 10px 20px;
  background-color: rgb(170, 170, 170);
}

/* Style for the "Contact" and "Impressum" buttons */
.menu-action {
  font-size: 14px;
  color: rgb(25, 25, 25);
  text-decoration: none;
  padding: 2px 10px;
  background-color: rgb(170, 170, 170);
  border: none;
  cursor: pointer;
}

/* Add hover effect for the buttons */
.menu-action:hover {
  background-color: rgb(40, 60, 80);
  color: #fff;}


  .sidebar {
    background-color: rgb(170, 170, 170);
    width: 230px;
    flex-shrink: 0;
    position: fixed;
    right: 0;
    top: 0;
    height: 100vh;
    overflow-y: auto;
    font-size: 14px;
  }
  .sidebar-grid{
    display: grid;
    padding-left: 0px;
    padding-right: 20px;
  }
  
  .title{
    font-weight: 600;
    font-size: 14px;
  }

  .sidebar-blue{
    height: 10px;
  }
  
  .sidebar-top{
    margin-top: 120px;
    margin-bottom: 40px;
    display: grid;
  }
  .film-title{
    font-size: 14px;
    font-weight: 600;
  }
  .project-info{
    font-style: italic;
    font-size: 12px;
  }
  
.only-web{
  display: none;
  height: 0;  
}
  
  .web-image{
    width: 100%;
  }
  
  
  .sidebar-middle{
    margin-bottom: 40px;
    float:right
  }
  .sidebar-bottom{
    display: grid;
    margin-bottom: 150px;
  }

  .sidebar-buttons{
    margin-bottom: 20px;
  }
  
.content {
    background-color: rgb(170, 170, 170);
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-left: 255px; /* Leave space for the navbar */
    margin-right: 255px; /* Leave space for the sidebar */
    overflow-y: auto;
  }
  
  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
    margin-bottom: 16px;
  }
  
  .image-gallery img {
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-top: 18px;
  }
  
  .video{
    width: 100%;
    height: auto;
    max-width: 100%;
    margin-top: 18px;
  }
    
  
  



/* Media query for large screens */
@media (min-width: 931px), (max-width: 930px) and (orientation: landscape) {



  /* Hide the hamburger button on large screens */
  .menu-toggle {
      display: none;
  }

  /* Display all menu items normally on large screens */
  .menu li {
      display: block;
  }

  /* Always show the dropdown menu on large screens */
  #dropdown-menu {
      display: block;
  }

  .menu-action {
    display: none;
  }
}

/* Media query for smaller screens (max-width: 930px) */
@media only screen and (max-width: 930px) and (orientation: portrait) {

  :root {
    --font-size: 13px;}
  
  .container {
    flex-direction: column; 
    height: auto;
    overflow-x: hidden; /* Prevent horizontal scrolling */
  }
  
  .navbar {
    width: calc(100%);
    position: fixed;
    height: auto;
    order: -1;
    padding-top: 0px;
    margin-top: 0px;
    background-color: rgb(170, 170, 170);
    z-index: 10;
  }
  .navbar ul {
  margin-top: 0px;
  background-color: rgb(170, 170, 170);
  }
  .top-background{
    margin: 0px 20px 0px 20px;
    padding: 0px;
    height: 20px;
    background-color: rgb(170, 170, 170);
  }

  .menu li, #dropdown-menu li {
    display: block;
    cursor: pointer;
    padding: 2px 2px 2px 5px; 
  }

  #menu1{
    margin: 0px 20px 0px 20px;
    padding-left: 5px;
      font-weight: 600;
      margin-bottom: 30px;
      font-size: 12px !important;
  }



  .menu-actions {
    display: flex;  /* Ensure buttons and menu toggle are visible */
    background-color: rgb(170, 170, 170);
  }

  .menu-action{
    padding: 2px 2px 2px 4px;
    margin: 0px;
  }

  .sidebar {
    width: calc(100% - 40px);
      margin-top: 28px;
      height: auto;
      position: static;
      order: 0;
      margin-left: 20px;
      margin-right: 20px;
      padding: 0px;
  }
  
  .sidebar-grid{
    display: grid;
    padding-right: 0px;

  }

  .sidebar-buttons{
    display: none;
  }

  .sidebar-bottom{
    margin-bottom: 0px;
  }

  .sidebar-top{
    padding: 0;
    margin-bottom: 15px;
  }
  .sidebar-middle{
    margin-bottom: 15px;
  }

  .only-web{
    display: block;
    height: auto;
    margin-bottom: 10px;
  }

  .content {
    width: calc(100% - 40px);
    margin-left: 20px;
    margin-right: 20px;
    order: 1;
  }


  .credits{
    width: 300px;
    margin: 0px;

  }

  .image-gallery {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 100%;
    margin-bottom: 20px;
  }

  .image-gallery img {
      max-width: 100%;
  }

  .image-gallery img:first-of-type {
    display: none;
  }

  /* HAMBURGERMENU */
  .menu li:nth-child(n+2) {
      display: none;
  }

  /* Adjust the positioning of the hamburger button */
  .menu-toggle {
    display: block;
    width: 100%;
    text-align: left;
    padding: 2px 2px 2px 5px;
    margin: 10px 20px 0px 0px;
    margin: 0px;
  }

  /* Show the dropdown menu when the .show class is toggled */
  #dropdown-menu.show {
      display: block;
      max-height: 500px; /* Set a max-height that's enough to fit the dropdown content */
      opacity: 1;

      
  }

  /* Ensure the dropdown menu appears below the hamburger button */
  #dropdown-menu {
    margin: 0px 20px 0px 20px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 1s ease,
  }

  /* When the dropdown is open, push content and sidebar down */
  body.dropdown-open .content, body.dropdown-open .sidebar {
    margin-top: 300px; /* Adjust this value based on the height of the dropdown */
  }

}


@media only screen and (max-device-width: 930px) and (orientation: landscape) {

  .menu-actions {
      padding-bottom: 5px;
      padding-top: 5px;
  }





  #dropdown-menu li a {

      padding-top: 0px;
      padding-bottom: 0px;
  }



}

@media only screen and (max-width: 930px) and (orientation: landscape) {

  .navbar ul{
    margin-top: 0px;
  }

  .sidebar-top{
    margin-top: 20px;
  }

  .navbar {
  width: 150px;
  }

  .sidebar {
  width: 150px;
  }

  .content {
    margin-left: 160px; /* Leave space for the navbar */
    margin-right: 160px; /* Leave space for the sidebar */
  }

  .menu li, #dropdown-menu li {
    padding: 0px 0px 0px 10px;
  }

  .image-gallery img {
    margin-top: 5px;
  }

  .image-gallery{
  gap: 10px;
  }

  .sidebar-bottom{
    display: grid;
    margin-bottom: 20px;
  }


}
