@import "{{ site.theme }}";
* {
    box-sizing: border-box;
    list-style-type: none;
    border: none;
    margin: 0;
    padding: 0;
}

body {
    background-color: #ffb8b8;
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: auto;
}

.portfolio,
.contact,
.about {
    color: #172b4d;
    font-weight: 600;
    font-size: 1em;
    font-family: "Noticia Text", serif;
}

.headline {
    padding-top: 160px;
}

.small-text {
    color: #172b4d;
    font-style: normal;
    font-size: 1.4em;
    font-family: "Noticia Text", serif;
    line-height: 1.5em;
}

.text1 {
    font-weight: 800;
    color: #172b4d;
    font-family: "Noticia Text", serif;
    font-size: 3em;
    line-height: 1em;
}

.text2 {
    color: #ff6163;
    font-weight: 800;
    font-family: "Noticia Text", serif;
    font-size: 2.5em;
    line-height: 1.5em;
}

.text {
    color: #172b4d;
    font-style: normal;
    font-family: "Noticia Text", serif;
    font-size: 2em;
    line-height: 1.5em;
}

.card1 {
    border: 1px solid #d0d9d4;
    border-radius: 8px;
}

.card-top {
    width: 369px;
    height: 200px;
    border-radius: 8px;
}

.card-title {
    font-family: "Noticia Text", serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1em;
    line-height: 1em;
    color: #172b4d;
}

.text3,
.text4,
.text5,
.text6 {
    background-color: #f9eaea;
    border-radius: 4px;
    margin: 0 8px;
    font-family: "Noticia Text", serif;
    font-weight: 600;
    font-size: 1em;
    line-height: 1em;
    font-style: normal;
    padding: 12px;
}

.btn {
    background-color: #ff6163;
    border-radius: 4px;
    padding: 12px;
}

.span {
    font-family: "Noticia Text", serif;
    font-weight: 500;
    font-size: 1.5em;
    line-height: 1em;
    font-style: normal;
    color: #fff;
}

a:hover {
    text-decoration: none;
}

.title {
    font-family: "Noticia Text", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 2.5em;
    line-height: 1em;
    color: #172b4d;
}

.description {
    font-family: "Dancing Script", cursive;
    font-style: normal;
    font-weight: normal;
    font-size: 2.5em;
    line-height: 130%;
    color: #172b4d;
    letter-spacing: 0.05em;
}

.languages {
    padding: 4px 8px;
}

.language-card {
    background-color: #f9eaea;
    border-radius: 8px;
    border: 1px solid #c1c7d0;
    height: 250px;
}

.topic {
    font-family: "Noticia Text", serif;
    font-style: normal;
    font-weight: 600;
    font-size: 1.5em;
    line-height: 1.5em;
    color: #172b4d;
}

.contact-text {
    font-family: "Noticia Text", serif;
    font-style: normal;
    font-weight: bold;
    font-size: 1.7em;
    line-height: 1.5em;
    color: #172b4d;
}

.area {
    border: 1px solid #60c095;
    box-sizing: border-box;
    border-radius: 4px;
}

.photo {
    height: 453px;
    max-width: 100%;
}

.section {
    margin-top: 0;
    padding: 10px 20px 20px;
}

.about-grid {
    display: grid;
    margin-top: 40px;
    grid-auto-columns: 1fr;
    grid-column-gap: 30px;
    grid-row-gap: 16px;
    grid-template-rows: auto;
    grid-template-columns: 0.5fr 1fr;
    margin-right: auto;
    margin-left: auto;
    justify-content: space-between;
}

.welcome {
    padding: 10px 12px;
}

.hamburger {
    padding: 8px;
}

.subtitle {
    font-family: "Noticia Text", serif;
    color: #fff;
    font-weight: 600;
    line-height: 1.57;
    font-size: 0.99rem;
    letter-spacing: 0.00714em;
}

.footer {
    background-color: #172b4d;
}

@media screen and (max-width: 991px) {
    .about-grid {
        grid-template-columns: minmax(auto, 1fr);
        grid-template-rows: auto minmax(auto, 3.75fr);
    }

    .image {
        align-self: auto;
        justify-self: center;
    }

    .photo {
        height: 800px;
    }
}

@media screen and (max-width: 575px) {
    .head,
    .form1 {
        display: none;
    }

    .row1,
    .languages,
    .footer,
    .form {
        display: flex;
        flex-direction: column;
    }

    .language {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .texts {
        display: flex;
        justify-content: center;
    }

    .subtitle {
        text-align: center;
    }
}
