/* Global Styles */
@import url("https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@100;200;300;400;500;600;700;800;900&display=swap");

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: "Saira Condensed";
    font-size: 1rem;

  }
  
  body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #454545;
    background-color: #f7f7f7;
  }
  
  /* Header Styles */
  .logo{
    pointer-events: none;
    background: linear-gradient(180deg, #337ab7 95%, #f7f3f8 50%);
    padding-bottom: 15px;
  }
  header {
    background-color: #337ab7;
    color: #fff;
    padding: 1em;
    text-align: center;
  }
  
  nav ul {
    list-style: none;
    margin: 0;
    padding: 10px 0px 0px 0px;
    display: flex;
    gap: 10%;
    justify-content: center;
  }
  
  nav li {
    margin-right: 20px;
  }
  
  nav a {
    color: #fff;
    text-decoration: none;
  }
  nav a:hover{
    font-size: 1.1rem;
    font-weight: 500;
  }
  .exps {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-gap: 5vw;
    padding-top: 5vh;
    padding-bottom: 5vh;
    padding-left: 30vh;
    padding-right: 30vh;
    width: 100%;
    justify-items: center;
    /* Add responsive styles */
    @media (max-width: 950px) {
      grid-template-columns: repeat(1, 1fr);
      padding-left: 20vh;
      padding-right: 20vh;
    }
    @media (max-width: 768px) {
      grid-template-columns: repeat(1, 1fr);
      padding-left: 10vh;
      padding-right: 10vh;
    }
    @media (max-width: 480px) {
      grid-template-columns: repeat(1, 1fr);
      padding-left: 5vh;
      padding-right: 5vh;
    }
  }
  
  .experiment {
    background: linear-gradient(498deg, #fff 60%, #efefef 50%);
    box-shadow: 10px 10px 10px rgba(0, 0, 0, 0.1);
    padding: 30px;
    text-align: left;
    height: 220px;
    width: 100%;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    gap: 10%;
    align-items: center;
    position: relative;
  }
  
  .experiment p {
    font-size: 1.25rem;
  }
  
  .experiment h2 {
    font-size: 1.5rem;
  }
  
  .experiment a {
    background-color: #337ab7;
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1rem;
    cursor: pointer;
    border-radius: 10%;
    position: absolute;
    bottom: 25px; /* Adjust as needed */
    left: 50%; /* Center horizontally */
    transform: translateX(-50%);
    max-width: 500px;
  }
  
  /* Footer Styles */
  
footer {
  pointer-events: none;
    background-color: #337ab7;
    color: #fff;
    padding: 10px;
    text-align: center;
    clear: both;
}
  
  /* Responsive Styles */
  @media (max-width: 768px) {
    nav ul {
      flex-direction: column;
      gap: 0;
      align-items: center;
    }
  
    nav li {
      margin-right: 0;
      margin-bottom: 10px;
    }
  }
  .experiment a{
    text-decoration: none;
  }
  .experiment a:hover{
    font-size: 1.2rem;
    transition: all .2s cubic-bezier(.5,.15,0,1);
  }

  .experiment{
    display: block;
    padding: 20px 40px;
    text-decoration: none;
    color: #000000;
    overflow: hidden;
}
.experiment span:nth-child(odd){
    position: absolute;
    display: block;
    width: 100%;
    height: 2px;
    background: #337ab7;
    transition: 0.5s ease-in-out;
}
.experiment span:nth-child(1){
 top: 0;
 left: 50%;
}
.experiment span:nth-child(3){
    bottom: 0;
    right: 50%;
}
.experiment span:nth-child(even){
    position: absolute;
    display: block;
    width: 2px;
    height: 100%;
    background: #337ab7;
    transition: 0.5s ease-in-out;
}
.experiment span:nth-child(2){
 top: 50%;
 left: 0;
}
.experiment span:nth-child(4){
    bottom: 50%;
    right: 0;
}
.experiment:hover span:nth-child(1){
    top: 0;
    left: -50%;
   }
.experiment:hover span:nth-child(3){
       bottom: 0;
       right: -50%;
   }
.experiment:hover span:nth-child(2){
    top: -50%;
    left: 0;
   }
.experiment:hover span:nth-child(4){
       bottom: -50%;
       right: 0;
   }
