*{
    margin: 0;
    padding: 0;
    box-sizing: border-radius;
}
body{
margin: 0%;
}
section{
margin: 0;
padding: 0;
}

nav{
position: relative;
display: flex;
justify-content: center;
align-items: center;
background-color: #000000;
}

#navbar {
    background-color: black;
}

.topnav{
    display: none;
    align-items: center;
    margin: 0-1rem;
}
.topnav ul{
    list-style: none;
    margin: 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 2rem 0 2rem 1rem;
    gap: 1rem;
}
/* Style the links inside the navigation bar */
.topnav ul li a {
color: #f2f2f2;
padding-right: 3em;
text-decoration: none;
position: relative;
font-size: 1.3rem;  
}
.topnav ul li a::after{
content: '';
position: absolute;
display: block;
height: 0.4em;
width: 0%;
background-color: #d22030;
bottom: -1em;
transition: all 150ms ease-in-out;
cursor: pointer;
border-radius: 7%;
}
.topnav ul li a:hover::after{
width: 60%;
}
.menuButton{
appearance: none;
outline: none;
border: none;
background: none;
cursor: pointer;
display: block;
width: 2rem;
height: 2rem;
margin: 1rem;
}
.menuButton span{
color: white;
font-size: 2rem;
}

.mobileMenu ul{
display: block;
position: relative;
width: 100%;
align-items: center;
margin: 0;
padding-top: 2.5rem;
padding-left: 0;
background-color: #000000;
color: white;
}
.mobileMenu ul li{
padding: 0.5rem;
}

.mobileMenu ul li a{
    display: block;
    padding: 1 rem;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 1.25rem;
}

.mobileMenu ul li a.active{
    color: #d22030;
}

.mobileMenu ul li a:hover{
    color: #d22030;
    background-color: aliceblue;
}

.topnav a.active {
color: #d22030;
}

.page-title {
background: linear-gradient(#000000,#d22030);
background-size: 100% 100%;
animation: gradient-animation 18s ease infinite;
text-align: center;
padding: 3rem 3rem 1rem 3rem;
}

h1{
color: #f2f2f2;
font-size: 2.5rem;
border: 4px solid white;
border-style: outset;
border-top-left-radius: 10%;
border-bottom-right-radius: 10%;
display: inline-block;
padding: 1rem;
}

h2{
color: black;
border-style: solid;
border-width: 5px;
border-image: linear-gradient(180deg, #d22030, #000000) 1;
text-align: center;
padding: 1rem;
font-size: 2rem;
}

p{
font-size: 1.3rem;
padding: 1rem;
margin: 3% 10%;
}


.second-heading{
text-align: center;
margin: 3% 10%;
}

span{
font-weight: bold;
}

.third-heading{
font-size: 1.5rem;
font-weight: bold;
color: #d22030;
}

.laser-lab {
padding: 3rem 3rem 0 3rem;
position: relative;
align-items: center;
display: flex;
justify-content: center;
}
.laser-image{
    max-width: 100%;
    height: auto;
}

.research-img-div{
margin: 3% 10%;
position: relative;
align-items: center;
display: flex;
justify-content: center;
}

.research-img-2, .research-img-3{
max-width: 100%;
height: auto;
}

footer h2{
    color: #d22030;
    font-size: 1.5rem;
    border: none;
    text-align: left;
    margin: 0;
    padding: 1rem;
  }
  
  footer{
    background-color: #000000;
  }
  
  footer p{
    border: none;
    color: #f2f2f2;
    margin: 0;
    padding: 1rem;
    font-size: 1rem;
  }
  
  footer p a{
    color: #f2f2f2;
  }
  
  .flex-item span{
    font-size: 1rem;
  }
  
  .footer{
    padding: 2rem 10rem;
    display: flex;
    gap: 5rem;
  }
  
  .site-logo{
    width: 5rem;
    height: auto;
    padding: 1rem 0;
  }
  

@media screen and (min-width: 600px) {
.topnav{
    display: contents;
}
.mobileMenu ul{
    display: none;
}
.menuButton{
    display: none;
}
} 

@media screen and (max-width: 600px) {
.topnav {
    display: none;
} 
.mobileMenu ul{
    display: none;
    width: 100vw;
}
.menuButton{
    display: block;
}
.mobileMenu ul.isOpen{
    display: block;
}
}