@font-face {
    font-family: 'Jost';
    src: url('../fonts/Jost/Jost-VariableFont_wght.ttf') format('truetype');
}

@font-face {
    font-family: 'Bittersweet';
    src: url('../fonts/BittersweetNF/BittersweetNF.ttf') format('truetype');
}

* {
    box-sizing: border-box;
}

:root {
    --background-color: #0e0d0a;
    --text-color: #ffffff;
    --red: #800000;

    background-color: var(--background-color);
    color: var(--text-color);
    margin: 0;
    padding: 0;

    font-size: 16px;
}

.centered {
    display: flex;
    justify-content: center;
    text-align: center;
}

.section-headline {
    color: var(--red);
    font-family: 'Jost', serif;
    font-size: 0.9em;
    text-transform: uppercase;
}

.color-red {
    color: var(--red);
}

.uppercase {
    text-transform: uppercase;
}

.font-small {
    font-size: 0.9em;
}

.section {
    padding: 0.5em 0;
    margin: 0 0 1em 0;

    @media (min-width: 700px) {
        padding: 2em 0;
        margin: 0 0 2em 0;
    }
}

.inner-frame {
    max-width: 1160px;
    width: 100%;
    height: auto;
}

.line-height-3 {
    line-height: 3em;
}

.reservation-sent {
    p {
        text-align: center;
    }
}

.privacy-policy {
    @media (max-width: 1200px) {
        width: 90vw;
    }

    a:link, a:active, a:visited {
        color: var(--text-color);
        text-decoration: underline;
    }
    ul {
        li {
            text-align: left;
        }
    }
}

h1 {
    font-family: 'Bittersweet', cursive;
    font-weight: normal;
    /*font-size: 2.2em;*/
    @media (min-width: 500px) {
        font-size: 2.5em;
    }
    @media (min-width: 500px) {
        font-size: 3em;
    }
    @media (min-width: 750px) {
        font-size: 4em;
    }
    @media (min-width: 1000px) {
        font-size: 6em;
    }
    margin: 0 0 0.3em 0;

    span.red {
        color: var(--red);
        font-weight: 700;
    }
}

h2 {
    font-family: 'Bittersweet', cursive;
    font-size: 2.2em;
    @media (min-width: 700px) {
        font-size: 4em;
    }
    font-weight: 400;
    text-align: center;
    margin: 0 0 0.3em 0;
    @media (min-width: 700px) {
        margin: 0 0 0.7em 0;
    }
    padding: 0;
}

.reservation-button-mobile {
    @media (min-width: 700px) {
        display: none;
    }
    .reservation-button {
        color: var(--text-color);
        border: 2px solid var(--text-color);
        padding: 1.0em 1.5em;
        text-decoration: none;
        text-transform: uppercase;
    }
}

.social-media-mobile {
    @media (min-width: 700px) {
        display: none;
    }
    a:link, a:active, a:visited {
        display: inline-block;
        margin-top: 1em;
        margin-right: 2em;
        &:last-child {
            margin-right: 0;
        }
        img {
            width: 2em;
            height: 2em;
        }
    }
}

table.opening-hours {
    /*border: 2px solid blue;*/

    tr {
        td {
            padding: 0.4em 1em;
            width: 12em;

            &:first-child {
                text-align: right;
            }

            &:last-child {
                text-align: left;
            }
        }
    }
}

p {
    line-height: 2.2em;
    text-align: justify;
}

footer {
    border-top: 1px solid grey;
    margin: 1em 0 0 0;
    padding: 2em;
    color: grey;

    @media (min-width: 700px) {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }

    a:link, a:active, a:visited {
        color: grey;
    }

    .left {
        grid-column: 1;
        text-align: left;
    }

    .center {
        grid-column: 2;
        text-align: center;

        p {
            text-align: center;
        }
    }

    .right {
        grid-column: 3;
        text-align: right;

        p {
            text-align: right;
        }
    }
}

body {
    font-family: 'Jost', serif;

    margin: 0;
    padding: 0;

    .small-red {
        color: var(--red);
        text-transform: uppercase;
        font-size: 0.9em;
    }

    .header-contact {
        font-weight: 400;
        font-size: 0.9em;
        padding: 1em;
        border-bottom: grey solid 1px;

        display: grid;
        grid-template-columns: 2fr 3fr;
        grid-template-rows: 1fr;

        a:link, a:active, a:visited {
            color: var(--text-color);
            text-decoration: none;
        }

        a:hover {
            color: var(--text-color);
            text-decoration: underline;
        }

        .left {
            grid-column: 1;

            span.address {
                &:before {
                    content: "";
                    display: inline-block;
                    width: 1.5em;
                    height: 1.5em;
                    background-size: contain;
                    background-image: url('../icons/map-marker.svg');
                    background-repeat: no-repeat;
                    margin-right: 0.5em;
                    vertical-align: text-bottom;
                }
            }
        }

        .right {
            grid-column: 2;

            text-align: right;

            span.email {
                padding: 2em;

                &:before {
                    content: "";
                    display: inline-block;
                    width: 1.5em;
                    height: 1.5em;
                    background-size: contain;
                    background-image: url('../icons/mail.svg');
                    background-repeat: no-repeat;
                    margin-right: 0.5em;
                    vertical-align: text-bottom;
                }
            }

            span.telephone {
                padding: 2em;

                &:before {
                    content: "";
                    display: inline-block;
                    width: 1.5em;
                    height: 1.5em;
                    background-size: contain;
                    background-image: url('../icons/telephone.svg');
                    background-repeat: no-repeat;
                    margin-right: 0.5em;
                    vertical-align: text-bottom;
                }
            }
        }
    }

    .header-title {
        @media (max-width: 700px) {
            display: none;
        }
        @media (min-width: 700px) {
            display: grid;
        }
        grid-template-columns: 1fr 1fr 1fr;
        grid-template-rows: 1fr;

        a:link, a:active, a:visited, a:hover {
            text-decoration: none;
            color: var(--text-color);
        }

        .left {
            grid-column: 1;
            display: flex;
            align-items: center;
            justify-content: left;
            padding: 0;
            margin: 0;

            img {
                width: 2.5em;
                height: 2.5em;
                margin-right: 2.5em;
                vertical-align: text-bottom;
            }
        }

        .center {
            grid-column: 2;
            text-align: center;

            img {
                width: 190px;
                height: 190px;
            }
        }

        .right {
            grid-column: 3;
            display: flex;
            align-items: center;
            justify-content: right;

            span.reservation {
                border: 2px solid var(--text-color);
                padding: 1.0em 1.5em;
            }
        }

    }

    .content-welcome {
        position: relative;
        width: fit-content;
        max-width: 1160px;
        overflow: hidden;
        margin: 0 auto 3em auto;

        video {
            display: block;
            max-width: 110%;
            margin: 0 auto;
            padding: 0 1em;
        }

        .welcome-message {
            position: absolute;
            display: flex;
            flex-direction: column;
            justify-content: center;
            align-items: center;
            top: 0;
            left: 0;
            z-index: 10;
            text-align: center;
            width: 100%;
            height: 100%;
            background-color: rgba(0, 0, 0, 0.7);

            .small {
                margin-top: 0.2em;
                font-size: 1.0em;
                @media (min-width: 700px) {
                    margin-top: 0.5em;
                    font-size: 1.5em;
                }
            }
        }
    }

    .content-opening-hours, .content-agentoscar, .content-reservation {
        text-align: center;
        margin: 0 0 4em 0;
    }

    .content-agentoscar {

        max-width: 1160px;

        img {
            box-sizing: border-box;
        }
        @media (max-width: 999px) {
            .center {
                margin: 1em auto;
                width: 80vw
            }

            .left, .right {
                img {
                    width: 90vw;
                    height: auto;
                }
            }
        }
        @media (min-width: 1000px) {
            display: grid;
            grid-template-columns: 2fr 3fr 2fr;
            grid-template-rows: 1fr;

            .left {
                grid-column: 1;
            }

            .center {
                grid-column: 2;
                padding: 0 4em;
            }

            .right {
                grid-column: 3;
            }

            .left, .right {
                img {
                    width: 100%;
                    height: auto;
                }
            }
        }
    }


    .content-reservation {
        width: 100%;
        max-width: 1160px;

        form {
            @media (max-width: 999px) {
                width: 80vw;
                margin: 0 auto;
            }
            @media (min-width: 1000px) {
                width: 100%;
            }

            /* Honeypot */
            div {
                &:first-child {
                    display: none;
                }
            }

            label {
                display: block;
                text-align: left;
            }

            input[type="text"], input[type="email"], textarea {
                width: 100%;
                padding: 0.5em;
                margin: 0.5em 0;
                border: none;
                border-bottom: 1px solid grey;
                border-radius: 0.2em;
                background-color: var(--background-color);
                color: var(--text-color);
                outline: none;
            }

            input[type="submit"] {
                background-color: var(--red);
                border-radius: 0;
                border: none;
                color: white;
                padding: 1.5em 2em;
            }
        }
    }
}