:root {
    --basic-distance: 16px;
    --background-color: #ffffff;
    --text-color: #333;
    --primary-color: #603F8B;
    --secondary-color: #FCD8C5;
}

/* General */
body,
html {
    margin: 0;
    padding: 0;
    height: 100%;
    width: 100%;
    font-family: 'Playfair Display', sans-serif;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-color);
    background-color: var(--background-color);
    box-sizing: border-box;
    padding: var(--basic-distance);

}

/* Header */

header,
main,
footer {
    width: 1280px;
    max-width: 100%;
}

header {
    appearance: none;
    margin-top: 0px;
    padding: var(--basic-distance);
    border-radius: 0px;
    background-color: #E0FFFF;
    position: fixed;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 2;
    top: 0;

}

main {
    flex: 1;
    margin-top: 50px;

}

.header-element {
    display: flex;
    align-items: center;
    gap: var(--basic-distance);
}

h1 {
    font-family: 'Playfair Display';
    font-size: 30px;
    color: var(--primary-color);

}

.header-element__logo img {
    width: 150px;
    margin: 0;
    display: flex;
    gap: var(--basic-distance);
}


/* navbar */

nav ul {
    display: flex;
    list-style: none;
    padding: 0;
}

nav ul li {
    margin: 1rem;
}

nav ul li a {
    text-decoration: none;
    color: var(--primary-color);
    font-size: 18px;
}

nav ul li a:hover {
    color: var(--secondary-color);
}

/* Hamburger/Cross icon styles */
.menu-icon {
    top: var(--basic-distance);
    display: none;
    position: relative;
    width: 20px;
    height: 2px;
    background: var(--primary-color);
}

.menu-icon::before,
.menu-icon::after {
    content: "";
    position: absolute;
    left: 0;
    height: 2px;
    width: 100%;
    background: var(--primary-color);
    transition: all 0.3s ease;
}

.menu-icon::before {
    top: -10px;
}

.menu-icon::after {
    bottom: -10px;
}

#menu-toggle:checked~.menu-icon {
    background: transparent;
}

#menu-toggle:checked~.menu-icon::before {
    transform: rotate(45deg);
    top: 0;
}

#menu-toggle:checked~.menu-icon::after {
    transform: rotate(-45deg);
    bottom: 0;
}

#menu-toggle {
    top: var(--basic-distance);
    position: absolute;
    width: 30px;
    height: 30px;
    opacity: 0;
    cursor: pointer;
    z-index: 2;
}

#menu-toggle:checked~nav ul {
    display: flex;
}

/* main home */

.background-image {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    width: 100%;
    max-width: 1280px;
    height: 100%;
    min-height: 500px;
    z-index: 1;
    padding: 0 16px;


}

.background-image.home {
    background-image: url(../images/background.jpg);
}



.welcome {
    text-align: center;
    padding: 50px;

}

.pilates {
    font-family: 'Playfair Display';
    font-size: 20px;
    color: var(--primary-color);
    line-height: 30px;
    margin: 300px 50px 20px 5px;

}


.background-image-about {
    width: 100%;
    margin-top: 50px;
}

/* main about */

.linehight {
    text-align: justify;
}

.about {
    line-height: 32px;
    font-family: sans-serif;

}



/* main history */
.machine {
    width: 100%;
    height: 500px;
    object-fit: cover;
    margin-top: 50px;
}



.history {
    font-family: sans-serif;
    line-height: 32px;
    text-align: justify;
    margin-bottom: 50px;


}

/* main video */
video {
    width: 100%;
    text-align: justify;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
}

.video-container {
    margin-top: 100px;
}

.start {
    text-align: center;
}

/* main contact */

.figure2 {
    float: right;
}

.contact {
    text-align: center;

}

.questions {
    line-height: 50px;
    margin-top: 50px;
}

form {
    display: block;
    margin-top: 0em;
    unicode-bidi: isolate;
}

form input {
    width: 250px;
    padding: 8px;
    box-sizing: content-box;
    border-radius: 4px;

}

form label,
form input {
    left: 24%;
    display: block;
    margin-bottom: 8px;
}

form {
    text-align: center;
}

input {
    margin: 0 auto;
    display: block;
}

/*main submit*/
.heart {
    width: 28px;
    height: 28px;
}

.submit {
    text-align: center;
    font-style: italic;
    line-height: 50px;
    color: var(--primary-color);
    margin-top: 150px;
}

/*main privacypolicy*/
.text-format {
    margin-top: 100px;
}

.privacy {
    font-family: sans-serif;
    line-height: 30px;

}

/* Footer */

footer {
    appearance: none;
    padding: var(--basic-distance);
    margin-bottom: 10px;
    border-radius: 0px;
    background-color: #E0FFFF;
    font-size: 18px;
    font-weight: 100;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

.table_footer {
    justify-content: right;
}

#company {
    color: var(--primary-color);
}

.social {
    height: 20px;
}

.self_align_right {
    align-content: space-between;

}

a:hover {
    color: var(--secondary-color);
}

.responsive-table {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    margin: 0;
    padding: 0;
    gap: var(--basic-distance);

}

.responsive-table li {
    width: 256px;

}

/* Media query: tablets and larger (768px) */

@media (max-width: 768px) {
    header {
        align-items: flex-start;
        max-height: 100px;

    }

    .header-element.title {
        align-items: flex-start;
    }

    .header-element.title h1 h2 {
        font-size: 1.5rem;
    }

    .header-element.title img {
        width: 50px;
        height: 50px;
    }

    #menu-toggle,
    .menu-icon {
        display: block;
    }

    nav ul {
        position: absolute;
        top: 80px;
        right: 0px;
        display: none;
        flex-direction: column;
        align-items: center;
        background-color: #E0FFFF;
        z-index: 200;
        width: 100%;
    }

    nav ul li {
        margin-bottom: 1em;
    }

    #photos {
        column-count: 2;
    }

    .submit {
        max-width: 410px;
    }

    .pilates {
        margin: 100px 50px 200px 5px;
    }

}

@media (max-width: 320px) {
    body {
        font-size: 14px;

    }

    .horizontal img {
        object-fit: cover;

    }

    header {
        padding: 0px;

    }

    .responsive-table li {
        width: 100%;

    }

    .welcome {
        font-size: 24px;
        bottom: 500px;

    }

    .pilates {
        font-size: 14px;
        line-height: 18px;
        margin: 100px 50px 20px 5px;

    }

    .video {
        display: flex;
        flex-wrap: wrap;
    }
}