html, body
{
    margin: 0;
    padding: 0;
    font-family: 'Architects Daughter';
    background-color: rgb(29, 28, 28);
    overflow-y: hidden;
}

/* main container */
.choose-game-container{
    height: 93.7vh;
    position: absolute;
    bottom: 0;
    width: 100%;
    display: grid;
    grid-template-rows: 33.333% 33.333% ;
}

.game-sections{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
.game-sections{
    position: relative;
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}
.game-sections:nth-child(1){
    background-image: url("https://drive.google.com/uc?id=1c2kNMnidKxsSQBo36U-HNnILl6iTPNxA");
}
.game-sections:nth-child(2){
    background-image: url("https://drive.google.com/uc?id=1huqUPO2704RQmmEGRvh_q9LNvaCD-1Cy");
}
.game-sections:nth-child(3){
    background-image: url("https://drive.google.com/uc?id=1co8u828pL2Y8Sh7VSpVaAvdwk0i7GIFk");
}
.background-layer{
    background-color: rgba(0, 0, 0, 0.4);
    color: white;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    border-bottom: 5px solid rgb(255, 255, 255);
}
.game-sections:nth-child(3) .background-layer{
    border: none;
    height: 102%;
}
.move-to-videos-btn{
    background-color: rgb(52, 73, 90);
    padding: 2%;
    border-radius: 3px;
    border: 2px solid white;
    font-size: 20px;
    cursor: pointer;
}
.move-to-videos-btn:hover{
    background-color: rgb(75, 105, 129);
    transition: 200ms;
}

.videos-container{
    transition: 500ms;
    visibility: hidden;
    height: 0;
    width: 100%;
    background-color: rgb(29, 28, 28);
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: left;
    grid-auto-columns: 20%;
    overflow-x: auto;
    align-items: center;
}
.showVideosContainer{
    height: 100%;
    visibility: visible;
    transition: 500ms;
}

/* template style for json elements */
.video-element-style{
    background-color: rgb(53, 53, 53);
    width: 300px;
    min-width: 250px;
    height: 210px;
    display: grid;
    justify-items: center;
    align-items: flex-end;
    border: 2px solid rgb(73, 73, 73);
    cursor: pointer;
    border-radius: 3px;
    text-decoration: none;
    text-align: center;
    margin-left: 20px;
}
.video-element-style:last-child{
    margin-right: 20px;
}
.video-element-style:hover{
    border-left: none;
    border-right: none;
    border-top: 2px solid white;
    border-bottom: 2px solid white;
    transition: 0.5s;
}
.video-element-style:hover .video-icon-hover{
    display: block;
}
.video-element-style:hover .video-icon{
    display: none;
}
.video-icon-hover{
    display: none;
}
.video-icon, .video-icon-hover{
    width: 100px;
    height: 100px;
}
.video-title{
    margin: 10px;
    color: white;
    font-size: 20px;
    background-color: rgb(24, 23, 23);
    padding: 10px;
}
.video{
    width: 100%;
    height: 0;
    top: 60px;
    left: 0;
    visibility: hidden;
    transition: 500ms;
}
.iframe-video{
    width: 100%;
    height: 100%;
}
.showVideo{
    position: fixed;
    visibility: visible;
    height: calc(100% - 60px);
    transition: 500ms;
}

/* arrow to navigate back */
.arrow-left{
    font-size: 35px;
    position: relative;
    top: 7px;
    left: 10px;
    color: white;
    border: 1px solid rgb(255, 255, 255);
    background-color: rgba(31, 31, 31, 0.4);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    visibility: hidden;
}
.arrow-left:hover{
    background-color: rgba(31, 31, 31, 0.8);
    color: rgb(226, 44, 44);
}


/* media queries */
@media (max-height: 800px) {
    html, body{
        overflow-y: scroll;
    }
    .choose-game-container{
        top: 60px;
        grid-template-rows: 270px 270px 270px;
    }
}