@import url('https://fonts.googleapis.com/css2?family=Source+Sans+Pro:ital,wght@0,200;0,300;0,400;0,600;0,700;0,900;1,200;1,300;1,400;1,600;1,700;1,900&display=swap');

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Source Sans Pro', sans-serif;
  text-decoration: none;
}
html {
  scroll-behavior: smooth;
}
header {
  width: 100%;
  top: 0;
  left: 0;
  background: #fff;
  z-index: 100;
}

/* Top header */

.header__top {
  max-width: 1200px;
  margin: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.logo img {
  width: 200px;
}

/* Menu */

.container__menu {
  width: 100%;
  height: 70px;
  background-color: #489f58;
  padding: 0px 20px;
  top: 0;
  position: sticky;
  z-index: 200;
}
.menu {
  max-width: 1200px;
  margin: auto;
  height: 100%;
}
nav {
  height: 100%;
}
nav > ul {
  height: 100%;
  display: flex;
}
nav ul li {
  height: 100%;
  list-style: none;
  position: relative;
}
nav > ul > li:first-child > a {
  background-image: url(../img/icons8-home-30.png);
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center center;
  padding: 20px 40px;
}
nav > ul > li:first-child > a:hover {
  background-image: url(../img/icons8-home-30.png);
  background-size: 24px;
  background-repeat: no-repeat;
  background-position: center center;
}
nav > ul > li > a {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  padding: 14px;
  color: #fff;
  text-transform: uppercase;
  font-size: 14px;
  transition: all 300ms ease;
}
nav > ul > li > a:hover {
  transform: scale(1.1);
  background-color: #55bb68;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}
#selected {
  transform: scale(1.1);
  background-color: #55bb68;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}
nav ul li ul {
  width: 200px;
  display: flex;
  flex-direction: column;
  background-color: #fff;
  position: absolute;
  top: 90px;
  left: -20px;
  padding: 14px 0px;
  visibility: hidden;
  opacity: 0;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
  z-index: 50;
  transition: all 300ms ease;
}
nav ul li:hover {
  cursor: pointer;
}
nav ul li:hover ul {
  visibility: visible;
  opacity: 1;
  top: 80px;
}
nav ul li ul::before {
  content: '';
  width: 0;
  height: 0;
  border-left: 12px solid transparent;
  border-right: 12px solid transparent;
  border-bottom: 12px solid #fff;
  position: absolute;
  top: -12px;
  left: 50px;
}
nav ul li ul li a {
  display: block;
  color: #489f58;
  padding: 6px;
  padding-left: 14px;
  margin-top: 10px;
  font-size: 14px;
  text-transform: uppercase;
  transition: all 300ms ease;
}
nav ul li ul li a:hover {
  background: #489f58;
  color: #fff;
  transform: scale(1.1);
  font-size: 14px;
  box-shadow: 0px 0px 10px 0px rgba(0, 0, 0, 0.5);
}
/* Responsive elements */
.icon__menu {
  font-size: 26px;
  color: #fff;
  cursor: pointer;
  width: 26px;
  height: 100%;
  padding-top: 20px;
  display: block;
  justify-content: center;
  align-items: center;
}
#check__menu {
  display: none;
}
#label__check {
  width: 26px;
  height: 100%;
  display: none;
}

/* Main and footer */

main {
  background-color: #f0f0f0;
  color: #000;
  z-index: 300;
  padding-top: 0px;
  padding-bottom: 20px;
  margin-top: 0px;
}
footer {
  width: 100%;
  position: relative;
  bottom: 0;
  left: 0;
  padding: 2rem 8%;
  background-color: #489f58;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: #f2f2f2;
  z-index: 0;
}
footer > img {
  width: 200px;
  margin-bottom: 1rem;
}
.social-icons-container,
.footer-menu-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 1rem;
  padding-left: 30px;
}
.social-icon {
  height: 50px;
  width: 50px;
  border-radius: 1px solid #f2f2f2;
  color: #f2f2f2;
  font-size: 18px;
  opacity: 0.6;
  transition: all 300ms ease;
}
.social-icon:hover {
  opacity: 1;
}
footer a {
  color: #f2f2f2;
  font-weight: 300;
}
footer a:visited {
  color: #f2f2f2;
  font-weight: 300;
}
.footer__menu-item {
  margin: 1rem 1.5rem;
  cursor: pointer;
  opacity: 0.6;
  transition: all 300ms ease;
}
.footer__menu-item:hover {
  opacity: 1;
}

/* Responsive */

@media screen and (max-width: 720px) {
  .header__top {
    padding: 10px;
  }
  .logo img {
    width: 300px;
  }
  nav > ul {
    flex-direction: column;
    background-color: #489f58;
    position: absolute;
    left: 0;
    width: 100%;
    height: 0px;
    transition: all 300ms ease;
    z-index: 100;
    opacity: 0;
    visibility: hidden;
  }
  nav > ul > li > a:hover {
    transform: scale(1);
  }
  nav > ul > li > ul {
    left: 20px;
    margin-top: 20px;
  }
  nav > ul > li:hover > ul {
    top: 50px;
  }
  nav > ul > li:first-child a {
    background-position: 20px;
  }
  #selected {
    transform: scale(1);
  }
  #label__check {
    display: block;
  }
  .icon_menu {
    display: flex;
    align-items: center;
  }
  #check__menu:checked ~ nav > ul {
    height: 300px;
    visibility: visible;
    max-width: 100%;
    opacity: 1;
  }
}
