/*
Author: Yesiha Vang
File Name: styles.css
*/


/* CSS Reset */
body, header, nav, main footer, img, h1, ul, section, aside, figure, figcaption {
    display: block;
    border-top: 1px solid #F79F2B;
    padding: 0;
    border: 0;
    font-family: 'Strichpunkt Sans', sans-serif;
}


/* Images and Gallery */
img {
    max-width: 100%;
    display: block;
    border-radius: 3%;
}
.round {
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    align-items: start;
}
.gallery-item {
    background: #f8e4c1;
    border-radius: 12px;
    padding: 0.3em;
    text-align: auto;
    box-shadow: 0 4px 10px rgba(0,0,0,.2);
}
.gallery-item img {
    width: auto;
    height: auto;
    object-fit: cover;
    object-position: center;
    display: block;
    border-radius: 3px;
    transition: transform .2s;
}
.gallery-item figcaption {
    margin-top: 0.75rem;
}
.gallery-item img:hover {
    transform: scale(1.03);
}


/* Style rule for box sizing applies to all elements */
* {
    box-sizing: border-box;
}


/*Header content */
header {
    text-align: center;
    font-size: 1.8em;
    color: #F79F2B;
}
header h1 {
    font-family: 'Madimi One', serif;
}
header h1 a {
    color: #F79F2B;
    text-decoration: none;
}
header h1 a:hover {
    color: #94A16F;
}


/* Navigation area */
nav {
    background-color: #F79F2B;
    border-radius: 5px;
}
nav a {
    color: #ffff;
    text-decoration: none;
    padding: 15px;
    display: inline-block;
}


/* The main content */
main{
    padding: 2%;
    background-color: #C05223;
    border-radius: 5px;
    overflow: auto;
    font-family: "Strichpunkt Sans", sans-serif;
}
main p {
    font-size: 1.25em;
}
body {
    padding: 2%;
    background-color: #f9dcb5;
    overflow: auto;
    font-family: "Strichpunkt Sans", sans-serif;
}
.intro-content,
h2,
h3,
p {
    text-align: center;
    color: #341c11;
}
a {
    text-align: center;
    text-decoration: none;
    color: #f9dcb5;
}
li {
    color: #341c11;
}
main ul li a:hover,
a:hover {
    color: #94A16F;
}
.launch-btn {
    color: #341c11;
    font-style: italic;
    font-weight: bold;
    text-decoration: none;
}
.click-note {
    width: 250px;
    height: auto;
    display: block;
    margin: 20px auto;
}
.click-note:hover {
    transform: scale(1.05);
    transition: 0.3s;
}
.feature-card,
.step {
    background: #94A16F;
    margin: 2%;
    padding: 1em;
    border-radius: 5px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
    transition: transform .2s;
}
.feature-card:hover,
.step:hover {
    transform: translateY(-5px);
}
.step {
    text-align: center;
    margin: 2em auto;
}
.step video {
    width: 100%;
    max-width: 900px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,.2);
}


/* Contact Page */
#contact {
    text-align: center; 
    padding: 2%; 
}
.email-link a {
    color: #94A16F;
    text-decoration: none;
    font-weight: bold;
}


/* Footer */
footer {
    text-align: center;
    font-size: 0.65em;
    clear: left;
}
footer a {
    color: #556c15;
    text-decoration: none;
}
.sitemap-link a {
    color: #556c15;
}


/* Form */
fieldset,
input {
    margin-bottom: 1em;
    color: #341c11;
}
fieldset legend {
    font-weight: bold;
    font-size: 1.40em;
    color: #341c11;

}
label {
    display: block;
    margin-bottom: 0.4em;
}
#reason {
    color: #341c11;
    cursor: pointer;
    font-family: 'Strichpunkt Sans', sans-serif;
}
#submit {
    display: block;
    padding: 1%;
    background-color: #94A16F;
    border-radius: 4px;
    font-size: 0.90em;
    font-family: "Strichpunkt Sans", sans-serif;
}
.btn:hover {
    color: #b86e0d;
    transition: 0.3s;
    cursor: pointer;
}


/* Site Map */
.sitemap-list {
    text-align: center;
    font-size: 150%;
}
.sitemap-list ul {
    list-style: none;
    padding: 0;
}
.sitemap-list li {
    text-align: center;
}


/* Style rules for mobile viewport */
.tab-desk,
#menu-links {
    display: none;
}
header h1 {
    font-size: 1.5em;
    padding: 4%;
    margin-right: 15%;
}
aside {
    text-align: center;
    font-size: 1.5em;
    font-weight: bold;
    color: #94A16F;
}
figure {
    position: relative;
    max-width: 900px;
    margin: 2% auto;
    border: 6px solid #94A16F;
    border-radius: 3%;
}
figcaption {
    position: relative;
    bottom: 0;
    background: rgba(111, 132, 78, 0.399);
    color: #341c11;
    width: 100%;
    padding: 2% 0;
    text-align: center;
    font-family: 'Strichpunkt Sans', sans-serif;
    font-size: 1em;
    font-weight: bold;
}
.mobile-nav a {
    color: #fff;
    text-align: center;
    font-size: 2em;
    text-decoration: none;
    padding: 4%;
    display: block;
}
.mobile-nav a.menu-icon {
    display: block;
    position: absolute;
    right: 0;
    top: 0;
}
.menu-icon div {
    height: 50px;
    width: 50px;
    background-color: #94A16F;
}
.social img {
    display: inline-block;
    padding: 10px;
    width: 90px;
    height: 90px;
    border-radius: 50%;
}
.social img:hover {
    transform: scale(1.05);
    transition: 0.3s;
}
.social,
.social a {
    text-align: center;
    text-decoration: none;
}


/* Media Query for tablet viewport */
@media screen and (min-width: 550px), print {

    /*Tablet Viewport: Show tab-desk class, hide mobile class */
    .tab-desk {
        display: block;
    }
    .mobile,
    .mobile-nav {
        display: none;
    }

    /* Tablet Viewport: Header content */
    span.tab-desk {
        display: inline;
    }
    header h1 {
    margin: 0;
    padding: 0;
    font-size: 2em;
    }

    /* Tablet Viewport: Nav area */
    nav ul {
        list-style-type: none;
        text-align: center;
    }
    nav li {
        border-top: none;
        display: inline-block;
        font-size: 1.5em;
        border-right: 1px solid #e5e9fc;
    }
    nav li:last-child {
        border-right: none;
    }
    nav li a {
    display: block;
    color: #fff;
    text-align: center;
    text-decoration: none;
    padding: 0.25em 0.5em;
}

    /* Tablet Viewport: Form elements */
    form {
    width: 70%;
    margin: 0 auto; }
  
    /* Tablet Viewport: Nav area */
nav ul {
    list-style-type: none;
    text-align: center; }
}


/* Media Query for Desktop Viewport */
@media screen and (min-width: 769px), print {

    /* Desktop Viewport: Header */
    header {
    padding: 2%;
    }

    /* Desktop Viewport: Nav area */
.tab-desk {
    font-size: 1em;
}
nav li a {
    padding: 0.5em 1.5em;
    }
nav a:hover {
    background-color: #94A16F;
    color: #f9dcb5;
    }

    /* Desktop Viewport: Main content */
    #info ul {
     margin-left: 5%;
    }

    main h3 {
    font-size: 1.5em;
    }

    .grid {
    grid-template-columns: 1fr 1fr 1fr 1fr
    }

    figcaption {
    font-size: 1em;
    }

    aside {
    grid-column: 1 / span 4;
    }

    /* Desktop Viewport: Table */
    table {
        width: 70%;
    }

    /* Desktop Viewport: Form elements */
    .form-grid {
    display: grid;
    grid-template-columns: auto auto;
    grid-gap: 17px;
    }
    .btn {
    grid-column: 1 / span 2;
    }
}


/* Media Query for Print*/
@media print {
    body {
        background-color: #fff;
        color: #000;
    }
}

@media screen and (min-width: 769px) {
    .gallery-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .gallery-item {
        width: 100%;
        margin: 0;
    }

    .gallery-item.landscape {
        grid-row: 1;
    }

    .gallery-item.portrait {
        grid-row: 2;
    }

    .gallery-item img {
        width: 100%;
        height: auto;
        object-fit: initial;
    }

    .gallery-item.portrait img {
        width: 65%;
        margin: 0 auto;
    }
}