@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css?family=Didact Gothic");
@import url("https://fonts.googleapis.com/css?family=Mina");

:root {
  --brown1: #fef9f4;
  --brown2: #e4d7b4;
  --brown3: #cdb59d;
  --brown4: #6a4f34;
  --intro-card: #f2eae2;
  --dark-blue: #091c38;
}

html {
  scroll-behavior: smooth;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

body {
  /*background-color: var(--brown2); /* Body's background color */
  background: url("images/background.png");
  background-size: 222px;
}

.container {
  width: 100vw; /* Needed for 768px and above resolutions, but included here because it doesn't break anything */
  padding-left: 12px; /*  Giving the webiste padding of 12px on both */
  padding-right: 12px; /* sides, because every div will have this class */

  max-width: 540px; /* Settings max width to 540 (until 768px screen) */
  margin-left: auto; /* but keeping the container */
  margin-right: auto; /* in the middle of the screen */
}

nav {
  font-family: "Inter", sans-serif;
  width: 100vw; /* Take up 100% of the width */
  z-index: 1030; /* Visible over everything */
  padding-top: 10px;
  padding-bottom: 10px;
  background: linear-gradient(
    315deg,
    var(--brown3),
    #e5e1de
  ); /* Gradient background color */
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.3); /* Black shadow under navbar */
  /*background-color: var(--brown2);*/ /* 1-color background */
}

.fixed-top {
  position: fixed; /* Always visible at the top of the screen */
}

nav .container {
  display: flex; /* Styling (mostly for the dropdown's funcitonality) of the navbar container */
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between; /* Push the logo and the hamburger to the opposite sides of the navbar */
}

nav .container img {
  /* Styling the navbar logo */
  width: 150px;
  height: 34px;
  z-index: 1030;
  display: inline-block;
}

.nav-logo-a {
  line-height: 0;
}

.hamburger {
  cursor: pointer; /* Not really needed here (at all), but for PC version, to show 
    the cursor as the hand version of it (if u make the window small enough) */
}

/* Here the hamburger is styled */
.nav-line {
  width: 34px;
  height: 3px;
  background-color: var(--brown4);
  margin: 6.25px 0;
  border-radius: 5px;
  transition: transform 0.3s, opacity 0.3s;
}

.nav-middle {
  opacity: 1;
}

.nav-open .nav-top {
  transform: rotate(-45deg) translate(-6.6px, 6.8px);
}

.nav-open .nav-bottom {
  transform: rotate(45deg) translate(-6.6px, -6.8px);
}

.nav-open .nav-middle {
  opacity: 0;
}
/* End of hamburger css */

.dropdown-menu {
  position: relative; /* Noticed that this isn't really needed, but it's okay */
  flex-basis: 100%; /* Makes the dropdown ACTUALLY appear below the navbar logo and hamburger */
  overflow: hidden; /* Hides the items of the dropdown when it is closed */
  max-height: 0; /* Hides the background of the dropdown when it's closed */
  transition: max-height 0.3s ease-in-out; /* Animation for opening the dropdown*/
}

.nav-show {
  max-height: 282px; /* Expand the dropdown after hamburger is clicked */
}

.dropdown-menu ul li {
  padding: 12px 0; /* Giving the items some space */
  list-style-type: none; /* Hiding the · before all of the items in dropdown */
}

.dropdown-menu ul li:first-child {
  padding-top: 24px; /* Giving the first item in dropdown some padding from top */
}

.dropdown-menu ul li:last-child {
  padding-bottom: 4px; /* Mainly used so the background color expands below the dropdown some more */
}

.dropdown-menu ul li a {
  color: #091c38;
  text-decoration: none;
  font-size: 15px;
  font-weight: 450;

  position: relative; /* These two variables are used mainly for the ::before tag where */
  display: inline-block; /* the custom underline is added for the selected and hovered item */

  opacity: 0.55;
  transition: all 0.3s;
}

.dropdown-menu ul li a:hover {
  /* Increase opacity on hover */
  opacity: 1;
  transition: all 0.3s;
}

.dropdown-menu ul li .active {
  /* Active navbar item */
  font-weight: 600;
  cursor: pointer;
  opacity: 1;
}

.dropdown-menu ul li a::before {
  content: ""; /* Required to generate a pseudo-element */
  position: absolute;
  bottom: -4px;
  left: 0; /* Push the underline to the left side */

  width: 0; /* Start with a width of 0 */
  height: 3px;
  background-color: var(--brown4);
  border-radius: 3px;
  transition: width 0.3s; /* Transition for the width property */
}

.dropdown-menu ul li a:hover::before {
  width: 35px; /* Expanding the underline width upon hover */
}

.dropdown-menu ul li .active::before {
  /* Everything is basically the same here, with */
  content: ""; /* the exteption of that it is already expanded because the item is active*/
  position: absolute;
  bottom: -4px;
  left: 0;
  width: 35px;
  height: 3px;
  background-color: var(--brown4);
  border-radius: 3px;
}

.separator {
  width: 90vw;
  margin-left: 5vw;
  border-bottom: solid 1px rgba(0, 0, 0, 0.2);

  margin-top: 16px;
  margin-bottom: 16px;
}

.contact {
  cursor: default;
  font-family: "Mina";
  text-align: center;
}
.contact h1 {
  font-size: 32px;
  line-height: 30px;
}
.contact .container div {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 5px;
  max-height: 32px;
}
.contact img {
  width: 32px;
  height: 32px;
  position: relative;
  top: -2px;
  margin-right: 10px;
}
.contact .flag-contact {
  width: 26px;
  height: 26px;
  margin-right: 2px;
  border-radius: 50%;
}
.contact p {
  font-size: 21px;
  line-height: 22px;
  display: inline-block;
}

.footer {
  position: relative;
  font-family: Arial, Helvetica, sans-serif;
  font-size: 14px;
  line-height: 14px;
  color: #fffd;
  margin-top: 15px;
  padding: 20px 0 10px 0;
  background-color: var(--dark-blue);
}
.footer .container {
  padding: 0 3vw;
}
.footer .both-footer {
  display: flex;
  flex-direction: row;
}
.footer .left-footer {
  border-right: solid 1px #fff;
  display: flex;
  flex-direction: column;
  width: 47vw;
}
.footer .right-footer {
  margin-left: 8px;
  display: flex;
  flex-direction: column;
  width: 47vw;
}
.footer .footer-contact,
.footer .right-footer a,
.footer-brand,
.footer-country {
  margin-top: 4px;
  margin-bottom: 4px;
}

.footer:after {
  content: ""; /* Required to generate a pseudo-element */
  position: absolute;
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
  top: 0;
  left: 15vw;
  width: 70vw;
  height: 10px;
  background-color: var(--brown4);
}

.footer img {
  width: 14px;
  height: 14px;
}

.footer span {
  color: #fffa;
}

.footer a {
  color: #fffd;
  text-decoration: none;
  opacity: 1;
}

.footer .footer-contact {
  display: flex;
}

.footer .footer-contact img {
  margin-right: 5px;
}

.footer-brand {
  color: #fff;
}

@media (min-width: 768px) {
  /* 768+ px screen width css !!! */
  .container {
    max-width: 1000px;
    padding-left: 20px;
    padding-right: 20px;
  }

  nav {
    /* Tbh this whole {} here doesn't seem to actually change anything, */
    display: flex; /* so might delete it in the future */
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
  }

  .hamburger {
    display: none;
  }

  .dropdown-menu {
    display: flex;
    flex-basis: auto;
    max-height: 34px; /* Can't reset max-height from before (it was 0), so using a proper height */
    overflow: auto; /* Resetting overflow, even though it's not really needed */
  }

  .dropdown-menu ul {
    display: flex; /* Changes the listing of the dropdown from vertical to horizontal */
  }

  .dropdown-menu ul li,
  .dropdown-menu ul li:first-child,
  .dropdown-menu ul li:last-child {
    padding: 0; /* Resets padding (mostly because of previous VERTICAL padding) from before */
  }

  .dropdown-menu ul li a {
    padding: 7.5px 8px; /* Giving each item some space */
  }

  .dropdown-menu ul li .active::before {
    /* Adjusting the underline, since the padding has changed */
    left: 8px;
    bottom: 5px;
  }

  .dropdown-menu ul li a::before {
    /* Adjusting the underline, since the padding has changed (but for hover) */
    left: 8px;
    bottom: 5px;
  }

  .separator {
    border-bottom-width: 2px;
  }

  .contact h1 {
    font-size: 40px;
    line-height: 40px;
  }

  .contact .container {
    display: flex;
    justify-content: space-between;
  }
}

@media (min-width: 850px) {
  .container {
    /* Pushes the content sliglthy more to the middle */
    padding-left: 34px;
    padding-right: 34px;
  }
}

@media (min-width: 1200px) {
  .container {
    max-width: 1140px;
  }

  nav .container img {
    /* Resizing the logo because the screen is bigger */
    width: 243px;
    height: 55px;
  }

  .dropdown-menu {
    /* Resizing the rest of the navbar to better match the logo */
    max-height: 55px;
  }

  .dropdown-menu ul li a {
    /* Resizing text too */
    font-size: 20px;
  }

  .dropdown-menu ul li .active::before {
    /* Resizing the underline too */
    width: 45px;
  }

  .dropdown-menu ul li a:hover::before {
    width: 45px;
  }

  .separator {
    margin-top: 32px;
    margin-bottom: 32px;
  }

  .contact .container {
    justify-content: center;
  }

  .contact .container div:nth-child(2) {
    margin-left: 64px;
    margin-right: 64px;
  }

  .footer .container {
    max-width: 900px;
  }
}

@media (min-width: 1400px) {
  .container {
    max-width: 1350px;
  }

  .dropdown-menu ul li a {
    padding: 8px 14px; /* Giving the navbar items even more space */
  }

  .dropdown-menu ul li .active::before {
    /* Adjusting the position of the underline yet again */
    left: 14px; /* because the padding has changed again (mainly because of left padding) */
  }

  .dropdown-menu ul li a::before {
    left: 14px; /* Same here */
  }

  .footer .container {
    max-width: 1240px;
  }
}
