@font-face {
  font-family: PlayFairDisplay;
  src: url(fonts/PlayfairDisplay-VariableFont_wght.ttf);
}

*{
    padding: 0;
    margin: 0;

    box-sizing: border-box;

    color: white;

    font-family: PlayFairDisplay;
}

body{
    min-height: 100vh;
    background-image: url("backgrounds/bg2.jpg");
    background-size: 100% 100%;
    background-repeat: no-repeat;
    padding: 1rem;
}

header{
    height: 10vh;

    display: flex;
    justify-content: center;
    align-items: center;

}

h1, h3{
    text-align: center;
}

h1{
    backdrop-filter: blur(1px) brightness(150%);

    padding: .5rem 1rem;
    border-radius: 1rem;

    text-shadow: -1px -1px 0 black, 1px -1px 0 black, -1px 1px 0 black, 1px 1px 0 black;
}

/* Kontener */

#content{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    gap: 4rem;
}

/* karty */

.card{
    width: 15rem;
    height: 20rem;

    margin: 1rem;

    display: flex;
    justify-content: center;
    align-items: center;

    position: relative;

    backdrop-filter: blur(1px) brightness(180%);
    border-radius: 2rem;
    padding: 2rem;
}

.card img{
    width: 13rem;
    aspect-ratio: 1/1;
}

.card a{
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    gap: .5rem;

    flex-direction: column;

    text-decoration: underline;
}

/* menu */

#menu-icon{
    width: 7rem;
    aspect-ratio: 1/1;

    position: absolute;
    top: 0;
    right: 100%;

    background-color: #252525;
    padding: 1rem;

    border-top-left-radius: 2rem;
    border-bottom-left-radius: 2rem;
    transition: all .5s;
    z-index: 11;

    opacity: 1;
}

.menu-hidden #menu-icon{
    opacity: .7;
}

#menu-icon:hover{
    cursor: pointer;

    transform: scale(110%);
    opacity: 1;
}

#menu{
    transition: all .5s;

    height: 100%;
    width: 30%;

    background-color: #252525;
    z-index: 10;

    position: fixed;
    top: 0rem;
    right: 0rem;

    /* display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; */

    /* overflow-y: scroll;
    overflow-x: visible; */

}

#menu .card{
    transform: scale(75%);
}

#menu-items{
    width: 100%;
    height: 90%;
    overflow-y: scroll;
    overflow-x: hidden;
    padding: 0rem 2rem;
    margin-bottom: 6rem;
    display: grid;
    place-items: center;
    gap: 2rem;

    grid-template-columns: repeat(2, 50%);
}

#menu h2{
    font-size: 3vw;
    height: 7rem;

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

.menu-hidden{
    transform: translateX(100%);
}

@media(width < 1250px){
    #menu-items{
        grid-template-columns: 100%;
    }
}

@media(width < 700px){
    .menu-hidden{
        transform: translateX(0) translateY(100%);
    }

    #menu-icon{
        left: 0;


        border-radius: 0rem;
        border-top-left-radius: 2rem;
        border-top-right-radius: 2rem;
    }

    .menu-hidden #menu-icon{
        bottom: 100%;
        top: auto;

        width: 4rem;
    }

    #menu-icon{
        top: 0;
        bottom: auto;
        width: 4rem;
    }

    #menu{
        height: 100%;
        width: 100%;
    }

    #menu h2{
        font-size: 8vw;
    }
}


/* .menu-shown{
    transform: translateX(0%);
} */

/* SCROLLBAR */

/* width */
::-webkit-scrollbar {
  width: 1rem;
}

/* Track */
::-webkit-scrollbar-track {
  background: #3f3f3f;
}

/* Handle */
::-webkit-scrollbar-thumb {
  background: #212121;
  border-radius: 2rem;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
  background: #494949;
}

/* backgrounds */

.background{
    position: fixed;
    top: 0;
    left: 0;

    width: 100%;
    height: 100%;

    background-size: 100% 100%;

    transition: all 1s;
}

.bg-hidden{
    opacity: 0;
}

a#credits{
    position: fixed;
    right: .5rem;
    bottom: .5rem;

    opacity: .7;
    transition: all .5s ;
    text-decoration: none;
}

a#credits:hover{
    opacity: 1;
}

span.underline{
    text-decoration: underline;
}
