/* Шрифты */
@import url('https://fonts.googleapis.com/css?family=Comfortaa:300,400,700|Pacifico&subset=cyrillic');

/* Основные стили (тут всё очевидно) */

* {
    box-sizing: border-box;
}

html {
    font-size: 20px;
    font-family: 'Comfortaa', sans-serif;
}

h1 {
    font-size: 3rem;
    margin: 0;
}

h2 {
    font-size: 2rem;
    margin: 0;
}

body {
    margin: 0;
    padding: 0;
    background-color: #263238;
    color: #eceff1;
    overflow-x: hidden;
}

a {
    color: #ffebad;
    text-decoration: none;
}

p {
    margin: 0;
}

.screen {
    height: 100vh;
    width: 100%;
}

.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;
}

footer {
    font-size: 0.75rem;
    padding: 1em;
    text-align: center;
}

footer .github a:hover {
    background: #191919;
    color: #fff;
}

/* Стили первого блока */

#title .title {
    position: relative;
    height: 19vmin;
    color: #ffebad;
    width: 70vw;
    margin: 0 auto;
    top: 35%;
    transform: translateY(-50%);
    text-align: right;
}

#title .title-1 {
    font-size: 12vmin;
    font-family: 'Pacifico', cursive;
    line-height: 1em;
    opacity: 0;
    transition: opacity 3s;
}

/* Для анимации */
#title .title-1.show {
    opacity: 1;
}

#title .title-2 {
    font-size: 7vmin;
    font-family: 'Open Sans', sans-serif;
    line-height: 1em;
    opacity: 0;
    transition: opacity 3s;
}

/* Для анимации */
#title .title-2.show {
    opacity: 1;
}

#title .down-arrow {
    width: 10vmin;
    height: 10vmin;
    line-height: 10vmin;
    position: absolute;
    left: 50%;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    color: #bbb;
    font-size: 6.5vmin;
    text-align: center;
    transform: translate(-50%, 10vmin);
    opacity: 0;
    transition: all .8s cubic-bezier(0, 0, 0.58, 1);
}

/* Для анимации */
#title .down-arrow.show {
    transform: translate(-50%, 0);
    opacity: 1;
}

/* Стили при меньших разрешениях экранов (уменьшенный размер шрифтов) */

@media (max-width: 800px) {
    html {
        font-size: 19px;
    }

    h1 {
        font-size: 2.5rem;
    }

    h2 {
        font-size: 1.75rem;
    }
}

@media (max-width: 600px) {
    html {
        font-size: 18px;
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.5rem;
    }
}

@media (max-width: 450px) {
    html {
        font-size: 17px;
    }
}

@media (max-width: 350px) {
    html {
        font-size: 16px;
    }
}