/*
Only reusable css code here

CSS to detect browser
----------------------------
Chrome version 29 and above
----------------------------
@media screen and (-webkit-min-device-pixel-ratio:0)
and (min-resolution:.001dpcm) {
    selector{ property:value; }
}
 */

* {
    margin: 0;
    padding: 0;
    box-sizing: inherit;
}

html, body {
    position: absolute;
    width: 100%;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    box-sizing: border-box;
    font-family: var(--main-font);
    font-size: calc(15px + (24 - 15) * (100vw - 365px)/(2000 - 365));
}

header {
    position: absolute;
    top: 0;
    display: flex;
    width: 100%;
    box-shadow: 0px 1px 25px gray;
}

footer {
    position: absolute;
    display: flex;
    justify-content: space-between;
    flex-direction: column;
    bottom: 0;
    width: 100%;
    height: 200px;
    color: var(--nav-font-color);
    background-color: var(--nav-menu-main);
    box-shadow: 0px 1px 25px gray;
    z-index: 99999;
}

.page-content {
    display: block;
    position: absolute;
    width: 100%;
    height: 1250px;
    top: 74px;
    bottom: 200px;
}

.page-row {
    position: relative;
    width: 100%;
}

.main-button {
    background: var(--main-color-light);
    color: var(--main-color-dark);
    border: 1px solid var(--main-color-light);
    border-radius: 8px;
    padding: 15px;
    font-weight: bold;
    cursor: pointer;
    box-shadow: 0px 1px 7px gray;
}

.main-button:hover {
    transform: scale(1.2);
}

.cs-field {
    padding: 7px 5px;
    border: 1px solid black;
    border-radius: 10px;
    width: 240px;
    height: 45px;
    font-size: 18px;
    font-family: inherit;
    outline: none;
}

.message-error, .message-success {
    width: 100%;
    text-align: center;
    padding: 10px;
    margin-bottom: 10px;
}

.error {
    border: 1px solid red !important;
}

.message-error {
    background: rgba(255,0,0,0.3);
}

.message-success {
    background: rgba(0,255,0,0.3);
}

.message-neutral {
    background: rgba(0,200,255,0.3);
}

.modal {
    position: fixed;
    width: 100vw;
    height: 100vh;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    top: 0;
    left: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    &.open {
        visibility: visible;
        opacity: 1;
        transition-delay: 0s;
    }
    & .modal-bg {
        position: absolute;
        background: black;
        opacity: 0.7;
        width: 100%;
        height: 100%;
    }
    & .modal-container {
        border-radius: 10px;
        background: var(--main-color-dark);
        color: var(--main-color-light);
        position: relative;
        padding: 30px;
        width: 790px;
        height: 480px;
    }
    & .modal-close {
        position: absolute;
        right: 15px;
        top: 15px;
        outline: none;
        appearance: none;
        color: var(--main-color-light);
        background: none;
        border: 0px;
        font-weight: bold;
        cursor: pointer;
    }
}

select {
    appearance: none;
    background-color: transparent;
    border: none;
    /*padding: 0 1em 0 0;*/
    margin: 0;
    width: 100%;
    height: 100%;
    font-family: inherit;
    font-size: inherit;
    cursor: inherit;
    line-height: inherit;
    outline: none;
    grid-area: select;
}

.select {
    display: grid;
    max-width: 240px;
    height: 45px;
    border: 1px solid var(--field-border);
    border-radius: 0.25em;
    padding: 0.25em 0.4em;
    font-size: 1.25rem;
    cursor: pointer;
    line-height: 1.1;
    background-color: #fff;
    background-image: linear-gradient(to top, #f9f9f9, #fff 33%);
    grid-template-areas: "select";
    align-items: center;
    outline: none;
}

.select::after {
    content: "";
    display: inline-block;
    width: 0.8em;
    height: 0.5em;
    background-color: var(--select-arrow);
    clip-path: polygon(100% 0%, 0 0%, 50% 100%);
    justify-self: end;
    grid-area: select;
}

.form-container {
    padding: 60px 200px;
    & .field-row {
        display: flex;
        gap: 20px;
        margin-bottom: 30px;
    }

    & .field-row:last-child {
        justify-content: center;
    }

    & .field-row label {
        display: flex;
        align-items: center;
    }
}

@media screen and (max-width: 600px) {
    .field-row {
        flex-direction: column;
    }
}