/* Base Styles */
* {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  overflow-y: auto; /* Only allow vertical scroll on body */
  height: 100%;
}



body {
  margin: 0; 
  background-color: #176B87;
  font-family: sans-serif;
}

a {
  color: black;
  text-decoration: none;
      display: inline-block; 
}

a:hover {
    color:#053882; 
    background-color: none;
    text-decoration:none; 
    cursor:pointer; 
    text-decoration:none
}

#selectionWrapper {
  display: flex;
  background-color: #053142;
  padding: 20px;
  justify-content: center;
      
}

.fontti{
    font-family: sans-serif;

   
}



.links {
  display: flex;
  gap: 60px;
  font-size: 24px;
}

.links a {
  color: white;
}

.links a:hover {
    color:#64CCC5; 
    background-color: none;
    text-decoration:none; 
    cursor:pointer; 
    text-decoration:none

}

#smallheadWrapper {
  display: flex;
  background-color: #1B5264;
  padding: 20px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  text-align: center;
}

.description {
  font-size: 60px;
  color: white;
  margin: 20px;
  max-width: 800px;
    font-weight: bold;
     text-align: center;
}



.face {
  width: 250px;
  height: 250px;
  margin: 20px;
  object-fit: cover;
  border-radius: 8px;
}

#pageWrapper {
    flex-direction: row;
  background-color: #176B87;
  padding: 20px;
}

.container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.boxTogetherFlex {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

.downFlex {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.box {
  width: 600px;
  min-height: 400px;
  margin: 20px;
  padding: 20px;
  border: 3px solid black;
  background: linear-gradient(#64CCC5, #E0F5F5);
}


h4 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;


}

h2 {
  font-size: 24px;
  text-align: center;
  margin-bottom: 10px;
    margin-top: -10px;
}

p, li {
  font-size: 16px;
  margin: 10px;
    margin-left: -10px;
}

#UnderWrapper {
  display: flex;
  flex-direction: row;
  justify-content: center;
  background-color: #053142;
  width: 100%;
  padding: 20px;
     margin-bottom: -20px;
}


.Underline {
  color: white;
  font-size: 20px;
         margin-left: auto;
        margin-right: auto;
            margin-bottom: 30px;
    margin-top: 30px;
  align-items: center;
}


/* Responsive Layouts */

/* Small screens */
@media (max-width: 869px) {
  .links {
    flex-direction: row;
    margin-left: auto;
      margin-right: auto;
    font-size: 20px;
  }

  .box,
  .WorkExp {
    width: 80%;
      margin-left: auto;
      margin-right: auto;
   
  }

  .description {
    font-size: 40px;
  }

  .face {
    width: 200px;
    height: 200px;
  }
    
    h4 {
        font-size: 18px;
    }

    
    .Underline {
  color: white;
  font-size: 20px;
         margin-left: auto;
        margin-right: auto;
       text-align: center;
}

    
}

/* Medium screens */
@media (min-width: 870px) and (max-width: 1536px) {
  .box {
    width: 80%;
  }


  .links {
    font-size: 30px;
  }

  .description {
   font-size: 60px;
  }
    
           .Underline {
  font-size: 40px;
}
}

/* Large screens */
@media (min-width: 1537px) {
  .box {
    width: 100%;
   height: auto;
  }

  .face {
    width: 300px;
    height: 300px;
  }

  .links {
    font-size: 60px;
  }

  .description {
  font-size: 60px;
  }
    
    h4 {
  font-size: 85px;
  text-align: center;
  margin-bottom: 10px;
    }
    
    
    .Underline {
  color: white;
  font-size: 45px;
         margin-left: auto;
        margin-right: auto;
            margin-bottom: 30px;
    margin-top: 30px;
  align-items: center;
}
    
    #UnderWrapper {

     margin-bottom: -70px;
                    }

}
