/*
    CONTENTS
    1. Universal styles
    2. Variables
    3. Header styles
    4. Text styles
    5. Section styles
    6. Gallery styles
    7. Form styles
    8. Footer styles
    9. Media Queries
    10. Override styles
*/

/*
    1. UNIVERSAL STYLES
*/

html {
    position: relative;
    min-height: 100%;
    scrollbar-gutter: stable;
}

/*
    2. VARIABLES
*/

html {
    --sm-space: .25rem; /* 4px */
    --med-space: .5rem; /* 8px */
    --lg-space: 1rem; /* 16px */

    --border-radius: .5rem; /* 8px */

    /* Light palette
        #A31621 - Madder red
        #CED3DC - French gray
        #A0AABB - Cadet gray
        #90C2E7 - Light sky blue
        #BCDAF1 - Columbia blue
        #513369 - Finn purple
    */

    /* Background colors */
    --header: #FFF;
    --body: #FFF;
    --background-accent: #FFF;
    --background-box: #e9edf0;
    --line: #7e7e7e;

    /* Button colors */
    --button-text: #FFF;
    --button: #72568a;
    --button-border: #513369;
    --button-hover: #9477ad;
    --button-hover-border: #72568a;

    --button-accent-text: #000;
    --button-accent: #CED3DC;
    --button-accent-border: #A0AABB;
    --button-accent-hover: #BCDAF1;
    --button-accent-hover-border: #83a6c0;


    /* Text & link colors */
    --text-header: #000;
    --text-main: #000;
    --text-accent: #513369;
    --link-main: #513369;
    --link-hover: #90C2E7;
    --link-active: #BCDAF1;

    /* Hero gradient colors */
    --hero: linear-gradient(
        270deg,
        hsl(163 62% 90%) 0%,
        hsl(173 62% 90%) 11%,
        hsl(183 62% 90%) 22%,
        hsl(193 62% 90%) 33%,
        hsl(203 62% 90%) 44%,
        hsl(213 62% 90%) 56%,
        hsl(223 62% 90%) 67%,
        hsl(233 62% 90%) 78%,
        hsl(243 62% 90%) 89%,
        hsl(253 62% 90%) 100%
      );
}

html.darkmode {
    /* Light palette
        #A31621 - Madder red
        #CED3DC - French gray
        #A0AABB - Cadet gray
        #90C2E7 - Light sky blue
        #BCDAF1 - Columbia blue
        #513369 - Finn purple
    */

    /* Background colors */
    --header: #000;
    --body: #372b4b;
    --background-accent: #372b4b;
    --background-box: #e9edf0;
    --line: #72568a;

    /* Button colors */
    --button-text: #FFF;
    --button: #72568a;
    --button-border: #513369;
    --button-hover: #9477ad;
    --button-hover-border: #72568a;

    --button-accent-text: #000;
    --button-accent: #CED3DC;
    --button-accent-border: #A0AABB;
    --button-accent-hover: #BCDAF1;
    --button-accent-hover-border: #83a6c0;


    /* Text & link colors */
    --text-header: #e0e0e0;
    --text-main: #e0e0e0;
    --text-accent: #b7a4c7;
    --link-main: #e0e0e0;
    --link-hover: #90C2E7;
    --link-active: #BCDAF1;

    /* Hero gradient colors */
    --hero: linear-gradient(
        90deg,
        hsl(263deg 27% 23%) 0%,
        hsl(269deg 36% 21%) 11%,
        hsl(276deg 43% 20%) 22%,
        hsl(284deg 52% 18%) 33%,
        hsl(290deg 60% 16%) 44%,
        hsl(298deg 68% 15%) 56%,
        hsl(306deg 76% 13%) 67%,
        hsl(311deg 83% 11%) 78%,
        hsl(320deg 92% 10%) 89%,
        hsl(326deg 100% 8%) 100%
      );
}

body {
    background-color: var(--body);
}

/*
    3. HEADER STYLES
*/

header {
    width: 100%;
    height: 4rem; /* 64px */
    background-color: var(--header);
    border-bottom: 1px solid var(--line);
}

.header-content {
    width: min(80vw, 1280px);
    height: 4rem;
    margin-left: auto;
    margin-right: auto;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#header-menu {
    margin: 0;
}

#header-menu i.menu-icon {
    background-color: #fff;
    display: inline-block;
    width: 2rem;
    height: 2rem;
    padding: var(--lg-space);
    margin: 0;
    background-image: url("../img/hamburger-blk.png");
}

#header-menu i.menu-icon:hover {
    background-color: var(--button-hover);
    background-image: url("../img/hamburger-wt.png");
}

#header-menu i.menu-icon-selected {
    background-color: #000;
    background-image: url("../img/hamburger-wt.png");
}

#header-menu-dropdown {
    display: none;
}

#header-menu-dropdown.header-menu-dropdown-selected {
    background-color: #000;
    position: absolute;
    top: 4rem;
    right: calc(10% - 7px);
    z-index: 100;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: start;
}

#header-menu-dropdown a {
    padding: var(--lg-space);
    color: #FFF;
}

#header-menu-dropdown a:hover {
    padding: var(--lg-space);
    color: var(--link-hover);
}

#header-left {
    width: 33%;
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}

#header-left a {
    text-decoration: none;
    color: var(--link-main);
    display: flex;
    flex-direction: row;
    justify-content: left;
    align-items: center;
}

#header-center {
    width: 33%;
    display: flex;
    flex-direction: row;
    justify-content: end;
    align-items: center;
}

#header-right {
    width: 33%;
    display: flex;
    flex-direction: row;
    justify-content: right;
    align-items: center;
}

.header-logo {
    width: 2rem; /* 32px */
    height: 2rem; /* 32px */
    margin: var(--med-space);
}

a.header-link {
    font-family: Arial, Helvetica, sans-serif;
    color: var(--link-main);
    font-size: 1.25em;
    font-weight: bold;
    text-decoration: none;
    text-transform: uppercase;
    margin: 0 1rem 0 1rem;
}

a.header-link:hover {
    color: var(--link-hover);
}

#header-login-button {
    color: var(--button-accent-text);
    background-color: var(--button-accent);
    height: 3rem;
    margin: var(--med-space) 0 var(--med-space) var(--med-space);
    padding: 0 var(--med-space) 0 var(--med-space);
    font-size: 1.125em; /* 18px */
    border-radius: var(--border-radius);
    border: 1px solid var(--button-accent-border);
}

#header-login-button:hover {
    background-color: var(--button-accent-hover);
    border: 1px solid var(--button-accent-hover-border);
}

#header-sign-up-button {
    color: var(--button-text);
    height: 3rem;
    margin: var(--med-space) 0 var(--med-space) var(--med-space);
    padding: 0 var(--med-space) 0 var(--med-space);
    font-size: 1.125em; /* 18px */
    border-radius: var(--border-radius);
    border: 1px solid var(--button-border);
    background-color: var(--button);
}

#header-sign-up-button:hover {
    background-color: var(--button-hover);
    border: 1px solid var(--button-hover-border);
}


/*
    4. TEXT STYLES
*/

h1 {
    color: var(--text-header);
    font-family: 'Roboto Mono', monospace;
    font-weight: 600;
    font-size: 2em; /* 40px */
}

h2 {
    color: var(--text-accent);
    font-family: 'Roboto Mono', monospace;
    font-size: 2.5em;
    font-weight: 700;
    line-height: 1.25;
    margin-bottom: var(--lg-space);
}

h3 {
    color: var(--text-accent);
    font-family: 'Roboto Mono', monospace;
    font-size: 1.75em;
    line-height: 1.25;
    font-weight: 700;
    margin-bottom: var(--lg-space);
}

h4 {
    color: var(--subhead);
    font-family: 'Roboto Mono', monospace;
    font-size: 1em;
    font-weight: 700;
}

h6 {
    color: #FCF7F8;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

p {
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1.5;
    margin-bottom: 1em;
}

li {
    color: var(--text-main);
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 1;
    list-style-type:disc;
    margin-bottom: 1em;
}

a {
    color: var(--link-main);
    text-decoration: underline;
}

a:hover {
    color: var(--link-hover);
}

a:active {
    color: var(--link-active);
}

a:visited {
    color: var(--link-main);
}

/*
    5. SECTION STYLES
*/

section {
    padding: 2rem 0 2rem 0;
}

section.hero {
    padding: 4rem 0 4rem 0;
    background-image: var(--hero);
}

section.hero button {
    color: var(--button-text);
    margin: var(--lg-space);
    padding: var(--lg-space);
    font-size: 2em;
    background-color: var(--button);
    border: 1px solid var(--button-border);
    border-radius: var(--border-radius);
}

section.hero button:hover {
    background-color: var(--button-hover);
    border: 1px solid var(--button-hover-border);
}

section.alt {
    background-color: var(--background-accent);
    padding: 2rem 0 2rem 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.section-content {
    width: min(80vw, 1280px);
    margin-left: auto;
    margin-right: auto;
}

.section-2-col {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

.rows {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: top;
}

.rows div {
    width: 20%;
    border: 1px solid var(--line);
    margin: var(--lg-space);
    padding: var(--lg-space);
}

.rows div h3 {
    text-align: center;
}

.section-text {
    width: 50%;
    box-sizing: border-box;
}

.section-text button {
    color: var(--button-text);
    margin-left: calc(50% - 107px/2);
    padding: var(--lg-space);
    font-size: 1.25em;
    background-color: var(--button);
    border: 1px solid var(--button-border);
    border-radius: var(--border-radius);
}

.section-text button:hover {
    background-color: var(--button-hover);
    border: 1px solid var(--button-hover-border);
}

.section-text li {
    margin-left: 1.25em;
}

.section-image {
    box-sizing: border-box;
    width: 40%;
    margin: 0 var(--lg-space) 0 var(--lg-space);
}

.section-image img {
    width: 100%;
    height: auto;
}

.border {
    border: 1px solid var(--line);
}

section.last {
    border-bottom: none;
    margin-bottom: 100px;
}

/*
    6. GALLERY STYLES
*/

.gallery {
    position: relative;
    width: 60%;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    margin-left: 2rem;
}

.gallery-images {
    width: 90%;
}

.control-arrows {
    cursor: pointer;
    width: 5%;
    height: 5%;
}

.gallery-image {
    width: 100%;
    height: auto;
    display: none;
}

.gallery-image-selected {
    display: block;
}

.gallery-image img {
    width: 100%;
    height: auto;
}

.gallery-nav {
    position: absolute;
    width: 100%;
    bottom: 0;
    left: 0;
    height: 3em;
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
}

.gallery-button {
    height: 1em;
    width: 1em;
    margin: 0 var(--med-space);
    border-radius: 50%;
    background-color: rgba(255, 255, 255, .5);
    border: 1px solid black;
}

.gallery-button-selected {
    background-color: rgba(0, 0, 0, .5);
}

/*
    7. FORM STYLES
*/

form {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

form ul li {
    width: 100%;
    list-style-type: none;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

label {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

input {
    width: 85%;
    box-sizing: border-box;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    box-sizing: border-box;
    padding: var(--med-space);
}

select {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

textarea {
    resize: none;
    box-sizing: border-box;
    padding: var(--med-space);
    width: 85%;
    height: 300px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
}

input.button-submit {
    margin-left: 15%;
    width: 6rem;
    padding: var(--med-space);
    color: var(--button-text);
    background-color: var(--button);
    border: 1px solid var(--button-border);
    border-radius: var(--border-radius);
}

input.button-submit:hover {
    background-color: var(--button-hover);
}

/*
    8. FOOTER STYLES
*/

footer {
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100vw;
    color: white;
    background-color: black;
    border-top: 1px solid var(--line);
}

.footer-content {
    width: min(80vw, 1280px);
    margin-left: auto;
    margin-right: auto;
    padding: 2em 0 2em 0;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
}

img.social-icon {
    width: 2rem;
    height: auto;
    margin-left: var(--med-space);
}

/*
    9. MEDIA QUERIES
*/

@media screen and (min-width: 1100px) {
    #header-menu {
        display: none;
    }

    form ul {
        width: 60%;
    }
}

@media screen and (max-width: 1100px) and (min-width: 750px){

    #header-center {
        display: none;
    }
    #header-center a {
        display: none;
    }

    form ul {
        width: 80%;
    }

    .rows div {
        width: 40%;
    }

    #left-arrow, #right-arrow{
        width: 10%;
        height: 10%;
    }

  }

  @media screen and (max-width: 750px) {

    .header-content {
      width: 100vw;
    }

    #header-left {
      padding: .5rem;
    }

    #header-center {
        display: none;
    }
    #header-center a {
        display: none;
    }

    #header-menu-dropdown.header-menu-dropdown-selected {
      position: absolute;
      top: 4rem;
      right: 0;
    }

    form ul {
        width: 100%;
    }

    input {
        width: 100%;
    }

    textarea {
        width: 100%;
    }

    form ul li {
        width: 100%;
        list-style-type: none;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: start;
    }

    label {
        padding-bottom: var(--med-space);
    }

    input.button-submit {
        margin-left: 0;
    }

    .rows div {
        width: 90%;
    }

    .section-2-col {
        display: flex;
        flex-direction: column;
        justify-content: space-between;
        align-items: center;
    }

    .section-text {
        width: 100%;
        margin: var(--lg-space) 0;
    }

    .section-image {
        width: 100%;
        margin: var(--lg-space) 0;
    }

    .gallery {
        width: 100vw;
        margin: var(--lg-space) 0;
    }

    #left-arrow, #right-arrow{
        width: 10%;
        height: 10%;
    }

  }

/*
    10. OVERRIDE STYLES
*/

.hidden {
    display: none;
}
