/* repsonsive mobile first */

body {
  background: #ac0d0d;
  color: hsl(51, 35%, 93%);
  margin: 0% auto;
}

/*hero video*/
video {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100vh;
  opacity: 20%;
  object-fit: cover;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: -1;
}


/* start of navbar */
.navbar {
  display: flex;
  align-items: center;
  padding: 10px;
  justify-content: space-between;
}

/*logga*/
.navbar img {
  width: 60px;
  margin-left: 10px;
  justify-items: left;
}

/*hamburger*/
.hamburger {
  font-size: 40px;
  cursor: pointer;
  background: none;
  border: none;
}

/*navbar-links*/
.nav-links {
  display: none;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  gap: 30px;
  padding: 5px;
  background: rgba(248, 241, 241, 0.9);
  border-radius: 5px;
  width: 20vw;

}

.nav-links.show {
  display: flex;
}

/* end of navbar */

/*hero image*/
h1 {
  font-size: 80px;
  margin-left: 10px;
  margin-bottom: 100px;
}

/*start of menybar*/
.menybar {
  display: grid;
  place-items: center;
  max-height: 100%;
  gap: 80px;

}

.menybubbla {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: #F3F1E6;
  color: #ac0d0d;
  cursor: pointer;
  transition: transform 0.4s ease, box-shadow 2.4s ease;
}

.menybubbla:last-child {
  margin-bottom: 390px;
}

.menybubbla:focus-within .dropdown-menu {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}


.illustration {
  object-fit: cover;
  border-radius: 50%;
  max-width: 60%;
  margin-top: 20px;
  transition: transform 0.4s ease;
}

/*menybar-text*/
h2 {
  color: #CC0606;
  position: relative;
  display: inline-block;
  cursor: pointer;
  font-size: 20px;
  text-align: center;
}

/*start dropdown menu styling*/
.dropdown-menu {
  position: absolute;
  width: 100%;
  height: 100%;
  max-width: 320px;
  border-radius: 50%;
  opacity: 0;
  transition: opacity 0.3s ease, transform 0.3s ease;
  transform: translateX(-50%) translateY(0%);
  background-color: #F3F1E6;
  list-style: none;
  z-index: 10;
  border-radius: 50%;
  padding: 0;
  left: 50%;

  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  font-size: 14px;
  gap: 10px;
}

/*end dropdown menu styling*/

/*start dropdown form styling*/
.dropdown-form {
  display: block;
  position: absolute;
  text-align: center;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) scale(0.95);
  background-color: #F3F1E6;
  font-size: 14px;
  width: 90%;
  max-width: 310px;
  z-index: 10;
  border: 2px solid #871515;
  border-radius: 10%;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-bottom: 30px;
}


.menybubbla:focus-within .dropdown-form {
  opacity: 1;
  pointer-events: auto;
  transform: translateX(-50%) scale(1);
}

.dropdown-form label {
  display: block;
  margin: 8px 0 4px;
  font-size: 14px;
  text-align: left;
}

.dropdown-form input[type="text"],
.dropdown-form input[type="email"],
.dropdown-form input[type="url"] {
  width: 100%;
  padding: 5px;
  margin-bottom: 10px;
  border: 1px solid #ac0d0d;
  background-color: #ece4e4;
  border-radius: 4px;
  box-sizing: border-box;
}

.consent {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 8px 0 4px;
}

.dropdown-form button {
  width: 80%;
  padding: 10px;
  background: #cf6161;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-size: 18px;
}

/*end of menybar*/

footer {
  background: #F3F1E6;
  opacity: 50%;
  color: #CC0606;
  text-align: center;
  max-width: auto;
  margin-bottom: 0px;
}


/* responsive tablet and desktop */
@media (min-width: 667px) {
  body {
    background: #F3F1E6;
    color: #CC0606;
  }

  /*hamburger-menu*/
  .hamburger {
    display: none;
  }

  .nav-links {
    display: flex;
    background: none;
    flex-direction: row;
    gap: 50px;
    justify-content: right;
    margin-right: 30px;
  }

  .nav-links a {
    text-decoration: none;
    color: #CC0606;
  }

  h1 {
    font-size: 100px;
    margin-left: 30px;
  }

  .menybar {
    grid-template-columns: repeat(3, minmax(200px, 1fr));
    margin: 200px 0px 200px 0px;
    gap: 0;
  }

  .menybubbla {
    width: 80%;
    height: 100%;
    border: 2px solid #ac0d0d;
    border-radius: 10%;
    margin-bottom: 50px;
    position: relative;
    overflow: auto;
  }

  .menybubbla:hover {
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    transform: scale(1.2);
    transition: 0.4s ease;
  }

  .menybubbla .illustration {
    max-width: 80%;
    max-height: 80%;
  }

  .dropdown-menu {
    border-radius: 10%;
    font-size: 20px;
    list-style-position: none;
    width: 90%;
    height: 90%;
  }

  .menybubbla:hover .dropdown-menu {
    opacity: 1;
    transition: 0.3s easy;
  }

  .dropdown-form {
    top: 0;
    left: 50%;
    background-color: #F3F1E6;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    border: none;
    box-sizing: border-box;
    position: absolute;
    transition: 0.3s ease;
  }

  .menybubbla:hover .dropdown-form {
    display: block;
    opacity: 1;

  }

  .menybubbla:last-child {
    margin-bottom: 50px;
  }

  footer {
    margin-bottom: none;
    background: #CC0606;
    opacity: 70%;
    color: #F3F1E6;
    text-align: center;
    height: 40px;
    justify-content: center;
  }

}