/* základní styly stránky */

body {
    display: flex;
    flex-flow: column nowrap;
    font-family: 'Roboto', sans-serif;
    background-color: #111111;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

/* styl pro navigační lištu */
nav{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px;
    background-color: #222222;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1;
}

nav > a {
    display: flex;
    flex-direction: row;
    align-items: center;
    font-size: 28px;
    font-weight: bold;
    color: #e6312e;
}

nav > a > span{
    margin-left: 20px;
    text-shadow: 0 1px 0 #790000, 0 1px 0 #410000,
    0 1px 0 #790000, 0 1px 0 #410000,
    0 1px 0 #790000, 0 1px 0 #410000,
    0 1px 0 #790000, 0 1px 0 #410000,
    0 1px 0 #790000, 0 1px 0 #410000,
    0 1px 0 #790000, 0 1px 0 #410000,
    0 4px 8px rgba(0, 0, 0, 0.5);
}

.navbar-links {
    display: flex;
    flex-direction: row;
    justify-content: flex-end;
    align-items: center;
}

.navbar-links a {
    margin-right: 18px;
    font-size: 14px;
    color: #ffffff;
    text-decoration: none;
}

main section#about{
    background-image: url("../img/main_img.webp") ;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    height: 400px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#about .container{
    padding: 20px;
    max-width: 1000px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.08);
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(3.5px);
    -webkit-backdrop-filter: blur(3.5px);
}

#about .container h1{
    font-size: 44px;
    text-transform: uppercase;
    margin-bottom: 40px;
}

/* styly pro sekce s hrami */

#games {
    display: flex;
    flex-direction: column;
}

.game{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: fit-content;
    min-height: 380px;
    padding: 80px 40px;
    background: #2a2a2a;
}

.game:nth-child(2n){
    flex-direction: row-reverse;
    background: #1a1a1a;
}

.game:nth-child(2n) .game-icon{
    margin: 0 0 0 40px;
}

.game .game-icon {
    height: 100%;
    width: auto;
    max-height: 240px;
    border-radius: 10px;
    margin-right: 40px;
}

.game h2 {
    font-size: 26px;
    font-weight: bold;
    margin-bottom: 10px;
}

.game .game-container {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: space-between;
    min-height: calc(380px - 160px);
}

.game .game-buttons{
    display: flex;
    height: 34px;
    flex-direction: row;
    justify-content: flex-end;
}

.game:nth-child(2n) .game-buttons{
    justify-content: flex-start;
}

.game .game-buttons a{
    padding: 10px 16px;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    border: none;
    margin-right: 20px;
    cursor: pointer;
    text-decoration: underline;
    text-decoration-style: dotted;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    transition: all .5s ease;
}

.game .game-buttons a img{
    margin-right: 10px;
    transition: all .5s ease;
}

.game:nth-child(2n) .game-buttons a{
    margin: 0 20px 0 0;
}

.game .game-buttons a:last-child{
    background-color: #ffb700;
    color: #000000;
    font-size: 14px;
    text-decoration: none;
    margin: 0;
}

.game .game-buttons a img{
    filter: invert(1);
}

.game .game-buttons a:hover {
    margin-right: 0;
    background-color: #18440f;
    color: white;
}

.game .game-buttons a:hover img{
    filter: unset;
}

.game .game-description{
    font-size: 16px;
    line-height: 20px;
    margin-bottom: 20px;
    text-align: justify;
    max-width: 700px;
}

main #contacts{
    display: flex;
    flex-direction: column;
    background: #ffb60c;
    padding: 40px;
    align-items: center;
}

main #contacts h2{
    font-size: 26px;
    margin-bottom: 40px;
    color: black;
}

#contacts .contacts-container{
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

#contacts .contacts-container > a{
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid black;
    margin: 0 40px;
    background-repeat: no-repeat;
    background-size: 50%;
    background-position: center;
}

#contacts .contacts-container > a:hover{
    box-shadow: 0 0 30px -5px rgba(0,0,0,0.75);
    background-color: #ffc400;
}

#contacts .contacts-container > a.mail{
    background-image: url("../img/icons/social/mail_icon.svg");
}
#contacts .contacts-container > a.facebook{
    background-image: url("../img/icons/social/fb_icon.svg");
    background-size: 30%;
}
#contacts .contacts-container > a.instagram{
    background-image: url("../img/icons/social/instagram_icon.svg");
}
#contacts .contacts-container > a.youtube{
    background-image: url("../img/icons/social/youtube_icon.svg");
}

/* footer styly */

main footer{
    padding: 20px;
}

#footer .footer-links{
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#footer .footer-links a{
    text-decoration: underline;
}

@media (max-width: 640px) {
    .game, .game:nth-child(2n) {
        flex-direction: column;
        padding: 40px 20px;
    }

    .game:nth-child(2n) .game-buttons{
        justify-content: flex-end;
    }

    .game-description{
        margin: 30px 0 30px 0;
    }

    #contacts .contacts-container{
        flex-wrap: wrap;
    }

    #contacts .contacts-container > a{
        margin: 0 20px 20px 20px;
    }

    main section#about {
        height: 300px;
    }
}