:root {
    /* smallest to biggest */
    --font-4: clamp(1.6rem, 1.454545455rem + 0.757575758vw, 2rem);
    --font-6: clamp(2rem, 1.545454545rem + 2.02020202vw, 3rem);
}

/******** SECTIONS  *********/
header {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;

    height: 25vh;
    text-align: left;
    padding: 35px;
    color: white;

    background-image: linear-gradient(rgba(0, 0, 0, 0.3), rgba(0, 0, 0, 0.3)), url(smoke_trees.jpg);
    /* slightly darken the background so the white text displays */
    background-position-y: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

header #logo-img {
    width: 180px;
    position: absolute;
    top: 30px;
    left: 30px;
}

/* TEXT!! */
.title {
    font-size: var(--font-6);
    font-weight: 500;
    text-align: center;
    margin-top: 0.5rem;

}

h1 {
    text-align: center;
    font-size: var(--font-4);
    font-weight: 450;
    margin-top: 0px;
}

h1.with-blurb {
    margin-bottom: 1rem;
}

.blurb {
    margin-bottom: 2em;
    display: block;
}

h1.underline {
    margin-bottom: 15px;
}

hr {
    width: 80%;
    background-color: #aeaeae;
    margin-top: 25px;
    margin-bottom: 25px;
    border: none;
    height: 1px;
}

text {
    font-size: 18px;
}

small-text {
    font-size: 15px;
}

/* SEARCH */
header .search {
    margin-top: 60px;
}

select {
    padding: 8px;
    border: 1px solid #ccc;
    font-size: 18px;
    border-radius: 3px;
}

input {
    padding: 2px 50px;
    border: 1px solid #ccc;
    font-size: 18px;
    box-shadow: inset 0 1px 3px #ffffff36;
    border-radius: 3px;
    width: 55vw;
    height: 50px;
    box-sizing: border-box;
    background: url(search.png) no-repeat 15px 12px;
    background-size: 24px;
    background-color: white;
}

search-section {
    box-sizing: border-box;
    display: flex;
    justify-content: center;
}

section {
    padding: 45px 20px 50px;
}

item-container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin: auto;
    margin-bottom: 20px;
    max-width: 1600px;
}

item {
    cursor: pointer;
    border-radius: 3px;
}

/****** MANUAL SECTION */
/* all manual sizing is in the responsive layouts section at the bottom */
.manual-item {
    position: relative;
    text-align: center;
    border: #ebebeb 1px solid;
    display: flex;
    gap: 0.3rem;

    /* horizontal manual items */
    width: 18rem;
    height: auto;
    max-width: 280px;
    aspect-ratio: 5/2;
    margin: 5px;
    padding: 5px 10px;
    font-size: 20px;
    align-items: center;
    justify-content: space-around;
}

.manual-item:hover:not(:has(button:hover)) {
    box-shadow: 0px 0px 7px #909090;
}

.manual-icon {
    width: 5rem;
    border-radius: 7px;
}

button {
    border-radius: 3px;
    border: none;
    height: 25px;
    margin-top: 6px;
    cursor: pointer;
}

button a {
    color: #000;
    text-decoration: none;
}

button:hover {
    background-color: #ff6326;
}

button:hover a {
    color: #ffffff;
}

/****** QUICKSTART SECTION */
.quick-start-item {
    /* the box background */
    background-color: white;
    filter: drop-shadow(0px 0px 5px #b2b2b2);
    width: 75%;
    /* internal */
    padding: 15px 40px;
    display: flex;
    align-items: center;
}

.quick-start-item:hover {
    background-color: #f1f1f1;
}

.quick-start-icon {
    width: 5.5%;
    margin-right: 30px;
    float: left;
}

/* TEXT!! */
quick-start-text {
    /* vertical alignment */
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: left;
}

/* TEXT!! */
quick-start-text text {
    font-weight: bold;
    margin: 0px 0px 5px;
}

/****** FAQ SECTION *****************************************************************/
/* .faq {
    width: 45%;
    padding: 20px;
    box-shadow: 0px 0px 7px #cbcbcb;
    display: flex;
    justify-content: center;
    align-items: center;
    font-style: oblique;
    font-size: 20px;
}

.faq:hover {
    background-color: #f1f1f1;
} */

/* DOUBLE SECTION */

.two-sec {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

.two-sec section {
    margin-bottom: 75px;
    box-sizing: border-box;
    background-color: #ebebeb;
}

.major {
    width: 55%;
    padding-right: 50px;
}

.minor {
    width: 40%;
    padding-left: 50px;
    padding-right: 50px;
}

.left {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    text-align: right;
}

.right {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    position: relative;
}

/***** LEFT STUFF  */

video-container {
    width: 75%;
    max-width: 600px;
    min-width: 490px;   /* mostly for when the video containter is in the 2 section */
    padding: 20px;
    background-color: white;
    border-radius: 3px;
    box-shadow: 0px 0px 7px #8c8c8c;
    text-align: center;
}

video-container iframe {
    aspect-ratio: 16/9;
    width: 100%;
    margin: 0px 0px 15px;
}



/***** RIGHT STUFF  */

contact-container {
    display: flex;
    flex-direction: column;
    gap: 1em;
}

contact-item {
    background-color: #fefefe;
    padding: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    border-radius: 3px;
}

contact-item a {
    color: #ff6226;
}

.social-media-icon {
    width: 2.5em;
    margin-right: 10px;
    border-radius: 3px;
    /* unsure why it doesn't pick up the item element's radius */
}

/*********************  FOOTER SECTION **********************************************/
.footer-content {
    height: 16rem;
    padding: 25px;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    background-color: #232323;
    color: white;
    font-size: 20px;
}

.footer-content a {
    color: white;
    font-size: 12px;
}

download-content {
    height: 80%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

download-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    margin: auto;
    margin-top: 10px;
    margin-bottom: 10px;
}

.download-icon {
    width: 150px;
    margin: 5px;
}

.copyright {
    padding-left: 25px;
    /* space for the logo */
    background: url(logo_firefront.png) no-repeat left center;
    background-size: 20px 20px;
}


/********** RESPONSIVE LAYOUTS  ************************************************************/

/* 2560 = desktop */
/* 1440 = large laptop */

/* ~ vertical manual items (one row) for this range*/
@media screen and (max-width: 1375px) and (min-width: 1027px) {
    .manual-item {
        width: 12rem;
        margin: 5px;
        padding: 15px 10px;
        flex-direction: column;
        align-items: center;
        gap: 25px;
    }
}

/* The 2 section gets a bit cramped being side by side at this point. 
   Stack them instead */
@media screen and (max-width:1102px) {

    .major,
    .minor {
        width: 100%;
        padding-left: 0px;
        padding-right: 0px;
    }

    .left,
    .right {
        display: flex;
        align-items: center;
        text-align: center;
        width: 100% !important;
    }

    contact-container {
        padding: 0px 20px;
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-template-rows: repeat(3, auto);
        gap: 1em;
    }

    /* Make the third child element span both columns */
    contact-container>*:nth-child(5) {
        grid-column: 1 / -1;
        /* Spans from first to last column */
    }

    contact-item {
        align-items: center;
        padding: 10px 17px;
    }

    .social-media-icon {
        width: 3em;
        margin: 15px 5px;
    }

    /* VIDEO */
    video-container {
        width: 85%;
        min-width: 10px;
    }
}

/* 1024 = laptop */

/* Resize all text and sections to accomodate for small screens */
@media screen and (max-width:876px) {
    /* resize text */
    h1 {
        font-size: 22px;
    }

    text,
    .faq text {
        font-size: 16px;
    }

    small-text {
        font-size: 13px;
    }

    quick-start-text {
        font-size: 13px;
    }

    /* resize sections */
    .quick-start-item {
        padding: 15px 25px;
    }

    .download-icon {
        width: 130px;
    }

    video-container {
        width: 80%;
    }

    .manual-icon {
        width: 4rem;
    }

    .social-media-icon {
        width: 3.5em;
    }
}

/* vertical manuals items (2 rows) for this range*/
@media screen and (max-width:703px) and (min-width:541px) {
    .manual-item {
        width: 10rem;
        margin: 5px 15px;
        padding: 25px 10px;
        flex-direction: column;
        align-items: center;
    }
}

/* 768 = tablet ^^^*/


/* resize contact items, footer height */
@media screen and (max-width: 578px) {
    .quick-start-item {
        width: 80%;
    }

    .two-sec section {
        margin-bottom: 40px;
    }

    .two-sec small-text {
        font-size: 13px;
    }

    contact-container {
        display: flex;
    }

    .download-icon {
        width: 100px;
    }

    footer-div {
        height: 230px;
    }

    text,
    .faq text,
    .right text {
        font-size: 15px;
    }
}

/* 430 = large mobile */

@media screen and (max-width: 440px) {
    /* header */
    header {
        height: 15vh;
    }
    header #logo-img {
        width: 120px;
        top: 30px;
        left: 30px;
    }
    .title {
        margin: 0.5rem;
        margin-top: 1.5rem;
    }
    /*  */

    section {
        padding: 45px 20px 20px;
    }
    hr {
        margin-top: 0;
        margin-bottom: 0;
    }

    /* quick starts */
    .quick-start-icon {
        width: 12%;
        margin-right: 15px;
    }

    /* video */
    video-container {
        width: 80%;
        padding: 10px;
        margin-bottom: 20px; /* to counteract the section padding decrease */
    }
    .social-media-icon {
        width: 2.5em;
    }

    /* footer */
    .footer-content {
        height: 10rem;
    }
    .footer-content small-text {
        font-size: 12px;
    }
    .footer-content a {
        font-size: 10px;
    }
}

/* 375 = medium mobile */
/* 320 = small mobile */