* {
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

/*Navbar styling*/

  ul {
    display: flex;
    justify-content: center;
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: #3C4F6D;
    position: fixed;
    top: 0;
    width: 100%;
  }

  ul li {
    float: left;
    display: inline;
  }
    
  
  ul li a {
    display: inline-block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  li a:hover {
    background-color: #333;
  }


  /*Main Styling*/
  body {
    padding-top: 25px;
    background-color: #f5f5f5;
  }

  .title {
    text-align: center;
    padding: 3rem;
    color: #f5f5f5;
  }

  .title2 {
    text-align: center;
    padding: 3rem;
  }

  ol {
    list-style-type: decimal; 
    list-style-position: inside; 
    margin-left: 20px; 
    padding-left: 10px;
  }

  .link {
    color: #f5f5f5;
  }

  /*Styling for index and contact cards*/
  .card {
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    transition: 0.3s;
    width: 40%;
    background-color: #1E2A5B;
    text-decoration: none;
    color: inherit;
    border-radius: 5px;
    margin: 1rem auto;
  }
  
  .card:hover {
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
  }
  
  .container {
    padding: 2px 16px;
  }

  .card img {
    border-radius: 5px;
    width: 100%;
  }

  a h4, a p {
    text-decoration: none;
    color: inherit;
    color: #f5f5f5;
  }

  table {
    margin: 5rem auto 5rem auto;
  }
  
  /*styling for index introduction card */
  .intro-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 50%;
    margin: 0 auto;
    padding: 20px;
    border: 1px solid black;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    background-color: white;
  }

  .intro-card img {
    width: 200px;
    height: 200px;
    float: left;
    padding-bottom: 1rem;
  }

  .intro-card h2 {
    font-size: 24px;
    font-weight: bold;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  .intro p {
    font-size: 16px;
    text-align: justify;
    line-height: 1.5;
    clear: right;
  }

  /*hobby information boxes*/
  .flex-container {
    display: flex;
    align-items: stretch;
    background-color: #f5f5f5;
    justify-content: center;
    text-align: center;
  }
  
  .flex-container > div {
    background-color: #3C4F6D;
    color: #f5f5f5;
    margin: 10px;
    text-align: center;
    font-size: 20px;
  }

  .list {
    list-style-type: decimal;
  }

  .hobby-img img {
    width: 400px;
    height: 300px;
  }

  /*form styling*/
  .form-container {
    display: grid;
    place-items: center;
  }

  form {
    width: 50%;
    margin: 10px;
    padding: 10px;

  }

  input, textarea {
    display: block;
    margin-bottom: 10px;
    width: 100%;
    height: 3rem;
  }

  /*Footer styling*/

  footer {
    background-color: #3C4F6D;
  }

  footer p {
    font-size: 16px;
    color:#f5f5f5;
    text-align: center;
  }

  footer h2 {
    font-size: 16px;
    color:#f5f5f5;
    text-align: center;
  }

/*Ervaring page styles*/
.Ervaring_Table {
  padding-left: 10rem;
  padding-right: 10rem;
  background-color: #3C4F6D;
  display: grid; 
  grid-template-columns: auto auto;
}

.grid-container {
  display: grid;
  gap: 10px;
  background-color: #f5f5f5;
  padding: 10px;
}

.grid-item {
  background-color: #1E2A5B;
  text-align: center;
  padding: 20px;
  font-size: 30px;
}

.grid-image {
  background-color: #f5f5f5;
  text-align: center;
  padding: 20px;
  font-size: 30px;
}

#item1 {
  color: #f5f5f5;
  grid-column: 1 / span 2;
  grid-row: 1;
}

#item2 {
  color: #f5f5f5;
  grid-column: 1 / span 2;
  grid-row: 2 / span 2;
}

#item3 {
  color: #f5f5f5;
  grid-column: 3;
  grid-row: 1 / span 3;
}

#item4 {
  background-color: #f5f5f5;
  grid-column: 1 / span 3;
  grid-row: 4;
}

#item5 {
  color: #f5f5f5;
  grid-column: 1 / span 2;
  grid-row: 5;
}

#item6 {
  color: #f5f5f5;
  grid-column: 1 / span 2;
  grid-row: 6;
}

#item7 {
  color: #f5f5f5;
  grid-column: 3;
  grid-row: 5 / span 3;
}

/*styling CV page*/

.CV_background {
  background-color: #3C4F6D;
}

.CV {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  height: 100%;
  padding-bottom: 3rem;
}

.CV img {
  margin-top: auto;
  margin-bottom: auto;
}