*{
    margin: 0;
    padding: 0;
    font-family:Georgia, 'Times New Roman', Times, serif;
    

}

  body{
    background: black;
    width: 80%;
  }
    
    
    
    


h1{
    color:goldenrod;
    background: black;
    text-align: center;
    text-decoration: none;
    font-size: 50px;
    margin-top: 20px;
    margin-left: 300px;
}

.flexcontainer{
    width: 100%;
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    margin-left: 100px;
    margin-top: 100px;
}

.flexbox{
    position: relative;
    width: 300px;  
    height: 250px;
    color: white;
    font-size: 25px;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    line-height: 200px;
    border-radius: 10px;
    margin: 10px;
    transition: transform .2s;
}

.flexbox img{
    width: 100%;
    height: 100%;
}

.slider{
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 0%;
    height: 0%;
    border-radius: 10px;
    background-color: goldenrod;
    color: #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    transition: width 0.2, height 0.2;
}

.slider p{
    font-size: 14px;
}

.flexbox:hover .slider{
    width: 100%;
    height: 100%;
}

.flexbox:hover {
 -ms-transform: scale(1.1);  /*IE 9 */
 -webkit-transform: scale(1.1); /* Safari 3-8 */
 transform: scale(1.1);   }
  
span.circle {
background: #252525;
border-radius: 50%;
-moz-border-radius: 50%;
-webkit-border-radius: 50%;
color: #fff;
display: inline-block;
font-weight: bolder;
line-height: 40px;
margin-right: 5px;
text-align: center;
width: 40px;
}

span.circle:hover{ background: goldenrod;
} 


nav{
    width: 10%;
    height: 100vh;
    display: flex;
    align-items: center;
    position: fixed;
    right: 0;
    top: 0;
}

nav ul{
    display: flex;
    align-items: center;
    flex-direction: column;
    justify-content: end;
    list-style: none;
    width: 100%;
    
}

nav ul li{
    display: flex;
    align-items: center;
    justify-content: end;
    width: 60px;
    height: 60px;
    margin-top: 40px;
    
}

nav ul li a{
    display: flex;
    align-items: center;
    justify-content: end;
    text-decoration: none;
    overflow: hidden;
    font-size: 20px;
    gap: 20px; 
    background: transparent;
    border-radius: 50px;
    padding: 0 17px;
    width: 100%;
    height: 100%;
    transition: width 0.3s ease;
    color: #fff;
}

nav ul li a:hover{
    overflow: visible;
    width: fit-content;
    background: goldenrod;
}


i{
    font-size: 28px;
    background: rgba(255, 255, 255, 0.2);
}


.infinity {
    position: absolute;
    border: none;
    padding: 7px 14px;
    border-radius: 4px;
    background-color: #fff;
    top: 30%;
    position: fixed;
  }
  
  .infinity svg {
    background-color: #fff;
    animation: spin 3s infinite linear;
  }
  @keyframes spin {
    from {
      transform: rotate(0deg);
    }
    to {
      transform: rotate(360deg);
    }
  }
  
  .line {
    border-bottom: 10px solid #ffb400;
    width: 328px;
    margin-top: -5px;
  }
