@import url('https://fonts.googleapis.com/css?family=Comfortaa:300,400,700&subset=cyrillic');

* {
    box-sizing: border-box;
}

body {
    font-size: 25px;
    font-family: 'Comfortaa', sans-serif;
}

.card {
    height: calc(100vh - 2em);
    width: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.container {
    position: relative;
    max-width: 1000px;
    margin: 0 auto;
}

.bg-image {
    position: absolute;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
}

.row {
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

#card_1 {
    height: 100vh;
    background-color: #6B774A;
}

#card_1 .bg-image {
    height: 100vh;
}

#card_1 #title {
    position: relative;
    height: 19vmin;
    color: #eee;
    text-shadow: 0 0 2em black;
    width: 70vw;
    margin: 0 auto;
    top: 55%;
    transform: translateY(-50%);
    text-align: right;
    font-family: 'Open Sans', sans-serif;
}

#card_1 #title-1 {
    font-size: 12vmin;
    line-height: 1em;
    display: none;
}

#card_1 #title-2 {
    font-size: 7vmin;
    line-height: 1em;
    display: none;
}

#card_1 #down-arrow {
    width: 10vmin;
    height: 10vmin;
    line-height: 10vmin;
    position: absolute;
    left: 50%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #eee;
    font-size: 6.5vmin;
    text-align: center;
    display: none;
    transform: translate(-50%, 0);
}

#card_2 {
    background-color: #a5caff;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
}

#card_2 > div {
    height: 100%;
    width: 50%;
    padding: 2em;
    text-align: center;
    margin: 0;
    display: flex;
    flex-direction: column;
    user-select: none;
}

#card_2 > div h1 {
    margin-top: 15%;
    font-weight: bold;
    font-size: 2.5em;
    color: #eee;
}

#card_2 > div p {
    margin-top: 15%;
    font-size: 1.5em;
    color: #333;
}

#card_4 > div {
    width: 100%;
    height: 100%;
    text-align: center;
    display: flex;
    justify-content: center;
    flex-direction: column;
}

#card_3 {
    height: 200vh;
    background-color: #a5e6ff;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    padding: 2vw;
}

#card_3 .row {
    flex-wrap: wrap;
}

#card_3 .avatar {
    position: relative;
    width: 17.5vw;
    height: 17.5vw;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    border: 5px solid white;
    border-radius: 100%;
    margin: 3vw;
    cursor: pointer;
    user-select: none;
}

#card_3 .row:last-child .avatar {
    width: 25vw;
    height: 25vw;
}

#card_3 .avatar.play_me:after {
    position: absolute;
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    border-radius: 100%;
    background-color: rgba(0,0,0,0.5);
    background-size: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-image: url(/img/play.svg);
}

#card_4 {
    background-color: #a5b2ff;
    display: flex;
    justify-content: space-evenly;
    flex-direction: row;
}

#card_4 a {
    text-decoration: none;
    font-size: 2em;
}

#card_4 h1 {
    margin-bottom: 1em;
    color: #333;
}

#card_4 .telegram_icon {
    height: 5em;
    width: 5em;
    margin: 0 auto;
    background-size: cover;
    background-position: center;
    background-image: url(/img/telegram.png);
}

@media screen and (max-width: 1200px) {
    #card_2 > div h1 {
        font-size: 2em;
    }

    #card_2 > div p {
        font-size: 1.3em;
    }
}

@media screen and (max-width: 800px) {
    #card_2 {
        flex-direction: column;
        font-size: 20px;
    }

    #card_2 > div {
        width: 100%;
        height: 50%;
        padding: 1em;
    }

    #card_2 > div h1 {
        margin-top: 5vh;
    }

    #card_2 > div p {
        margin-top: 5vh;
    }

    #card_4 a {
        font-size: 1.5em;
    }
}

@media screen and (orientation: portrait) {
    #menu {
        font-size: 3.5vw;
    }

    .card {
        height: calc(100vh - 7vw);
    }

    #card_1 .bg-image {
        background-position: -20vw;
    }

    #card_3 {
        height: 400vh;
    }

    #card_3 .avatar {
        width: 37.5vw;
        height: 37.5vw;
        margin: 5vw;
    }

    #card_3 .row:last-child .avatar {
        width: 60vw;
        height: 60vw;
    }

    #card_4 {
        font-size: 6vw;
    }
}

@media screen and (max-height: 550px) {
    #card_2 > div h1 {
        margin-top: 0;
    }

    #card_2 > div p {
        margin-top: 0;
    }
}
