/* -----  GLOBAL  ----- */

*,
*:after,
*:before {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* --primary-01: gold;
  --primary-02: #FFC600;
  --primary-02-h: #FFD955; */
}

button {
  background-color: transparent;
  border: 0;
}

a {
  color: currentColor;
}

body {
  font-family: 'Ysabeau Infant', serif !important;
  min-height: 100vh;
  display: flex;
  flex-wrap: wrap;

  header,
  footer,
  .main {
    width: 100%;
  }
}

.hide { 
  display: none;
}

.main {
  padding: .5rem;
  min-height: calc(100vh - 3rem - 80px);
}

h1, h2 {
  text-align: center;
}

h1 {
  font-size: 2.25rem !important;
  font-weight: bold !important;
  margin-top: 1rem !important;
  margin-bottom: 1.5rem !important;
}

h2 {
  font-size: 1.5rem !important;
}

.btn {
  background-color: #646464 !important;
  color: gold !important;
  padding: .5rem 1rem;
  border-radius: 3px;
  text-decoration: none;
  font-size: 1.5rem;
  transition: all .25s ease-out !important;
}

.btn:hover{
  background-color: gold !important;
  color: #646464 !important;
  transition: all .25s ease-out !important;
}

.mt-auto, .m-auto, .my-auto { 
  margin-top: auto;
}

.mb-auto, .m-auto, .my-auto {
  margin-bottom: auto;
}

.mr-auto, .m-auto, .mx-auto {
  margin-right: auto;
}

.ml-auto, .m-auto, .mx-auto { 
margin-left: auto;
}

/* -----  HEADER  ----- */

.header {
  display: flex;
  min-height: 80px;
  max-height: 80px;
  align-items: center;
  background-color: var(--primary-02);

  a {
    display: inline-block;
    width: auto;
    height: 70px;
    margin: auto;
  }

  img {
    height: 100%;
    width: 100%;
  }
}

.image-container {
  position: relative;
}

.image-container::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  box-shadow: inset 0px 0px 10px 10px var(--primary-02);
}

.menu-toggler {
  position: absolute;
  left: 1rem;
  z-index: 2;
  padding: 0;
  box-shadow: 0px 0px 10px 0px rgba(0,0,0,0.75);
  border-radius: 5px;
  background-color: var(--primary-02);

  .menu-toggler-icon {
    height: 30px;
    width: 30px;

    transition: all .25s ease-out;
  }
}

.menu-toggler.toggled {
  .menu-toggler-icon {
    transform: rotate(90deg);

    transition: all .25s ease-out;
  }
}

.menu {
  position: absolute;
  top: 80px;
  width: 100%;
  height: 100%;
  z-index: 100;
}

.menu ul {
  list-style: none;
  padding: 0;
  position: absolute;
  left: 0;
  margin: 0;
  width: 100%;
  height: 100%;
  background-color: white;
  transition: .5s;
  
  li {
    background-color: transparent;
    transition: .25s;
  }

  li:hover {
    background-color: gold;
    transition: .25s;
  }
}

.menu ul li a {
  font-size: larger;
  text-decoration: none;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-02);
}
    
.menu-background {
  height: 100%;
  background-color: #80808080;
  transition: .5s;
}

.menu.hide {
  display: block;
  pointer-events: none;

  .menu-background {
    display: none;
    background-color: transparent;
    transition: .5s;
  }
}

.menu.hide > ul {
  left: -100%;
  transition: .5s;
}

@media (min-width: 576px) { 
  .menu > ul {
    width: 350px;
  }

  .menu.hide > ul {
    left: -350px;
    transition: .5s;
  }
}

@media (min-width: 992px) {
  .menu-toggler {
    display: none;
  }

  .header a {
    margin: 0;
  }

  .menu {
    position: relative;
    top: 0;

    .menu-background { display: none; }
  }

  .menu.hide {
    pointer-events: all;
  }

  .menu ul {
    justify-content: end;
    position: relative;
    display: flex;
    transition: .5s;
    gap: 1rem;
    background-color: transparent;
    padding-right: 1rem;

    li:hover {
      background-color: var(--primary-02-h);
      transition: .25s;
    }
  }

  .menu.hide > ul,
  .menu > ul {
    left: 0;
    width: 100%;
    transition: .5s;
  }

  .menu ul li a {
    height: 80px;
    padding: .75rem;
    color: grey;
    text-align: center;
  }

  .menu li .line {
    height: 3px;
    background-color: gold;
    transform: scale(0 ,1);
    transition: transform 0.25s ease;
  }
  
  .menu li:hover .line {
    transform: scale(1 ,1);
  }
}

/* -----  FOOTER  ----- */

.footer{
  display: flex;
  justify-content: center;
  border-top: 2px solid #646464;
  height: 3rem;
  background-color: oldlace;
}

.footer p{
  display: flex;
  align-self: center;
  margin: 0 !important;
}
