@font-face {
  font-family: 'Afacad';
  src: url('/fontused/Afacad-VariableFont_wght.ttf') format('truetype');
}

body {
  font-family: 'Afacad', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #F8E7DD;
}

.article-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
}

.header {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #EAE0DA;
  width: 100%;
  padding: 40px;
  position: relative;
}

.header img {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 10px;
}

.header-text {
  position: absolute;
  background: rgba(255, 255, 255, 0.8);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
}

.content {
  display: flex;
  width: 80%;
  margin-top: 20px;

}

.articles {
  width: 30%;
  background: #FFF;
  padding: 15px;
  border-radius: 5px;
  margin-right: 20px;
  max-height: fit-content;
}

.main-content {
  width: 70%;
  background: #FFF;
  padding: 20px;
  border-radius: 5px;
}

.article-item {
  display: flex;
  align-items: center;
  margin-bottom: 15px;
}

.article-item img {
  width: 50px;
  height: 50px;
  border-radius: 5px;
  object-fit: cover;
}

.article-text {
  margin-left: 10px;
}

.container {
  display: grid;
  grid-template-columns: 1fr;
  grid-template-rows: 1fr 1fr;
  grid-auto-columns: 1fr;
  grid-auto-rows: 1fr;
  gap: 0px 0px;
  grid-auto-flow: row;
  grid-template-areas:
    "Header"

    "Footer";
}

body {
  width: 100vw;
  overflow-x: hidden;
}

.Header {
  grid-area: Header;
}

.Intro {
  grid-area: Intro;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: antiquewhite;
}

.comfort-text {
  background-color: white;
  opacity: 0.77;
  transform: translateY(250px) translateX(-300px);
  z-index: 2;
  width: 450px;
  height: 350px;
  position: absolute;
  border-radius: 20px;
}


.graphic-box {
  display: flex;
  justify-content: center;

  width: 100%;
  height: 100%;
  margin: 20px;

}


.Footer {
  grid-area: Footer;

}


#small-logo {
  width: 190px;
  height: 190px;
}

#Header {
  background-color: rgba(255, 255, 255, 1);
  display: flex;
  justify-content: space-between;
  font-family: Afacad;
}

#Header img {
  width: 100px;
  height: 100px;
}

#navigation {
  background-color: none;
  display: flex;
  align-items: center;
  margin-right: 50px;
  color: black;
  gap: 50px;
}

#navigation a {
  color: black;
  text-decoration: none;
  font-size: 20px;
}

#navigation a:hover {
  color: rgb(107, 95, 95);
}

.dropbtn {
  color: black;
  background-color: white;
  padding: 16px;
  font-size: 16px;
  border: none;
  cursor: pointer;
}

.ElementA {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 100px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 3;
}

.dropdown-content a {
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
}

.ElementA:hover .dropdown-content {
  display: block;
}

.ElementA:hover .dropbtn {
  color: gray;
}

#ElementB {
  display: flex;
  align-items: center;
  gap: 20px;
}



/*Footer*/
#Footer {
  background-color: rgba(255, 255, 255, 1);
  display: grid;
  grid-template-columns: auto auto auto;
  justify-content: space-around;
  height: 300px;
}

#Contact {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 30px;
  color: gray;
}

#Contact p {
  margin: 2px;
}

.footerTitle {
  font-size: 18px;
  font-weight: bold;
}

#LinkWall {
  display: flex;
  flex-direction: row;
  gap: 80px;
}

.footerColumn {
  margin-top: 30px;
}

.footerColumn a {
  color: black;
  text-decoration: none;
}

.footerTitle {
  font-size: 18px;
  font-weight: bold;
  color: gray;
}

#ContactColumn {
  margin-top: 50px;
}

#Newsletter {
  display: flex;
  justify-content: left;
  align-items: center;
}

#Base {
  padding: 10px;
  border-top-left-radius: 7px;
  border-bottom-left-radius: 7px;
  border: solid;
  border-width: 0.1px;
  border-color: gray;
}

#BaseButton {
  padding: 10px;
  border-top-right-radius: 7px;
  border-bottom-right-radius: 7px;
  border: solid;
  border-width: 0.1px;
  border-color: gray;
  background-color: rgba(2, 159, 174, 1);
  color: white;
}

#BaseButton:hover {
  background-color: rgb(0, 181, 197);
}

#BaseButton:active {
  background-color: rgb(0, 87, 95);
}

@media screen and (min-width: 300px) and (max-width: 700px) {
  #Header {
    background-color: rgba(255, 255, 255, 1);
    display: flex;
    justify-content: space-between;
    font-family: Afacad;
    font-size: 10px;
  }

  #Header img {
    width: 80px;
    height: 80px;
  }

  .header-text {
    font-size: 13px;
  }

  .dropbtn {
    color: black;
    background-color: white;
    padding: 0px;
    font-size: 10px;
    border: none;
    cursor: pointer;
  }

  #navigation {
    background-color: none;
    display: flex;
    align-items: center;
    margin-right: 50px;
    color: black;
    gap: 20px;
  }

  #navigation a {
    color: black;
    text-decoration: none;
    font-size: 12px;
  }

  #Footer {
    background-color: rgba(255, 255, 255, 1);
    display: grid;
    grid-template-columns: auto;
    justify-content: space-around;
    height: 800px;
  }

  #Contact {
    align-items: flex-start;
    margin-left: 50px;
  }

  #LinkWall {
    justify-content: center;
  }

  #ContactColumn {
    margin-left: 50px;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }

  .content {
    display: flex;
    justify-content: center;
    flex-direction: column;
    width: 100%;
    height: 100%;
    margin: 20px;
    gap: 10px;
    
  }

  .articles {
    
    margin-right: 20px;
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    width: 100%;
  }

  .articles>div {
    width: 100%;
    margin-right: 0px;
    display: flex;
    
  }
  .main-content {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
  }

  #Header, #Footer {
    width: 105%;
  }

  .article-container{
    margin-right: 10px;
  }

  
}

@media screen and (min-width: 701px) and (max-width: 1000px) {
  body {
    width: 140%;
    overflow-x: hidden;
  }

  .graphic-box {
    display: flex;
    justify-content: center;
    width: 100%;
    height: 100%;
    margin: 0px;
    margin-bottom: 20px;
  }

  .content {
    flex-direction: column;
    gap: 10px;
  }

  .articles {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: row;
  }

  .main-content {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
  }

  .article-item {margin-left: 10px;}
}

@media screen and (min-width: 424px) and (max-width: 700px) {
  .articles {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: row;
  }

  .main-content {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: column;
  }
}

@media screen and (max-width: 376px){
  .articles {
    width: 100%;
    margin-right: 0px;
    display: flex;
    flex-direction: row;
  }


}