/* GOOGLE FONTS */
@import url('https://fonts.googleapis.com/css2?family=Space+Mono:ital,wght@0,400;0,700;1,400;1,700&display=swap');

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    /* USE TO CHECK BORDERS ON ALL ELEMENTS */
    /* border: 2px solid red; */
}

html{
    scroll-behavior: smooth;
}

header{
    padding: 1rem;
    display: flex;
    gap: 1rem;
    position: sticky;
    top: 0;
    background: linear-gradient(#404040, black);
    border-bottom: 1px solid white;
    opacity: 0.95;
    justify-content: space-between;
    font-size: 2rem;
    z-index: 1;
}

.toggle{
    display: none;
}

nav{
    position: relative;
    width: 75%;
    height: 100%;
}

nav ul{
    display: flex;
    justify-content: space-evenly;
    list-style-type: none;
}

a{
    text-decoration: none;
    color: white;
    &:hover{
        color: #808080;
        text-shadow: 2px 2px 5px #808080;
    }
}

body{
    text-align: center;
    color: white;
    font-family: "Space Mono", system-ui;
}

button{
    padding: 1rem;
    background-color: transparent;
    color: white;
    border: 2px solid #bfbfbf;
    border-radius: 1rem;
    &:hover{
        background-color: whitesmoke;
        color: black;
        box-shadow: 2px 2px 20px #808080;
    }
}

.block{
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    min-height: 50vh;
    margin: 5rem;
    border: 2px solid #808080;
    border-radius: 0.5rem;
    color: white;
    box-shadow: 2px 2px 15px #808080;
}

.start{
    margin-top: 79.5px;
    text-shadow: 2px 2px 5px #bfbfbf;
    transform: scale(1.1);
}

.block h1{
    margin-bottom: 1rem;
}

.block p, #logos a{
    margin: 1rem;
}

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

.img{
    margin-bottom: 5rem;
    width: 70vw;
    height: 50vh;
    border: 2px solid #bfbfbf;
    border-radius: 0.3rem;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    transform: scale(1);
    transition: transform 200ms;
    text-shadow: 2px 2px 5px black;
}

.img p{
    overflow: auto;
    margin: 0;
    padding: 0 40px 0 40px;
    color: white;
    text-align: center;
    z-index: 1;
    opacity: 0;
    transition: opacity 200ms;
}

.img h2{
    margin: 0 0 30px 0;
    color: white;
    z-index: 1;
    opacity: 0;
    transition: opacity 200ms;
}

.img::before{
    content: '';
    position: absolute;
    opacity: 0;
    background-color: black;
    top: 0;
    bottom: 0;
    left: 0;
    right: 0;
    transition: opacity 200ms;
}

.img:hover h2, .img:hover p{
    opacity: 1;
}

.img:hover::before{
     opacity: 0.5;
}

.img:hover{
    transform: scale(1.03);
}

.entry{
    margin: 1rem;
    border: 2px solid #bfbfbf;
    border-radius: 0.5rem;
    width: 50%;
    min-width: 70vw;
}

#logos{
    font-size: 3rem;
    display: flex;
    justify-content: center;
}

#title{
    margin-top: 3rem;
    margin-bottom: 1rem;
    font-size: 10vw;
    text-shadow: 2px 2px 5px #808080;
}

/* KEY FRAMES */
/* Starry Night: https://youtu.be/0t6Dmp70kTw?si=E_JZSL7HFkkuDq50 */

@keyframes move-twink-back {
    from {background-position:0 0;}
    to {background-position:-10000px 5000px;}
}

.stars, .twinkling {
    position: fixed;
    top:0;
    left:0;
    right:0;
    bottom:0;
  }
  
  .stars {
    background:#000 url(images/stars.png);
    z-index:-2;
  }
  
  .twinkling{
    background:transparent url(images/twinkling.png);
    z-index:-1;
    animation:move-twink-back 200s linear infinite;
  }

  @keyframes pulse{
    0% {
        scale: 1;
    }
    50%{
        scale: 1.01;
    }
    100%{
        scale: 1;
    }
  }

  /* MEDIA QUERIES */

  @media (hover: none){
    .img::before{
        opacity: 0.5;
    }

    .img h2, .img p{
        opacity: 1;
    }

    .img {
        animation: pulse 1500ms infinite;
    }
  }

  @media only screen and (max-width: 992px) {
    #contact{
        margin-bottom: 3rem;
    }

    .block{
        margin: 0;
        margin-top: 5rem;
        margin-left: 2rem;
        margin-right: 2rem;
    }
    
    .start{
        margin-top: 100.84px;
    }

    header{
        justify-content: center;
        flex-direction: column;
        font-size: 1.5rem;
    }
    
    nav{
        display: none;
        justify-content: center;
        width: 100%;
    }

    nav.active{
        display: flex;
    }

    nav ul{
        flex-direction: column;
    }

    .toggle{
        display: flex;
        justify-content: center;
        /* border: transparent; */
        padding: 0;
        /* transition-duration: 100ms; */
    }

    .toggle.up{
        transform: rotate(180deg);
        /* transition-duration: 100ms; */
    }
  }