/* Google Fonts import - from https://fonts.google.com/ */
@import url('https://fonts.googleapis.com/css2?family=Barlow:wght@300&family=Bebas+Neue&display=swap');

/* general */

* {
    margin: 0;
    padding: 0;
    border: none;
}

body {
    font-family: Barlow, sans-serif;
    font-weight: 300;
    color: #26014d;
}

/* header and logo */

header {
    font-family: Barlow, sans-serif;
    font-weight: 300;
    text-transform: uppercase;
    height: 70px;
    width: 100%;
    background-color: #fff;
    position: fixed;
    top: 0;
}

header i {
    color: #0E7584;
}

.header-logo {
    font-family: Bebas Neue, sans-serif;
    color: #26014d;
    letter-spacing: 2px;
    float: left;
    font-size: 300%;
    margin-top: 10px;
    margin-left: 25px;
}

/* navigation links and hamburger menu */

.top-nav {
    float: right;
}

.links {
    font-size: 110%;
    line-height: 75px;
    margin-right: 25px;
}

.links>li {
    display: inline;
    list-style-type: none;
    margin-right: 10px;
    text-decoration: none;
    overflow: hidden;
}

.links a {
    text-decoration: none;
    color: #26014d;
}

.links a:hover {
    color: #95B0B6;
}

.links-button-container {
    display: none;
    height: 5px;
    width: 30px;
    cursor: pointer;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.toggler {
    display: none;
}

/* hamburger menu code taken from hamburger menu example by Narender Singh */

.links-button,
.links-button::before,
.links-button::after {
    display: block;
    background-color: #26014d;
    position: absolute;
    height: 4px;
    width: 30px;
}

.links-button::before {
    content: "";
    margin-top: 8px;
}

.links-button::after {
    content: "";
    margin-top: 17px;
}

.toggler:checked+.links-button-container .links-button::before {
    margin-top: 0px;
    transform: rotate(405deg);
}

.toggler:checked+.links-button-container .links-button {
    background: rgba(255, 255, 255, 0);
}

.toggler:checked+.links-button-container .links-button::after {
    margin-top: 0px;
    transform: rotate(-405deg);
}

/* content following the header */

.main-content {
    padding-top: 70px;
    margin-bottom: -25px;
}

/* hero image */

.hero-image {
    height: 600px;
    width: 100%;
    background: url('../images/buddha.webp') no-repeat center center;
}

/* tag-line */

.tag-line>h2 {
    color: #fff;
    font-family: Bebas Neue, sans-serif;
    font-size: 200%;
    letter-spacing: 2px;
    text-transform: uppercase;
    display: inline-block;
    width: 33%;
    padding-top: 15px;
    text-align: center;
}

.tag-line {
    background-color: #0d616e;
    background-position: center;
    margin-left: auto;
    margin-right: auto;
    width: 90%;
    max-width: 1900px;
    height: 70px;
    border-radius: 20px;
    overflow: hidden;
    margin-top: -30px;
}

/* section headings */

.section-heading {
    clear: both;
    font-family: Bebas Neue, sans-serif;
    font-size: 250%;
    letter-spacing: 2px;
    text-transform: uppercase;
    text-align: center;
    margin-bottom: 25px;
}

/* studio section */

.studio-container {
    display: flex;
    width: 100%;
    justify-content: space-between;
    max-height: 300px;
}

.studio-pic-container {
    display: flex;
    width: 32%;
    margin-left: 5%;
}

.picture-content {
    width: 100%;
    height: 300px;
    border-radius: 20px;
    object-fit: cover;
    object-position: left;
}

.studio-text-right {
    display: flex;
    width: 28%;
    margin-top: 20px;
    margin-right: 5%;
    font-size: 110%;
}

.center-picture {
    display: flex;
    width: 30%;
    margin: -275px auto 0;
    height: 500px;
    border-radius: 20px;
    object-fit: cover;
    object-position: top;
}

.studio-text-left {
    display: flex;
    width: 28%;
    margin-left: 5%;
    margin-top: -200px;
    font-size: 110%;
    text-align: right;
}

.right-picture {
    margin-right: 5%;
    margin-top: -275px;
}

/* classes section */

.classes-container {
    display:flex;
}

.yoga-class {
    flex: 1;
    box-sizing: border-box;
    padding: 2%;
    margin-left: 2%;
    margin-right: 2.5%;
    background-color: #615374;
    border-radius: 20px;
    text-align: center;
    color: #fff;
    font-size: 110%;
}

.yoga-class>h3 {
    text-transform: uppercase;
    font-size: 125%;
    padding-bottom: 15px;
}

/* timetable section */

.timetable {
    display: inline-block;
    text-align: center;
    color: #fff;
    font-size: 110%;
    margin: 0% 2% 1% 2%;
    width: 29%;
    padding: 2%;
    box-sizing: border-box;
    background-color: #0d616e;
    border-radius: 20px;
}

.timetable>h3 {
    text-transform: uppercase;
    font-size: 125%;
    padding-bottom: 15px;
}

.timetable>p {
    font-size: 100%;
    padding-bottom: 5px;
}

/* sign up section */

.signup-heading {
    font-size: 130%;
    width: 90%;
    margin: auto;
    text-align: center;
    margin-bottom: 15px;
}

.signup-form {
    margin: auto;
    max-width: 350px;
    text-align: left;
}

.signup-input {
    box-sizing: border-box;
    border: #26014d 1px solid;
    line-height: 25px;
    padding: 3px;
    width: 100%;
    margin-bottom: 7px;
}

.signup-button {
    float: right;
    margin-bottom: 50px;
    width: 150px;
    height: 40px;
    background-color: #26014d;
    border-radius: 5px;
    font-family: Bebas Neue, sans-serif;
    font-size: 150%;
    color: #fff;
    text-align: center;
    text-decoration: none;
    line-height: 40px;
}

.signup-input:hover {
    border-color: #95B0B6;
}

.signup-button:hover {
    background-color: #0d616e;
}

/* contact us section */

.contact-left,
.contact-right {
    width: 25%;
    text-align: center;
    padding-top: 25px;
    padding-bottom: 25px;
    line-height: 175%;
}

.contact-left {
    float: left;
    padding-left: 22%;
    padding-right: 3%;
}

.contact-right {
    float: right;
    padding-right: 22%;
    padding-left: 3%;
}

.contact-left>h3 {
    text-transform: uppercase;
}

.contact-right>h3 {
    text-transform: uppercase;
}

/* footer */

footer {
    clear: both;
    height: 75px;
}

.social-links {
    text-align: center;
    width: 100%;
    list-style-type: none;
}

.social-links>li {
    display: inline;
}

.social-links i {
    font-size: 120%;
    padding: 3% 1% 1%;
    color: #26014d;
}

.social-links i:hover {
    color: #0E7584;
}

/* form-submitted page */

.form-submitted-container {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    top: 215px;
}

.form-submitted-message {
    background-color: rgba(14, 117, 132, 0.8);
    color: #fff;
    min-width: 40%;
    text-align: center;
    line-height: 50px;
    padding: 30px;
}

.form-submitted-message>h2 {
    font-family: Bebas Neue, sans-serif;
    letter-spacing: 2px;
    text-transform: uppercase;
    font-size: 175%;
}

.form-submitted-message>p {
    font-size: 125%;
}

.form-submitted-message>a {
    text-decoration: none;
    background-color: #26014d;
    font-family: Bebas Neue, sans-serif;
    letter-spacing: 2px;
    color: #fff;
    font-size: 150%;
    padding: 10px 25px;
    border-radius: 4%;
    line-height: 75px;
}

/* 404 page */

.error-message-container {
    position: absolute;
    display: inline-flex;
    justify-content: center;
    width: 100%;
    top: 215px;
}

.error-message {
    background-color: rgba(14, 117, 132, 0.8);
    color: #fff;
    text-transform: uppercase;
    min-width: 40%;
    text-align: center;
    line-height: 50px;
    font-size: 175%;
    padding: 30px;
}

.error-message>a {
    text-decoration: none;
    background-color: #26014d;
    font-family: Bebas Neue, sans-serif;
    letter-spacing: 2px;
    color: #fff;
    font-size: 90%;
    padding: 10px;
    border-radius: 4%;
    line-height: 75px;
}

/* media queries */

/* screen size 875px wide and below */
@media screen and (max-width: 875px) {
    .tag-line>h2 {
        width: 32%;
        font-size: 175%;
    }

    .center-picture {
        visibility: hidden;
    }

    .studio-container {
        margin-bottom: -90px;
    }

    .studio-pic-container {
        width: 46%;
    }

    .studio-text-right,
    .studio-text-left {
        width: 40%;
        font-size: 90%;
    }

    .studio-text-right {
        margin-top: 0;
    }

    .right-picture {
        margin-top: -375px;
    }

    .yoga-class>h3 {
        font-size: 110%;
    }

    .classes-container {
        display: block;
        width: 90%;
        margin-left: 5%;
    }

    .yoga-class {
         margin-top: 2%;
         font-size: 90%;
         padding: 3%;
    }

    .timetable {
        margin-left: 7%;
        margin-right: 2.2%;
    }

    .timetable>h3 {
        font-size: 110%;
    }

    .timetable {
        width: 38%;
    }

    .timetable>p {
        font-size: 90%;
    }

    .signup-section>h3 {
        font-size: 120%;
    }

    .contact-left, 
    .contact-right {
        padding-top: 10px;
    }

/* Change from nav links to hamburger menu.
Hamburger menu code taken from hamburger menu example by Narender Singh */
    .links-button-container {
        display: flex;
        height: 60px;
        width: 100px;
    }

    .links {
        position: absolute;
        top: 0;
        margin-top: 70px;
        left: 0;
        width: 100%;
        line-height: 10px;
    }

    .links>li {
        display: flex;
        justify-content: center;
        margin: 0;
        padding: 0.5em 0;
        width: 100%;
        background-color: #fff;
    }

    /* when toggler is not checked */
    .toggler~.links li {
        height: 0;
        margin: 0;
        padding: 0;
        border: 0;
    }

    /* when toggler is checked */
    .toggler:checked~.links li {
        height: 25px;
        padding: 2px;
    }
}

/* screen size 650px wide and below */
@media screen and (max-width: 650px) {
    header {
        height: 60px;
    }

    .header-logo {
        font-size: 175%;
        margin-left: 10px;
        margin-top: 13px;
    }

    .links {
        margin-top: 60px;
    }

    .links-button-container {
        height: 52px;
        width: 50px;
    }

    .links-button::after {
        margin-top: 0;
    }

    .hero-image {
        height: 500px;
    }
    
    .tag-line {
        height: 60px;
    }

    .tag-line>h2 {
        font-size: 125%;
        padding-top: 17px;
    }

    .center-picture {
        display: none;
    }

    .studio-container {
        display: contents;
    }

    .studio-pic-container {
        width: 90%;
        height: 300px;
    }

    .studio-text-right,
    .studio-text-left {
        width: 90%;
        text-align: center;
        margin-left: 5%;
    }

    .studio-text-right {
        right: 0;
        margin-top: 20px;
    }

    .studio-text-left {
        left: 0;
        margin-top: 5%;
        margin-bottom: 20px;
    }

    .right-picture {
        margin-top: 0;
    }

    .timetable {
        width: 85.5%;
        margin-left: 7%;
    }

    .signup-form {
        max-width: 300px;
    }

    .contact-left,
    .contact-right {
        clear: both;
        width: 100%;
        margin: auto;
        padding: 0;
        font-size: 90%;
    }

    footer {
        clear: both;
        height: 75px;
        font-size: 80%;
    }

    .social-links>li {
        line-height: 100px;
    }

    .form-submitted-message {
        line-height: 30px;
    }

    .form-submitted-message>p {
        font-size: 90%;
    }

    .form-submitted-message>a {
        font-size: 100%;
    }
}
