
*{
    box-sizing: border-box;
}
html{
    padding: 0;
    margin: 0;
}

body{
    width: 100%;
    height: 100vh;
    padding: 0;
    margin: 0;
    color: #c9c9c9;  
}

.overlay{
    position: fixed;
    background-color: #212122;
    width: 100%;
    height: 100%;
    opacity: 0.9;
    pointer-events: none;
    z-index: -1;
}

header{
    height: 150px;
}

#content{
    margin: 0;
    padding: 0;
    height: calc(100% - 150px);
    display: flex;
    flex-direction: column;
    justify-content: space-between;

}

main{
    width: 100%;
    max-width: 1600px;
    margin: 0 auto;
    padding: 2em;
}

footer{
    background: rgba(0, 0, 0, 1);
    padding: 0.5em 0;
    font-size: 16pt;
    text-align: center;
}

header h1 {    
    text-align: center;
    color: whitesmoke;
    font-family: 'Montserrat', sans-serif;
    font-size: 42pt;
    margin-top: 0;
    padding-top: 1em;
    

    text-shadow: 1px 1px 1px gray;
}

.card{
    background-color: rgb(56, 57, 59);
    height: 200px;
    margin: 1em auto;
    width: 100%;
    border-radius: 10px;
}

header h1::after{
    display: inline-block;
    margin-left: 0.5em;
    content: '🎮';
    transform: rotate(40deg);
    text-shadow: 1px 1px 1px whitesmoke;
}
 h1:hover::after{
    animation: rotate-ctl 0.8s 1 ease-in-out;
}

@keyframes rotate-ctl {
    0% {
      transform: rotate(40deg);
    }
    50% {
      transform: rotate(-40deg);
    }
    100% {
      transform: rotate(40deg);
    }
  }


.card a{
    display: block;
    width: 100%;
    height: 100%;
    border: none;
    padding: 1.2em;
    border-radius: 10px;
}

.card a:hover {
    border: 0.5em solid rgb(255, 255, 255, 0.3);
    padding: 0.7em;
}

.flex-box{
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.flex-box:last-child{
    align-self: flex-start;
}


@media screen and (min-width: 768px){
    
    h1::after{
        margin-left: 0.75em;    

    }    
    .flex-box{
        flex-flow: row wrap;
        justify-items: center;
        justify-content: center;
    }

    .card{
        height: 200px;
        margin: 1em;
        flex: 0 0 300px;
    }

    body{
        max-width: 100%;
    }

    main{
        max-width: 1600px;
        margin: 0 auto;
        padding: 1em;
    }
}


.card-container{
    height: 100%;
    width: 100%;

}

/*******************************
    Card options
*******************************/

#overleaf{
    background:#1e2530;
}


#overleaf .card-container{
    background: url(../img/overleaf_wide_colour_light_bg.png) no-repeat;

    background-size: contain;
    background-position: center;    
    background-blend-mode: luminosity, multiply;   
    background-color:#1e2530;
}


#hedgedoc{
    background: #831b0b;
}

#hedgedoc .card-container{
    background: url(../img/hedgedoc_banner_color_vertical.svg) no-repeat ;
    background-size: contain;
    background-position: center;  
}