/*CSS document*/

html, body, div, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, address, big, cite, code, del, dfn, em, img, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, b, u, i, center, dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td, article, aside, canvas, details, embed, figure, figcaption, footer, header, hgroup, menu, nav, output, ruby, section, summary, time, mark, audio, video {margin: 0; padding: 0; border: 0; font-size: 100%; font: inherit;}

ul {
    list-style-type: none;
}

body {
    max-width: 80em;
    margin: auto;
}

nav ul li a {
    font-family: "ccmonstermash", sans-serif;
    font-weight: 400;
    font-style: normal; 
	text-decoration: none;
    color: #A7C133;
    list-style-type: none;
}

nav ul li {
    padding: 1em 2em 1em 0em;
    display: inline;
}

a:hover {
   color: rgb(255, 255, 255);
  }

div.container, div.home-container {
    max-width: 40em;
    margin: 0 auto;
    position: relative;
    background-color: #201d12;
}

section.newsletter-home figure{
    border-style: solid;
    display: block;
}

section.newsletter-home h2 {
    text-align: center;
    color: #c8be9d;
    font-size: 1.5em;
}

section.newsletter-home p {
    color: #c8be9d;
    font-family: quasimoda, sans-serif;
    font-style: italic;
    font-weight: 200;
    text-align: center;
}

section.newsletter-home {
    padding: 1em;
    max-width: 50em;
    background-position: center;
    min-height: 30em;
}

section.newsletter-home ul li {
    display: flex;
    flex-wrap: wrap;
    padding: .5em;
}

section.newsletter-home ul li label {
    flex: 0 0 8em;
    color: #a79b86;
}

section.newsletter-home ul li input[type="text"],
section.newsletter-home ul li select {
    flex: 4 0 20em;
    background-color: #a79b86;
}

section.newsletter-home button {
    background-color: #a79b86;
    margin-top: 1em;
}

section.newsletter-home ul li input {
    background-color: #a79b86;
}



img {
    width: 100%;
    display: block;
}

a {
    text-decoration: none;
}

p {
    text-decoration: none;
    color: #a79b86;
    font-family: quasimoda, sans-serif;
    font-style: normal;
    font-weight: 200;
    padding: .25em;
    margin-bottom: 1.5em;
    margin-right: 1em;
    line-height: 1.25em;
}


h1 {
    max-width: 15em;
    min-width: 12em;
    padding: 1em 0em 1em 0em;
    justify-content: center;
    align-items: center;
}

h2 {
    font-family: bely-display, sans-serif;
    font-style: normal;
    font-weight: 400;
    padding: .25em;
    color: #A7C133;
}

article h2 {
    font-size: 2.75em;
    margin: 0.75em 0em 0.5em 0em;
}

section.mainstory h2 {
    font-size: 2.75em;
}

section.secondary h2 {
    font-size: 1.25em;
}

section.tertiary h2 {
    font-size: 1.15em;
    border-top: 0.075em solid #A7C133;
    padding-top: 0.5em;
}

figure {
    margin: 0.75em 0em 0.5em 0em;
}

figcaption {
    font-style: italic;
    font-size: 1em;
    padding: 0.25em 0em 0.5em 0em;
    font-family: sans-serif;
    color: #A7C133;
    line-height: 1.25em;
}

aside {
    background:  #201d12;
    background-size: 100%;
    padding: 0 0.35em 1em 0.35em;
}

aside figure {
    padding: 0em 0.15em 0em 0.15em;
}

aside h2 {
    margin-top: .75em;
}


footer {
    padding: .5em;
    background: #A7C133;
    font-family: "quasimoda", sans-serif;
    width: 100%;
    box-sizing: border-box;

}

footer p {
    margin: 0;
    color: #201d12;
    text-align: center;
}
    
    nav ul li{
        display: block;
        padding: 0.25em 0em 0em 0.65em;
    }

    nav {
        padding-bottom: 0.5em;
        margin-left: .5em;
        border-bottom: 1px solid #A7C133;
        padding-bottom: 10px;
    }

    h1 {
        max-width: 7em;
        padding: 0.5em 0em 0em 0.4em;
        margin-left: .7em;
    }
    
    h2 {
        padding: 0.5em 0em 0em 0.4em;
    }

    section.secondary h2 {
        padding: 0.5em 0em 0em 0.4em;
        margin-left: .5em;
    }
    
    section.tertiary h2 {
        padding: 0.5em 0em 0em 0.4em;
    }

    section.secondary p {
        padding: 0.5em 0em 0em 0.4em;
        margin-right: 2em;
        margin-left: .5em;
    }

    section.mainstory p {
        margin-left: .5em;
    }
    
    p {
        padding: 0.5em 0em 0em 0.4em;
        margin-right: 2em;
    }

    figcaption {
        padding: 0.25em 0em 0.5em 0.4em;
        line-height: 1.25em;
    }



    div.home-container {
        max-width: 100em;
        padding: 0 1em;
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 1em;
    }

     div.container {
        max-width: 100em;
        padding: 0 1em;
        display: grid;
        grid-template-columns: 3fr 1fr;
        grid-gap: 1em;
    }
    

    header, footer {
        grid-column: 1/3;
    }

    main {
        display: grid;
        grid-template-columns: repeat (3, 1fr);
        grid-gap: 1em;
    }

    div.home-container main {
        display: grid;
        grid-template-columns: repeat (3, 1fr);
        grid-gap: 1em;
    }

    div.home-container aside {
        background: none;
        padding: 0;
        margin-top: 0;
    }

    div.container aside {
        margin-top: 0;
    }

    section.mainstory {
        grid-column: 2/4;
        grid-row: 1/3;
        display: flex;
        max-width: 100em;
    }

    section.mainstory a {
        display: flex;
        flex-direction: column;
        flex: 1 0;
    }

    section.mainstory a figure {
        flex: 1 0 12em;
        display: flex;
    }

        section.mainstory a figure img {
            object-fit: cover;
        }

    section.mainstory a h2 {
            flex: 0 0 1em;
        }

    section.mainstory a p {
        flex: 0 0 4em;
    }

    section.secondary {
        display: flex;
    }

    section.secondary a {
        display: flex;
        flex-direction: column;
        flex: 1 0;
    }

    section.secondary a figure {
        flex: 1 0 12em;
        display: flex;
    }

        section.secondary a figure img {
            object-fit: cover;
        }

    section.secondary a h2 {
            flex: 0 0 1em;
        }

    section.secondary a p {
        flex: 0 0 4em;
    }

    
    
    div.gallery h2 {
        margin-bottom: 1em;
        font-family: bely-display, sans-serif;
        font-style: normal;
        font-weight: 400;
        font-size: 2em;
        color: #A7C133;
    }
    
    div.gallery article {
        position: relative;
        overflow: hidden;
        display: block;
    }
    
    div.gallery figure{
        width: 100%;
        display: block;
        margin: auto;
        position: absolute;
        opacity: 0;
        left: 100%;
        transition: left .5s, opacity .5s;
    }
    
    div.gallery figcaption {
        font-style: italic;
        font-size: 1em;
        padding: 0.25em 0em 0.5em 0em;
        font-family: sans-serif;
        color: #A7C133;
    }
    
    
    input:nth-of-type(1):checked ~ main figure:nth-of-type(1),
    input:nth-of-type(2):checked ~ main figure:nth-of-type(2),
    input:nth-of-type(3):checked ~ main figure:nth-of-type(3),
    input:nth-of-type(4):checked ~ main figure:nth-of-type(4),
    input:nth-of-type(5):checked ~ main figure:nth-of-type(5),
    input:nth-of-type(6):checked ~ main figure:nth-of-type(6),
    input:nth-of-type(7):checked ~ main figure:nth-of-type(7),
    input:nth-of-type(8):checked ~ main figure:nth-of-type(8){
        opacity: 1;
        left: 0;
    }
    
    
    div.gallery main nav ul {
        display: flex;
        flex: 1 0 5em;
        padding-right: 1em;
    }
    
    
    div.gallery input {
        display: none;
    }
    
    div.gallery, div.container, div.home-container {
        background-color: #201d12;
        margin: auto;
    }



    @media screen and (max-width: 40em){

        div.gallery div.container {
            background: #201d12;
        }
    
        div.gallery main {
            display: block;
          
        }
    
        div.gallery  nav {
            display: flex;
            grid-gap: 0.2em;
        
        }
        
        div.gallery nav label {
            flex: 1 1 5em;
        }
    
        div.gallery article {
            padding-bottom: calc(140% + 7em);
        }
    
        div.gallery figure {
            position: absolute;
        }
    
        div.gallery  h2 {
            line-height: 1.25em;
        }
        
    }

    @media only screen and (min-width: 40em){


        div.gallery article {
            padding-bottom: calc(140% + 7em);
        }

        div.gallery div.container {
            background: #201d12;
        }
    
        div.gallery main {
            display: block;
          
        }
    
        div.gallery  nav {
            display: flex;
            grid-gap: 0.2em;
        
        }
        
        div.gallery nav label {
            flex: 1 1 5em;
        }

        div.gallery nav figure {
            max-width: 10em;
        }
    
        div.gallery article {
            padding-bottom: calc(140% + 10em);
        }
    
        div.gallery figure {
            position: absolute;
        }
    
        div.gallery  h2 {
            line-height: 1.25em;
        }
        
        nav ul li {
            display: inline;
        }

    }

    @media screen and (prefers-color-scheme:light) {
        
    div.container, div.home-container, aside, div.gallery {
        background-color: #a79b86;
        color: #201d12;
    }

    footer, footer p {
        background-color: #3c1a1a;
        color: #a79b86;
    }

    nav ul li a {
        color: #201d12;
    }

    nav {
        border-bottom: solid 1px #201d12;
    }

    h1 {
        background-image: url("slash-logo-alternate.svg");  
        background-repeat: no-repeat;  
        background-size: contain; 
    }
    
    div.gallery h2 {
        color: #201d12; 
        } 
        
    h1 img {  
         opacity: 0; 
    }  

    p, figcaption, div.gallery figcaption {
        color: #3c1a1a;
    }

    h2 {
        color: #201d12;
    }

    section.tertiary h2 {
        border-top: 0.075em solid #201d12;
    }

    section.newsletter p {
        color: #3c1a1a;
    }
    
    
    section.newsletter-home h2 {
        color: #3c1a1a;
    }
    
    section.newsletter-home p {
        color: #3c1a1a;
    }
    
    section.newsletter-home ul li label {
        color: #3c1a1a;
    }
    
    section.newsletter-home ul li input[type="text"]{
        background-color: #ffffff;
    }
    
    section.newsletter-home button {
        background-color: #ffffff;
    }

    }
