* {
    box-sizing: border-box;
}

html {
    height: 100%;
}

body {
    margin: 5px;
    background-color: white;
    height: 100%;
}

.sorry,
.thanks {
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.thanks {
    height: auto;
}

.sorry h2,
.thanks h2 {
    font-family: cursive;
}

.wrapper {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    height: 100%;
}

.shown-block {
    display: block;
}

.shown-flex {
    display: flex;
}

.header {
    width: 100%;
}

.header h1,
.button-box h2 {
    text-align: center;
}

.three {
    background: transparent;
    padding: 0 20px 25px 20px;
    text-align: center;
}

.three h1 {
    font-family: 'Merriweather', serif;
    position: relative;
    color: #FCF2E5;
    background: #90806A;
    font-size: 1.7rem;
    font-weight: normal;
    padding: 10px 40px;
    display: inline-block;
    margin: 0;
    line-height: 1.2;
    border-radius: 10px;
}

.three h1:before {
    content: "";
    position: absolute;
    width: 100%;
    height: 4px;
    left: 0;
    bottom: -15px;
    background: #90806A;
}

.three h1:after {
    content: "";
    position: absolute;
    height: 0;
    width: 80%;
    border-top: 10px solid #90806A;
    border-left: 12px solid transparent;
    border-right: 12px solid transparent;
    left: 50%;
    transform: translateX(-50%);
    bottom: -25px;
}

.content {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

textarea {
    width: 80%;
    margin: 10px auto;
    resize: vertical;
    padding: 15px;
    border-radius: 15px;
    border: 0;
    box-shadow: 4px 4px 10px rgba(0, 0, 0, 0.06);
    height: 150px;
}

.rating-area {
    overflow: hidden;
    display: flex;
    justify-content: center;
    flex-direction: row-reverse;
    width: 265px;
    margin: 10px auto;
}

.rating-area:not(:checked)>input {
    display: none;
}

.rating-area:not(:checked)>label {
    float: right;
    width: 42px;
    padding: 0;
    cursor: pointer;
    font-size: 46px;
    line-height: 32px;
    color: rgb(136, 132, 132);
    text-shadow: 1px 1px rgb(129, 129, 129);
}

.rating-area:not(:checked)>label:before {
    content: '★';
}

.rating-area>label {
    text-align: center;
}

.rating-area>input:checked~label {
    color: gold;
    text-shadow: 1px 1px #c60;
}

.rating-area:not(:checked)>label:hover,
.rating-area:not(:checked)>label:hover~label {
    color: gold;
}

.rating-area>input:checked+label:hover,
.rating-area>input:checked+label:hover~label,
.rating-area>input:checked~label:hover,
.rating-area>input:checked~label:hover~label,
.rating-area>label:hover~input:checked~label {
    color: gold;
    text-shadow: 1px 1px goldenrod;
}

.rate-area>label:active {
    position: relative;
}

.complete {
    width: 120px;
    height: 75px;
    margin: 0 auto;
}

svg {
    width: 100%;
    height: 100%;
}

path {
    stroke-dasharray: 99.47578430175781;
    stroke-dashoffset: -99.47578430175781;
    fill: transparent;
}

svg.animate path {
    animation: 1.7s ease forwards draw;
    opacity: 1;
}

button {
    cursor: pointer;
    min-width: 200px;
    padding: 15px 5px;
    text-transform: uppercase;
    vertical-align: middle;
    background: #3da35a;
    border: none;
    color: #ffffff;
    font-weight: 600;
    border-radius: 5px;
    box-shadow: 0 0 10px rgb(56, 100, 38);
    transition: all 1s;
}

button:hover {
    box-shadow: 0 0 25px rgb(56, 100, 38);
}

button:focus {
    outline: none;
}

.button-box {
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
}

.button-box>a {
    margin: 20px auto;
    font-size: 0.8rem;
}

.button-box>h2 {
    width: 70%;
    font-family: sans-serif;
    color: rgb(47, 45, 45);
}

a.btn {
    width: 35%;
    font-weight: 700;
    font-family: sans-serif;
    font-size: 1rem;
    color: white;
    text-decoration: none;
    text-align: center;
    padding: .8em 1em calc(.8em + 3px);
    border-radius: 3px;
    transition: 0.2s;
}

a.btn_trip {
    background: rgb(64, 199, 129);
    box-shadow: 0 -3px rgb(53, 167, 110) inset;
}

a.btn_trip:hover {
    background: rgb(53, 167, 110);
}

a.btn_trip:active {
    background: rgb(33, 147, 90);
    box-shadow: 0 3px rgb(33, 147, 90) inset;
}

a.btn_yandex {
    color: black;
    background: rgb(255, 204, 0);
    box-shadow: 0 -3px rgb(175, 144, 6) inset;
}

a.btn_yandex:hover {
    background: rgb(175, 144, 6);
}

a.btn_yandex:active {
    background: rgb(255, 191, 0);
    box-shadow: 0 3px rgb(255, 191, 0) inset;
}

a.btn_google {
    background: rgb(66, 133, 244);
    box-shadow: 0 -3px rgb(46, 92, 167) inset;
}

a.btn_google:hover {
    background: rgb(46, 92, 167);
}

a.btn_google:active {
    background: rgb(45, 126, 255);
    box-shadow: 0 3px rgb(45, 126, 255) inset;
}

a.btn_2gis {
    background: rgb(169, 203, 42);
    box-shadow: 0 -3px rgb(131, 158, 34) inset;
}

a.btn_2gis:hover {
    background: rgb(131, 158, 34);
}

a.btn_2gis:active {
    background: rgb(206, 250, 47);
    box-shadow: 0 3px rgb(206, 250, 47) inset;
}

.footer {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.hidden {
    display: none;
}

@media (max-width: 1024px) {
    .button-box h2 {
        font-size: 1rem;
    }
}

@media (max-width: 768px) {
    .three h1 {
        font-size: 1.5rem;
    }
}

@media (max-width: 600px) {
    .btn {
        width: 65%;
    }
}

@media (max-width: 500px) {
    .three h1 {
        font-size: 1.2rem;
    }
    .button-box h2 {
        font-size: 1rem;
    }
}

@media (max-width: 400px) {
    .three h1 {
        font-size: 1.1rem;
        padding: 10px 30px;
    }
    .button-box h2 {
        font-size: .7rem !important;
    }
    .button-box .btn {
        width: 50%;
    }
}

@keyframes draw {
    0% {
        opacity: 1;
        stroke-dashoffset: -99.47578430175781;
        fill: transparent;
        transform: translateY(0);
    }
    35% {
        stroke-dashoffset: 0;
        fill: transparent;
    }
    60% {
        fill: #3da35a;
        opacity: 1;
        transform: translateY(0);
    }
    100% {
        fill: #3da35a;
        stroke-dashoffset: 0;
        opacity: 0;
        transform: translateY(-10px);
    }
}