@media (max-width:786px) {
    .hobbies p, .qualifications p{
        color: white;;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 1rem;
        text-decoration: underline;
        margin-bottom: 10px;
    }
    .hobbies h2, .qualifications h2{
        max-width: 300px;
        color: white;
        font-family: Impact, Haettenschweiler, 'Arial Narrow Bold', sans-serif;
        font-size: 0.8rem;
        margin-bottom: 10px;

    }
    .qualifications{
        width: auto;
        position: absolute;
        top: 10%;
        margin: 10px;
    }
    
    .hobbies{
        width: auto;
        position: absolute;
        right: 2%;
        top: 50%;
        margin: 0;
    }
    h1{
        font-size: 4rem;
    }
    .text2{
        top: 100px;
        right:0px;
        position: absolute;
        margin: 5px;
    }
    #page2 {
        height: auto; /* Allow the height to expand based on content */
        min-height: 100vh; /* Ensure it takes at least full viewport height */
        overflow: visible; /* Allow content to overflow if needed */
        z-index: 10;
    }

    .main {
        max-width: 100%; /* Ensure it fits the screen width */
        padding: 1rem; /* Add some padding for better spacing */
    }

    .cards {
        flex-direction: column; /* Stack cards vertically */
        width: 100%; /* Full width for small screens */
    }

    .cards_item {
        width: 100%; /* Each card takes full width */
        padding: 0.5rem; /* Adjust padding for better spacing */
    }

    /* Ensure the card container doesn't restrict height */
    .card {
        height: auto; /* Let cards adjust to their content */
    }
}






/* Font */
@import url('https://fonts.googleapis.com/css?family=Quicksand:400,700');



.main{
  max-width: 100vh;
  margin: 0 auto;
}



img {
  height: auto;
  max-width: 100%;
  vertical-align: middle;
}

.btn {
  color: #ffffff;
  padding: 0.8rem;
  font-size: 14px;
  text-transform: uppercase;
  border-radius: 4px;
  font-weight: 400;
  display: block;
  width: 100%;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
}

.btn:hover {
  background-color: rgba(255, 255, 255, 0.12);
}

.cards {
    z-index: 200;
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
}

.cards_item {
    z-index: 50;
  display: flex;
  padding: 1rem;
}

@media (min-width: 40rem) {
  .cards_item {
    width: 50%;
  }
}

@media (min-width: 56rem) {
  .cards_item {
    width: 33.3333%;
  }
}

.card {
  background-color: transparent;
  border-radius: 0.25rem;
  box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.card_content {
  padding: 1rem;
  background: rgb(88, 88, 88);
  
  min-height: 200px;
}

.card_title {
  color: #ffffff;
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: capitalize;
  margin: 0px;
}

.card_text {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.5;
  margin-bottom: 1.25rem;    
  font-weight: 400;
}

nav{
    position: fixed;
    top: 0;
    z-index: 100;

}

ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background-color: transparent;
  }
  
  li {
    float: left;
  }
  
  li a {
    display: block;
    color: white;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
  }
  
  li a:hover:not(.active) {
    background-color: #111;
  }
  
  .active {
    background-color: rgb(58, 58, 58);
  }


  input[type=text], select, textarea {
    width: 100%; 
    padding: 12px; 
    border: 1px solid #ccc; 
    border-radius: 4px; 
    box-sizing: border-box; 
    margin-top: 6px; 
    margin-bottom: 16px; 
    resize: vertical 
  }

  input[type=submit] {
    background-color: #04AA6D;
    color: white;
    padding: 12px 20px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
  }
  
  /* When moving the mouse over the submit button, add a darker green color */
  input[type=submit]:hover {
    background-color: #45a049;
  }
  
  /* Add a background color and some padding around the form */
  .container {

    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
  }
  form{
    margin-bottom: 24px;
    background-color: rgb(88, 88, 88);
    max-width: 800px;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 20px 40px -14px rgba(0, 0, 0, 0.25);
  }
  label{
    color: white;
  }