* {
    margin: 0;
    padding: 0;
    text-align: center;
}

body {
    user-select: none;
    min-height: 100vh;
    width: 100%;
    background-image: linear-gradient(90deg, rgba(2, 0, 36, 1) 0%, rgba(9, 9, 121, 1) 15%, rgba(0, 212, 255, 1) 100%);
}
.sections{
    display: flex;
    width: 100%;
    min-height: 100vh;

}
.left{
    display: flex;
    justify-content: center;
    width: 50%;
}

#head{
    position: fixed;
    text-shadow: white 0px 0px 3px;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    color: white;
    margin-top: 35vh;
    font-weight: 900;
    font-size: 15vh;
}

.right{
    width: 50%;
}

#projekts{
    margin-top: 5vh;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 6vh;
    font-weight: 700;
    color: rgb(255, 255, 255);
    text-shadow: rgb(255, 255, 255) 0px 0px 2px;
}

.projectshow{
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 40px;
    margin-top: 10vh;
    margin-bottom: 8vh;
}

.projectshow img{
    box-shadow: black 0px 0px 10px;    
    transition: all 0.3s;
    width: 43vw;
}

.projectshow img:hover{
    cursor: pointer;
    transform: scale(1.06);
}

.popup{
    display: none;
    box-shadow: black 0px 0px 20px;
    border-radius: 15px;
    margin: 10vh 7vw;
    position: fixed;
    background-color: black;
    width: 85vw;
    height: 80vh;
    opacity: 0;
    color: white;   
    transition: all 0.4s;
}

.popup-content{
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.popup #popuptitle{
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 9vh;
    font-weight: 700;
}

.popup #popupdescription{
    margin-top: 5vh;
    font-size: 3vh;
}

.popup #popupbutton{
    cursor: pointer;
    border-radius: 5px;
    background-color: rgb(99, 99, 99);
    opacity: 1;
    width: fit-content;
    font-weight: 700;
    font-size: 3vh;
    padding: 1% 2%;
    transition: all 0.3s;
}

.popup #popupbutton:hover{
    background-color: rgb(87, 87, 87);
    transform: scale(1.05);
}

.popup #popupbutton:active{
    background-color: rgb(108, 108, 108);
    transform: scale(0.97);
}

#close{
    border-radius: 8px;
    padding: 0% 2%;
    margin-top: 1vh;
    cursor: pointer;
    font-size: 8vh;
    position: absolute;
    top: 10px;
    right: 20px;
    transition: all 0.3s;
}

#close:hover{
    transform: scale(1.05);
    background-color: rgb(38, 38, 38);
}
/*
#prev{
    margin-top: 15vh;
    margin-bottom: 5vh;
}

#next{
    margin-top: 5vh;
}

#prev, #next{
    cursor: pointer;
    border: none;
    background-color: black;
    color: rgb(190, 190, 190);
    font-size: 4vh;
    position: static;
    transition: all 0.2s;
    border-radius: 5px;
    padding:  0.2%;
}

#prev:hover, #next:hover{
    transform: scale(1.05);
    background-color: rgb(33, 33, 33);
}

#prev:active, #next:active{
    color: white;
}

.nextanim{
    animation-name: next;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

.prevanim{
    animation-name: prev;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}
*/
.popup #popupbutton.firstprojectspace{
    margin-top: 20vh !important;
}

#copy{
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    margin-bottom: 1vh;
    font-size: 1.7vh;
    font-weight: 700;
}


.triangle-prev{
    margin-top: 15vh;
    margin-bottom: 5vh;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent; 
    border-bottom: 15px solid rgb(190, 190, 190);
}

.triangle-next{
    margin-top: 5vh;
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid rgb(190, 190, 190);
  }

.triangle-prev, .triangle-next {
    border-radius: 5px;
    cursor: pointer;
    width: 0; 
    height: 0; 
    transition: all 0.2s;
    position: static;
    background-color: black;
    
}

.triangle-prev:hover, .triangle-next:hover{
    transform: scale(1.04);
    background-color: rgb(33, 33, 33);
    padding-top: 1%;
}

.triangle-next:active{
    border-top-color: white;
}

.triangle-prev:active{
    border-bottom-color: white;
}







@media (max-width: 1400px){
    #head{
        font-size: 11vh;
    }
    .popup #popuptitle{
        font-size: 6.5vh;
    }
    #prev{
        margin-top: 5vh;
        margin-bottom: 3vh;
    }
    #next{
        margin-top: 3vh;
    }
    #close{
        margin: 0;
        position: static;
        margin-top: 1vh;
    }
    .popup #popupbutton.firstprojectspace{
        margin-top: 8vh !important;
    }
}

@media(max-width: 1200px){
    #head{
        font-size: 10vh;
    }
    #close{
        margin: 0;
        position: static;
        margin-top: 1vh;
    }
    .popup #popuptitle{
        font-size: 6vh;
    }
    .popup #popupdescription{
        font-size: 2.8vh;
    }
    #prev{
        margin-top: 3vh;
        margin-bottom: 3vh;
    }
    #next{
        margin-top: 3vh;
    }
    .popup #popupbutton.firstprojectspace{
        margin-top: 8vh !important;
    }
}
@media (max-width: 1000px){
    #head{  
        font-size: 9vh;
    }
    #projekts{
        font-size: 4vh;
    }
    .popup #popuptitle{
        font-size: 7vh;
    }
    #prev{
        margin-top: 8vh;
    }
    #close{
        margin: 0;
        position: static;
    }

    .popup #popupbutton.firstprojectspace{
        margin-top: 12vh !important;
    }
}

@media (max-width: 700px){

    .sections{
        display: flex;
        flex-direction: column;
    }
    .left{
        width: 100vw;
        height: 100vh;
    }
    .right{
       width: 100vw; 
    }
    #head{
        margin-top: 38vh;
        font-size: 12vh;
        position: static;
    }
    #projekts{
        margin-top: 50vh;
        font-size: 5vh;
    }
   
    .projectshow img{
        width: 95vw;
    }
    .projectshow img:hover{
        transform: scale(1.3);
    }
    .popup #popuptitle{
        font-size: 6vh;
    }

    .popup #popupdescription{
        font-size: 2vh;
    }
    .popup #popupbutton{
        font-size: 3vh;
    }
    .popup #popupbutton.firstprojectspace{
        margin-top: 10vh !important;
    }


    #close{
        position: static;
        margin: 0;
    }
    #prev{
        margin-top: 3vh;
        margin-bottom: 1vh;
    }
    #next{
        margin-top: 1vh;
    }
}

@media (max-width: 400px){
    #head{
        font-size: 9vh;
    }
    .popup #popuptitle{
        font-size: 4vh;
    }
    .popup #popupdescription{
        font-size: 2.5vh;
    }
    .popup #popupbutton{
        margin-top: 20vh;
    }
    .projectshow img{
        width: 95vw;
    }

}

@keyframes next {
    from { transform: translateY(25vh); }
    to { transform: translateY(0); }
}

@keyframes prev {
    from { transform: translateY(-25vh); }
    to { transform: translateY(0); }
}