/* ---- GLOW ERA STYLE SHEET --- */

* {
    font-family: 'Quicksand', "sans-serif";
    font-size: 16px;
    color: black;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ---- WRAPPER ---- */
#wrapper {
    max-width: 100%;
    min-height: 100vh;
    background-color: white;
    margin: auto;

    /* ---- PRIMARY GRID ---- */
    display: grid;
    grid-template-areas:
        "header"
        "menu"
        "content"
        "footer";
    grid-template-columns: 1fr;
    grid-template-rows: auto auto 1fr auto;
}

/* ---- HEADER ---- */
header {
    grid-area: header;
    width: 100%;
    height: 200px;
    background-color: white;

    /* ---- SUB GRID ---- */
    display: grid;
    grid-template-areas:
        "logo company";
    grid-template-columns: 1fr 3fr;
    grid-template-rows: 1fr;
}

header h1 {
    grid-area: company;
    text-align: right;
    margin: 1em;
    font-weight: normal;
}

header a {
    text-decoration: none;
}

/* ---- HEADER LOGO ---- */
header img {
    grid-area: logo;
    margin-left: 20px;
}

/* ---- NAVIGATION MENU ---- */
nav {
    grid-area: menu;
    width: 100%;
    height: 70px;
    background-color: rgb(228, 219, 219);
}

nav ul {
    width: 100%;
    list-style: none;

    display: flex;
    flex-direction: row;
    justify-content: space-around;
    
    margin-top: 1.5em;
    text-align: center;
}

nav ul li a {
    font-size: 18px;
    color: black;
    background-color: white;
    text-decoration: none;
    padding: 5px 12px;
    border-radius: 5px;
    box-sizing: border-box; 
}

nav a:hover {
    box-shadow: 0 0 12px 4px white;
}

/* ---- HOME PAGE CONTENT ---- */
#homepage {
    width: 100%;
    min-height: 650px;
    margin: 2em 0 4em 0;
}

/* ---- WELCOME MESSAGE ---- */
#headline h2 {
    font-family: 'Playfair Display', "sans-serif";
    font-size: 40px;
    text-align: center;
    padding: 1em 1em 2em 1em;
}

/* ---- ALEXA INTRO SECTION ---- */
#alexaintro {
    display: flex;
    align-items: center;
    gap: 10%;
    background-color: rgb(238, 238, 238);
    padding: 8%;
}

#alexaintro h2, a {
    margin-bottom: 2em;
}

#alexaintro img {
    border-radius: 50%;
    box-shadow: 12px 12px 20px grey;
}

/* ---- VIDEO SECTION ---- */
#glow-era-video {
    display: flex;
    align-items: center;
    background-color: rgb(238, 238, 238);
    padding: 5% 5% 5% 30%;
    margin-top: 5%
}

#glow-era-video video {
    box-shadow: 12px 12px 20px grey;
    border-radius: 3%;
}

/* ---- RECIPES PAGE ---- */
#recipepage {
    width: 100%;
    min-height: 650px;
    margin: 2em 0 4em 0;
}

#recipepage img {
    margin-left: auto;
    margin-top: -2%;
    box-shadow: 6px 6px 5px grey;
    border-radius: 3%;
}

.recipetext h2, p, li {
    list-style: none;
}

.recipetext h2 {
    font-size: 25px;
    margin-bottom: 2%;
}

.recipetext {
    margin-bottom: 5%;
}

#recipe1 {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
    margin-bottom: 3%;
}

#recipe2 {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
}

#recipe3 {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
    margin-top: 3%;
}

#recipe4 {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
    margin-top: 3%;
}

#recipe5 {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
    margin-top: 3%;
}

/* ---- FITNESS PAGE ---- */
#fitnesspage {
    width: 100%;
    min-height: 650px;
    margin: 2em 0 4em 0;
}

#fitnesspage img {
    margin-left: auto;
    box-shadow: 6px 6px 5px grey;
    border-radius: 3%;
}

#fitnesspage h4, p {
    list-style: none;
}

#fitnesspage h3 {
    font-size: 25px;
}

#fitnessplan h3 {
    padding: 5%;
    text-align: center;
}

#fitstory {
    background-color: rgb(238, 238, 238);
    text-align: center;
    padding: 5%;
}

#fitstory h3 {
    padding: 0 0 2% 0;
}

#fitstory p {
    padding-bottom: 2%;
}

.day {
    background-color: rgb(238, 238, 238);
    padding: 5%;

    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 10%;
    margin-bottom: 3%;
}

.day p {
    margin-top: 7.5%;
}

/* ---- SKIN CARE PAGE ---- */
#skinpage {
    width: 100%;
    min-height: 650px;
    margin: 2em 0 4em 0;
}

#skinstory {
    background-color: rgb(238, 238, 238);
    padding: 5%;
    text-align: center;
}

#skinstory h3 {
    font-size: 25px;
}

#skinstory2 {
    background-color: rgb(238, 238, 238);
    padding: 5%;
    text-align: center;
}

#skinstory2 h3 {
    font-size: 25px;
}

#skinstory2 img {
    margin: 0 5% 0 5%;
    box-shadow: 6px 6px 5px rgb(172, 172, 172);
}

#products {
    padding: 5% 2% 2% 2%;
    gap: 5%;

    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

.item {
    scroll-snap-align: start;
    border: 1px solid #ccc;
    border-radius: 3%;
    padding: 1.5%;
    text-align: center;
    text-decoration: none;
    box-shadow: 6px 6px 5px lightgrey;
    width: 240px;
}

#skinpage img {
    border-radius: 5%;
    margin-bottom: 3%;
}

#itemlinks {
    background-color: rgb(238, 238, 238);
    text-align: center;
    padding: 5% 5% 3% 5%;
    margin-bottom: 5%;
}

#itemlinks p {
    margin-bottom: -10%;
}

#itemlinks h3 {
    font-size: 25px;
}

#skincaretable {
    margin: 2em auto;
    max-width: 900px;
    padding: 1em;
}

#skincaretable table {
    width: 100%;
    border-collapse: collapse;
}

#skincaretable th, 
#skincaretable td {
    border: 1px solid black;
    padding: 12px;
}

#skincaretable th {
    background-color: #f7ecec;
    text-align: center;
}

#skincaretable td {
    background-color: #fff;
    text-align: left;
}

/* ---- MIND PAGE ---- */
#mindpage {
    width: 100%;
    min-height: 650px;
    margin: 2em 0 4em 0;
}

#mindinfo {
    background-color: rgb(238, 238, 238);
    padding: 5%;
    text-align: center;
}

#mindinfo h3 {
    font-size: 25px;
}

#mysimpletitle h3 {
    font-size: 25px;
    text-align: center;
    padding: 40px;
}

#mindtips {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
    padding: 0 5% 0 5%;
}

.tip {
    background-color: rgb(238, 238, 238);
    padding: 30px;
    text-align: center;
    border-radius: 12px;
}

.tip h4, p {
    padding: 1% 0 8% 0;
}

#mindpage img {
    box-shadow: 6px 6px 5px grey;
    border-radius: 3%;
}

/* ---- CONTACT PAGE ---- */
legend {
    font-family: 'Playfair Display', "sans-serif";
    padding: 5px 0 10px 0;
    font-weight: bold;
    font-size: 30px;
    text-align: center;
}

#theForm {
    border: 15px solid rgb(238, 238, 238);
    border-radius: 15px;
}

form {
	background-color: #FFF;

	padding: 40px;
	border: solid 2px lightgrey;
    max-width: 800px;
    margin: 50px auto;
}

label {
    font-size: 15px;
    padding-left: 2%;
    position: relative;
}

form p {
    padding-left: 2%;
}

p.two label {
	font-weight:bold;
	float: left;
	width: 100px;
	text-align: right;
	padding-right: 10px;
	position: relative;
}

p.two input, p.two select{
	float: left;
	width: 150px;
	text-align: left;
    margin-bottom: 20px;
}

p.two select {
	width: 157px;
}

p.one {
	text-align: center;
}

#message {
    width: 60%;
    height: 100px;
    margin-left: 10px;
}

#email, #firstName {
    width: 60%;
    margin-left: 10px;
}

/* ---- SUBMIT BUTTON ---- */
#submit {
	width: 150px;
	height: 50px;
	text-align:center;
	font-size:20px;
	font-weight:bold;
	color: white;
    background: rgb(228, 219, 219);
    border-radius: 8px;
    margin: 0 0 10px 0;
    border: 1px solid rgb(228, 219, 219);
}

#submit:hover {
	transform: translateY(-3px);
	box-shadow: 5px 5px 3px rgb(173, 173, 173);
}

#submit:disabled {
    cursor: not-allowed;
    background-color: lightgrey;
    border: solid 2px rgb(204, 203, 203);

}

/* ---- ERROR MESSAGE ---- */
.error {
	color: #cb161a;
}
span.error{
	padding-left: 10px;
}

/* ---- SUCCESS MESSAGES ---- */
.success {
	color: #33b16c;
}
span.success{
	padding-left: 10px;
}

#successMessage {
    color: #33b16c;
    font-weight: bold;
}

/* ---- ERROR 404 PAGE ---- */
#error404page h2 {
    text-align: center;
    padding: 0 15px 15px 15px;
    font-size: 1.5em;
    font-family: Playfair Display;
}

#error404page a {
    font-size: 1em;
    font-family: Playfair Display;
    text-decoration: none;
    color:rgb(134, 133, 133)
}

#error404page {
    display: flex;
    flex-direction: row;
    justify-content: space-around;
}

/* ---- FOOTER ---- */
footer  {
    grid-area: footer;
    width: 100%;
    height: 100px;
    background-color: rgb(228, 219, 219);
    padding: 1em;

    /* ---- SUB GRID ---- */
    display: grid;
    grid-template-areas:
        "leftside rightside";
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr;
}

#left {
    text-align: left;
}

#right {
    text-align: right;
}

footer ul {
    list-style: none;
}

footer ul li a {
    text-decoration: none;
}

/* ---- MEDIA QUERIES ---- */
@media only screen and (max-width: 600px) {
    #recipe1 {
        flex-direction: column;
        margin-bottom: 10%;
    }

    #recipe2 {
        flex-direction: column;
    }

    #recipepage img {
        margin-left: 0;
    }

    .day {
        flex-direction: column;
        text-align: center;
    }

    #fitnesspage img {
        margin: 5% 0 5% 0;
    }

    #mindtips {
        display: grid;
        grid-template-columns: 1fr;
        gap: 40px;
        padding: 0 5% 0 5%;
    }
}