@import url("https://fonts.googleapis.com/css?family=Open+Sans");

html {
  font-family: "Open Sans";
}

.navbar {
  display: flex;
  justify-content: center;
  height: min(7em, 150px);
  width: 100dvw;
  z-index: 5000;
  margin-bottom: 0.2em;
  background-color: rgba(25, 25, 25, 0.85);
}

.contactAndNavbar {
  display: flex;
  flex-direction: column;
  margin-bottom: 2.5em;
}

.logo {
  margin-right: 2em;
  margin-top: -1em;
  margin-left: 2em;
  margin-bottom: 0.85em;
  width: auto;
  height: 50%;
  cursor: pointer;
  padding: 3em;
}

.nav-container {
  text-align: center;
  z-index: 3;
  margin: 0;
}
ul,
li {
  list-style: none;
  -webkit-padding-start: 0;
}
a {
  text-decoration: none;
  color: black;
}
.nav-items {
  display: flex;
  justify-content: center;
  align-content: center;
  align-items: center;
  margin: 0em;
  color: white;
}
.nav-item {
  padding: 0em 2.7em 0em 2.7em;
  display: flex;
  align-items: center;
  z-index: 3;
  font-size: min(1.7vw, 1.7em);
  height: 2em;
  cursor: pointer;
  transition: 0.5s;
}
.nav-item:hover {
  color: rgba(255, 0, 0, 0.815);
}
.nav-item-dropdown {
  position: relative;
}
.nav-item-dropdown:hover > .dropdown-menu {
  display: block;
  opacity: 1;
  z-index: 4;
}
.nav-item-dropdown:hover > .dropdown-menu-dots {
  display: block;
  opacity: 1;
  z-index: 4;
}

.dropdown-menu {
  font-size: 0.8em;
  background-color: transparent;
  display: inline-block;
  text-align: right;
  position: absolute;
  top: 2.45em;
  right: 0px;
  display: none;
  opacity: 0;
  transition: opacity 0.5s ease;
  width: 10.3em;
}
.dropdown-trigger {
  color: white;
}
.dropdown-trigger-dots {
  color: white;
  margin-top: 0.2em;
}
.dropdown-trigger:hover {
  color: rgba(255, 0, 0, 0.815);
}
.dropdown-menu-item:nth-child(1) {
  border-radius: 10px 10px 0 0;
}
.dropdown-menu-item:last-child {
  border-radius: 0px 0px 10px 10px;
}
.dropdown-menu-item {
  cursor: pointer;
  padding: 1em;
  text-align: center;
  transition: 0.5s;
  color: rgb(231, 231, 231);
  background-color: #212121;
  opacity: 0.97;
  z-index: 5001;
}
.dropdown-menu-item:hover {
  background-color: #d7d7d7;
  color: rgb(29, 29, 29);
}

/* Submenu styles */
.dropdown-menu-item-with-submenu {
  position: relative;
}

.dropdown-submenu-trigger {
  color: white;
  cursor: pointer;
  transition: 0.5s;
}

.dropdown-submenu-trigger:hover {
  color: rgba(255, 0, 0, 0.815);
}

.dropdown-submenu {
  position: absolute;
  left: 100%;
  top: 0;
  background-color: #212121;
  border-radius: 10px;
  display: none;
  opacity: 0;
  transition: opacity 0.3s ease;
  width: 14em;
  z-index: 5002;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  margin-left: 5px;
}

.dropdown-menu-item-with-submenu:hover .dropdown-submenu {
  display: block;
  opacity: 1;
}

.dropdown-submenu-item {
  cursor: pointer;
  padding: 0.8em 1em;
  text-align: center !important;
  text-align: -moz-center !important;
  transition: 0.3s;
  color: rgb(231, 231, 231);
  background-color: #212121;
  z-index: 5002;
  font-size: 0.85em;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  white-space: nowrap;
}

.dropdown-submenu-item:first-child {
  border-radius: 10px 10px 0 0;
}

.dropdown-submenu-item:last-child {
  border-radius: 0px 0px 10px 10px;
  border-bottom: none;
}

.dropdown-submenu-item:hover {
  background-color: #d7d7d7;
  color: rgb(29, 29, 29);
}

.only-mobile {
  display: none;
}

/* Smartphones (portrait and landscape) ----------- */
@media (min-width: 300px) and (max-width: 1100px) {
  .non-mobile {
    display: none !important;
  }

  .only-mobile {
    display: flex !important;
  }

  .logo {
    transform: scale(0.53);
    margin-right: -4.8em;
    margin-left: -8.1em;
    padding: 4em;
    margin-top: -2.3em;
    cursor: pointer;
  }
  .nav-item {
    padding: 0em 1.6em 0em 1.6em;
    display: flex;
    align-items: center;
    z-index: 3;
    font-size: 1.27em;
    height: min(2em, 100px);
  }
  .navbar {
    display: flex;
    justify-content: center;
    height: 7em;
    width: 100dvw;
    z-index: 5000;
  }
  .dropdown-menu {
    display: inline-block;
    text-align: right;
    position: absolute;
    top: 2.4em;
    right: -0.5em;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 8.5em;
  }
  .dropdown-menu-dots {
    font-size: 0.85em;
    display: inline-block;
    text-align: right;
    position: absolute;
    top: 2.2em;
    right: -0.5em;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 5.9em;
  }
  .dropdown-trigger-dots {
    height: 1.7em;
  }
  
  /* Mobile submenu styles */
  .dropdown-submenu {
    position: absolute;
    left: 0;
    top: 100%;
    background-color: #212121;
    border-radius: 10px;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    width: 10em;
    z-index: 5002;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    margin-top: 5px;
  }
  
  .dropdown-submenu-item {
    font-size: 0.8em;
    padding: 0.6em 0.8em;
    text-align: center !important;
    text-align: -moz-center !important;
    white-space: nowrap;
  }
}

/* Smartphones (portrait and landscape) ----------- */
@media (min-width: 1101px) and (max-width: 1800px) {
  .only-mobile {
    display: none !important;
  }

  .non-mobile {
    display: flex !important;
  }

  .nav-item {
    padding: 0em 2em 0em 2em;
    display: flex;
    align-items: center;
    z-index: 3;
    font-size: min(1.6vw, 1.6em);
    height: 2em;
  }

  .navbar {
    display: flex;
    justify-content: center;
    height: 7em;
    width: 100dvw;
    z-index: 5000;
  }

  .logo {
    transform: scale(0.75);
    margin-top: -1.2em;
    margin-right: -2em;
    padding: 3em;
  }
  .dropdown-menu {
    font-size: 0.85em;
    display: inline-block;
    text-align: right;
    position: absolute;
    top: 2.4em;
    right: -0.22em;
    display: none;
    opacity: 0;
    transition: opacity 0.5s ease;
    width: 8.5em;
  }
  
  /* Responsive submenu styles for larger screens */
.dropdown-submenu {
  width: 12em;
}

.dropdown-submenu-item {
  font-size: 0.85em;
  padding: 0.7em 1em;
  text-align: center !important;
  text-align: -moz-center !important;
}
}
