/* 
Copyright (c) 2009, Brian Haines, One by Four
info@onebyfourstudio.com

This Font Software is licensed under the SIL Open Font License, Version 1.1.
*/
@font-face {
    font-family: "Matchbook";
    src: url(fonts/Matchbook/Matchbook.otf) format("OpenType");
    font-weight: normal;
}

/* 
Copyright 2016 The Archivo Project Authors (omnibus.type@gmail.com)

This Font Software is licensed under the SIL Open Font License, Version 1.1. 
*/
@font-face {
    font-family: "Archivo";
    src: url("fonts/archivo/Archivo-Regular.ttf");
    font: normal;
}

body{
    font-family:Archivo, Helvetica, sans-serif;
    min-height: 100vh;
    background-color: rgb(58, 58, 58);
    color: white;
    margin: 0;
    display: flex;
    flex-direction: column;
}
body header{
    height: 100px;
    background-color: darkred;
    box-shadow: 0px 2px 5px 0px rgba(0, 0, 0, 0.4);;
}

.site-name{
    
    width: 500px;
     margin: 5px 10px; 
    font-family: Matchbook;
    font-size: 35pt;
    line-height: 100%;
    /* color: black; */
}

.info{
    margin-left: 15%;
    margin-right: 15%;
    text-align: justify;
}

.gamelist{
    margin-top: 10px;
    margin-left: 15%;
    margin-right: 15%;
    flex: 1;
}

.game{
    margin-top: -10px;
    box-sizing:content-box;
    border-radius: 10px 10px 0 0;
    box-shadow: 0px -5px 5px 0px rgba(0, 0, 0, 0.2);
    background-color: rgb(228, 212, 183);
    color: black;
    padding: 2px 10px 4px; 
    transition: margin 0.1s; 
}

.game:hover, .game:active{
    margin-top: -13px;
    margin-bottom: 3px;
}

.game:first-child{
    box-shadow: none;
}

.title{
    display:flex;
    padding-bottom: 10px;
    align-content: flex-start
}

.name{
    margin: 4px 4px;
    flex: 1;
    align-self: first baseline;
}

.subtitle{
    display: flex;
    flex-direction: row-reverse;
    align-content: flex-start;
    
}

.played{
    width: 125px;
}
.grade img{
    height: 25px;
    margin-left: 5px;
    
}

.content{
    text-align: justify;
    display: flex;
    flex-direction: row;
    transition:  max-height 0.5s;
    box-sizing: border-box;
    overflow: hidden;
    max-height: 1000px;
    margin-bottom: 15px;
}

.description_container{
    flex: 3;
    padding-right: 15px;
}

.screenshot_container{
    flex:1;
    margin-top: 16px;
}

.screenshot{
    width: 100%;
    height: auto;
}

.lazy{
    filter:blur(10px)
}

.reduced{
    max-height: 0px;
}

.cover{
    margin-top: -3px;
    margin-left: 15%;
    margin-right: 15%;
    background-color: rgb(228, 212, 183);

}

.overlay{
    position:fixed;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    display: grid;
    grid-template-columns: 5% 90% 5%;
    grid-template-rows: 5% 90% 5%;
}


.overlay img{
    object-fit: contain;
    width: 100%;
    height: 100%;
    grid-column: 2/3;
    grid-row: 2/3;

}

.hidden{
    display: none;
}

footer{
    background-color: darkred;
    padding-top: 15px;
    padding-bottom: 5px;
    text-align: center;
}

@media screen and (max-width: 800px) {
.info{
    margin-left: 15%;
    margin-right: 15%;
    
}
.gamelist{
    margin-left: 15%;
    margin-right: 15%;
}

.subtitle{
    flex-direction: column;
    align-content: flex-end;
}

.grade{
    align-self:flex-end;
}
.grade img{
    margin-left: 0px;
}
.played{
    text-align: right;
}
.content{
    flex-direction: column;
    /* max-height: 500px; */
}
.hidden{
    max-height: 0px;
}
.description_container{
    padding-right: 0;
}
.screenshot_container{
    width: 100%;
}
.screenshot{
    width: 100%;
    height: auto;
    
}
}

@media screen and (max-width: 600px) {
.info{
    margin-left: 5%;
    margin-right: 5%;
    
}
.gamelist{
    margin-left: 5%;
    margin-right: 5%;
}

.hidden{
    max-height: 0px;
}
}