/* Google Font @import URL */
@import url('https://fonts.googleapis.com/css2?family=Alkalami&family=Lato:wght@300&display=swap');

/* Convention setting margin, padding and border */
* {
    margin: 0;
    padding: 0;
    border: none;
}

/* Body */
/* Code to make footer stick to bottom from https://dev.to/nehalahmadkhan/how-to-make-footer-stick-to-bottom-of-web-page-3i14*/
body {
    font-family: 'Lato', sans-serif;
    font-weight: 350;
    color: #1a110e;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Logo and headings */
h1 {
    font-family: 'Alkalami', serif;
    font-weight: 800;
    color: #6a3929;

}

h2, h3 {
    font-family: 'Alkalami', serif;
    font-weight: 400;
    color: #6a3929;
}

#logo {
    float: left;
    font-size: 400%;
    margin-left: 30px;
    margin-top: 60px;
}

/* Navigation bar */
#nav, #logo {
    line-height: 50px;
}

#nav {
    font-size: 120%;
    float: right;
}

#nav li {
    float: left;
    list-style: none;
    margin-right: 30px;
}

#nav a {
    text-decoration: none;
    color: #6a3929;
}

#nav a:hover {
    border-bottom: 2px solid #6a3929;
    font-weight: bold;
}

.active {
    border-bottom: 2px solid #6a3929;
    font-weight: bold;
}

/* Home page - landing image */
#container {
    margin: 15px 10px 5px;
}

#landing-image > picture > img {
    width: 100%;
    height: 100%;
}

/* Home page - about us section */
#about-us {
    text-align: center;
    max-width: 100%;
    background-color: rgba(190,131,116,0.25);
    padding: 15px 10px;
    font-size: 150%;
}

/* Home page - fun facts aside */
#fun-facts {
    border: #af9e42 solid 2.5px;
}

#fun-facts > h2 {
    text-align: center;
    margin: 15px 10px 5px;
}

#fun-facts > ul > li {
    margin: 15px 10px 5px;
    list-style: none;
    text-align: center;
}

/* Home page - media query for larger screen sizes */
@media screen and (min-width:770px) {
    .split {
        display: flex;
        flex-direction: row-reverse;
        object-fit: fill;
    }
    
    #landing-image {
        width: 100%;
        height: auto;
    }

    #about-us {
        max-width: 60%;
    }
}

/* Guide page - morning and night routine */
#routine > h2 {
    text-align: center;
    margin: 15px 10px 5px;
    background-color: rgba(190,131,116,0.25);
    padding-top: 10px;
    margin-top: 10px;
}

#routine > div > ol > li {
    list-style: none;
    margin-top: 10px;
    margin-bottom: 10px;
}

#sub-heading {
    text-align: center;
    font-size: 120%;
    font-weight: 400;
    margin: 15px 10px 5px;
}

#left-morning, #right-night {
    margin: 15px 10px 5px;
    padding: 8px 4px 2px;
    border: outset;
    background-color: rgba(172, 175, 174, 0.15);
}

#left-morning h2 {
    text-align: center;
}

#right-night h2 {
    text-align: center;
}

/* Guide page - other factors section */
#other-factors {
    margin: 15px 10px 10px;
}

#other-factors > div {
    background-color: rgba(190,131,116,0.25);
    width: 100%;
    height: 150px;
    padding: 30px 10px 10px;
    text-align: center;
    border: 2px solid white;
    box-sizing: border-box;
}

#other-factors > div > h3 {
    text-align: center;
}

#other-factors > div > i {
    font-size: 300%;
    color: #6a3929;
}

/* Guide page - media query for diplaying the routines on screen sizes larger than 680px */
@media screen and (min-width:680px) {
    #left-morning {
        width: 45%;
        float: left;
    } 

    #right-night {
        width: 45%;
        float: right;
    }
}

/* Guide page - media query for diplaying the other factors section on screan sizes larger than 575px */
@media screen and (min-width:575px) {
    #other-factors > div {
        background-color: rgba(190,131,116,0.25);
        width: 25%;
        height: 200px;
        float: left;
        padding: 30px 10px 10px;
        text-align: center;
        border: 2px solid white;
        box-sizing: border-box;
    }
}

/* Signup page - form section */
.form {
    clear: left;
    background: url(../images/image.jpg);
    background-color: rgba(190,131,116,0.25);
    background-size: cover;
    background-position: center;
    height: 900px;
}

.signup {
    margin: 50px 5% 0 0;
    color: #1a110e;
    background-color: rgba(26, 17, 14, 0.15);
    max-width: 500px;
    position: absolute;
    left: 5%;
    padding: 15px;
    font-size: 120%;
}

.signup h1 {
    margin-bottom: 20px;
}

.signup > label {
    font-weight: 800;
}

.signup p {
    margin-bottom: 20px;
}

.text-input {
    width: 100%;
    height: 30px;
    margin: 5px 0 20px 0;
    border: 1px solid #6a3929;
    border-radius: 2px;
    font-size: 100%;
}

.text-input:hover {
    border-color: #1a110e;
}

.join {
    margin: 20px 0 20px 0;
    border-radius: 2px;
    padding: 10px 15px 10px 15px;
    text-align: center;
    font-weight: 800;
    background-color: white;
    border: solid 2px #6a3929;
    color: #6a3929;
}

.join:hover {
    background-color: #6a3929;
    color: white;
}

/* Thankyou page */
#message {
    text-align: center;
}

#message > h3 {
    text-align: center;
    padding-bottom: 30px;
}

#message > p {
    font-weight: 400;
    padding-bottom: 30px;
}

#return-home {
    margin: 20px 0 20px 0;
    padding: 20px 30px 20px 30px;
    text-align: center;
    font-weight: 800;
    background-color: white;
    border: solid 2px #6a3929;
    color: #6a3929;
}

#return-home:hover {
    background-color: #6a3929;
    color: white;
}

/* Footer section */
/* Code to make footer stick to bottom from https://dev.to/nehalahmadkhan/how-to-make-footer-stick-to-bottom-of-web-page-3i14*/
footer {
    background-color: rgba(172, 175, 174, 0.25);
    margin-top: auto;
    text-align: center;
}

.social-media li {
    display: inline;
}

/* Code for transition effect credited to mentor Chris Quinn */
.social-media i {
    font-size: 150%;
    margin: 1%;
    padding: 5%;
    color: #6a3929;
    transition: 0.3s ease-in-out;
}

.social-media i:hover {
    font-size: 300%;
}