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

html {
scroll-behavior: smooth;
width: 100%;
overflow-x: hidden;
}

header {
  width: 100%;
  min-height: 10vw;
  background-color: #275b82;
  padding: 20px;
  z-index: 999;
  border-radius: 0 0 4vw 4vw;
  box-shadow: 1rem 1rem black;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Responsive header for small screens */
@media screen and (max-width: 600px) {
  header {
    min-height: 60px;
    padding: 10px;
    border-radius: 0 0 20px 20px;
  }
  header h1 {
    font-size: 2rem;
    margin: 0;
  }
}

  h1{
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-style: normal;
   font-size: 4vw;
   color: white;
margin: 2vw;

    /* align and justify must be used for centering */
    align-self: center;
    justify-self: center;
  }

  body {
    line-height: 44px;
    background-color: #43515d;
    
}

  #boxes:hover{
        transform: scale(1.3);
        transition: transform 0.5s;
    }

#boxes{
    box-shadow: 3px 12px 20px black;
    background-color: #8e1c35;
    transition: transform 0.5s;
    border-radius: 1rem;
    gap: 1rem;
margin: auto;
padding-left: 1vw;
padding-right: 1vw;
padding-top: 1vw;


}

#secondboxes{
    box-shadow: 3px 12px 20px black;
    background-color: #8e1c35;
    transition: transform 0.5s;
    border-radius: 1rem;
    gap: 1rem;
margin: auto;
padding-left: 1vw;
padding-right: 1vw;
padding-top: 1vw;
justify-content: center;
justify-self: auto;


}
.maintext{ 
  font-family: "Chewy", system-ui;
  font-weight: 400;
  font-size: 2rem;
  font-style: normal;
  color: white;
  align-self: center;
    justify-self: center;
    padding-bottom: 0.5vw;
  }


#grid {
    display: grid;
    padding: 8vw;
   grid-template-columns: 1fr;
   /* the 1fr's are equal fractions in the grid */
    gap: 150px;
    padding-top: 5rem;

}


 @media screen and (min-width: 1600px){
  #grid{
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
  }
   #grid :nth-child(5){
    grid-column: 3 / 3;
   }
  #grid article:nth-child(2){
    transform: translateY(350px);
 }

 #header{
margin: fit-content;
 }

 }


 /* the "nth" makes the 5th card in the grid be in the middle*/

 @media screen and (max-width: 700px){
  #boxes img, #secondboxes img{
    width: 70vw;
  }
}