.form_row {
    margin: auto;
    padding: 15px;
    display: flex;
    text-align: center;
    justify-content: space-between;
    min-width: 200px;
}

.form_row label {
    font-size: 25px;
    width: auto;
    margin: auto 20px auto auto;
}

#choose_photo_label {
    margin-left: 10px;
    min-width: 200px;
}

.form_row_popis {
    margin: auto;
    border: 1px solid white;
    padding: 15px;
    display: flex;
    text-align: center;
    justify-content: space-between;
    min-width: 200px;
}

.form_row_popis label {
    text-align: left;
    min-width: 300px;
    font-size: 25px;
    width: auto;
    margin: auto 10px auto 10px;
}

.form_row_popis textarea {
    font-size: 20px;
    margin: auto 10px auto auto;
    max-width: 600px;
    width: 100%;
    min-height: 100px;
}

.form_row_popis input {
    font-size: 25px;
    margin: auto 10px auto auto;

}

#city {

    font-size: 20px;
}

#under_login_form {
    display: flex;
    width: 50%;
    margin: auto;
    text-align: center;
}

#under_login_form label {
    font-size: 25px;
    margin: auto;
    width: auto;
    text-align: center;
}

#under_login_form a {
    text-align: center;
}

.errorLogs {
    background-color: red;
    border: 2px solid darkred;
    font-size: 20px;
    text-align: center;
}

.save_city_block {
    display: flex;
}


.save_city_block input[type="checkbox"] {
    width: 20px;
    margin: auto 20px auto 10px;
    transform: scale(2.5);
    min-width: 30px;
    cursor: pointer;
}

.go_to_next_block {
    min-width: 100px;
    margin: auto 10px auto auto;
    width: 25%;
}

.go_to_next_block button {
    width: 100%;
    height: 50px;
    background-color: navy;
    border: 1px solid black;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

.image-preview {
    width: 300px;
    height: 150px;
    min-height: 100px;
    max-height: 200px;
    min-width: 100px;
    border: 2px solid gray;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    color: gray;
}

.image-preview__image {
    display: none;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
}

.form_row input[type="file"] {
    max-width: 300px;
    margin: auto;
    height: 150px;
    text-align: center;
    min-height: 100px;
    border: 1px solid royalblue;
    color: #b8b8b8;
    left: 0;
    top: 0;
    opacity: 0;
    position: absolute;
    font-size: 90px;
}

.drag-area {
    background-color: lightblue;
    min-height: 100px;
    margin: auto 10px auto 10px;
    max-width: 500px;
    border: 2px solid navy;
    width: 100%;
    border-radius: 5px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    height: 150px;
    min-width: 250px;
    max-height: 200px;
}

.drag-area.active {
    border: 2px solid yellow;
}

.drag-area span {
    font-size: 22px;
    font-weight: 500;
    color: #fff;
    margin: 10px 10px 15px 10px;
}

.drag-area button {
    padding: 10px 25px;
    margin-bottom: 10px;
    font-size: 20px;
    font-weight: 500;
    border: none;
    outline: none;
    background-color: darkslategray;
    color: white;
    border-radius: 5px;
    cursor: pointer;
}

.drag-area button:hover {
    background-color: royalblue;
    color: white;
}

.drag-area img {
    height: 100%;
    width: 100%;
    object-fit: cover;
    border-radius: 5px;
}

#map {
    border: 1px solid black;
    height: 300px;
    padding: 10px;
    width: 100%;
    color: black;
}

#map a {
    font-size: 12px;
}

.completed_buttons {
    display: flex;
    margin: auto;
}

.completed_buttons button {
    margin: auto 80px auto 80px;
    min-width: 200px;
    width: 100%;
    height: 70px;
    background-color: navy;
    border: 1px solid black;
    font-size: 1.5em;
    color: white;
    cursor: pointer;
}

.loader {
    margin: auto;
    border: 16px solid white;
    border-top: 16px solid blue;
    border-radius: 50%;
    width: 120px;
    height: 120px;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

#toFormBtn {
    text-align: center;
    margin: auto;
}

#toFormBtn button {
    min-width: 200px;
    width: 70%;
    height: 60px;
    margin: auto;
}

@media only screen and (max-width: 900px) {
    .form_row_popis {
        display: block;
    }

    .form_row {
        display: block;
    }

    .form_row_popis {
        display: block;
    }

    .form_row_popis label {
        margin-bottom: 20px;
    }

    #map {
        margin: auto;
        width: 90%;
    }

    .form_row_popis input {
        width: 90%;
    }

    .form_row_popis textarea {
        width: 90%;
    }

    .form_row label {
        margin-bottom: 20px;
    }

    .save_city_block label{
        margin-bottom: 0;
    }

    .drag-area {
        margin: auto auto 20px auto;
        width: 90%;
    }

    .image-preview {
        width: 90%;
        margin: auto;
    }
}