@import url('https://fonts.googleapis.com/css2?family=Red+Hat+Display:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto+Slab:wght@300&display=swap');

*{
    margin: 0px;
    padding: 0px;
    box-sizing: border-box;
}

.nav {
    position: absolute;
    top: 0;
    left: 0;
}

nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    min-height: 8vh;
    font-family: 'Poppins', sans-serif;
    background-color: rgb(131, 131, 131);
    width: 100vw;
}

.logo{
    color: rgb(212, 212, 212);
    letter-spacing: 5px;
    font-size: 70px;
}

.nav-links{
    display: flex;
    justify-content: space-around;
    width: 30%;
    font-family: 'Poppins', sans-serif;
}

.nav-links li{
    list-style: none;
}

.nav-links a{
    color: rgb(212, 212, 212);
    text-decoration: none;
    letter-spacing: 3px;
    font-weight: bold;
    font-size: 40px;
    text-transform: uppercase;
    cursor: pointer;
}

.burger{
    display: none;
    cursor: pointer;
}

.burger div{
    width: 25px;
    height: 3px;
    background-color: rgb(212, 212, 212);
    margin: 5px;
    transition: 0.3s ease-in;
}

@media screen and (max-width:1024px){
    .nav-links{
        width: 60%;
    }
}

@media screen and (max-width:769px){
    body{
        overflow-x: hidden;
    }
    .nav-links{
        position: absolute;
        right: 0px;
        height: 92vh;
        top: 8vh;
        background-color: rgb(131, 131, 131);
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 50%;
        transform: translateX(100%);
        transition: transform 0.5s ease-in;
    }
    .nav-links li{
        opacity: 0;
    }
    .burger{
        display: block;
    }
}

.nav-active{
    transform: translateX(0%);
}

@keyframes navLinkFade{
    from{
        opacity: 0;
        transform: translateX(50px);
    }
    to{
        opacity: 1;
        transform: translateX(0px);
    }
}

.toggle .line1{
    transform: rotate(-45deg) translate(-5px,6px);
}

.toggle .line2{
    opacity: 0;
}

.toggle .line3{
    transform: rotate(45deg) translate(-5px,-6px);
}

.back-button {
    position: fixed;
    top: 0;
    left: 0;
}

.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

main {
    width: 100vw;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

section {
    height: 100%;
}

.card {
    height: 600px;
    width: 400px;
    background-color: black;
    box-shadow: grey 2px;
}

.gallery {
    margin: 20px;
    border: 1px solid #ccc;
    float: left;
    width: 300px;
}

.gallery:hover {
    border: 1px solid #777;
}

.gallery img {
    width: 100%;
    height: 400px;
}

.gallery a {
    text-decoration: none;
    color: black;
    font-size: large;
    font-family: sans-serif;
    transition: 0.2 linear;
}

.gallery a:hover {
    text-decoration: underline;
}

.desc {
    padding: 15px;
    text-align: center;
    font-size: 25px;
    font-family: 'Roboto Slab', serif;
}

#gallery-cont {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

h1 {
    font-family: 'Red Hat Display', sans-serif;
    font-size: 100px;
}

.subtext {
    font-family: 'Roboto Slab', serif;
    font-size: 20px;
    margin: 25px;
    text-align: center;
}

.button {
    text-decoration: none;
    color: black;
    padding: 20px 40px;
    font-family: 'Red Hat Display', sans-serif;
    font-size: 30px;
    border-radius: 10px;
    border: 1px solid black;
    background-color: white;
    transition: linear 0.2s;
}

.button:visited {
    text-decoration: none;
    color: black;
}

.button:hover {
    background-color: #faf7f7;
}

.button:active {
    background-color: #f1eaea;
}

#mruga {
    animation: mruganie 1.75s steps(1, end) infinite;
      
}

@keyframes mruganie {
    0% {
      opacity: 1;
    }
    50% {
      opacity: 0;
    }
    100% {
      opacity: 1;
    }
  }