@import url(reset.css);

html {
    --persimmon: #F45D01;
    font: 1.6rem Verdana;
}

/* Phone */
@media screen {
    
body {
    display: flex;
    flex-flow: column;
    align-items: center;
}

header {
    height: 90px; width: 100%;
    padding: 5px 10px;
    background-color: #F4D35E;
    border-bottom: 1px solid black;
}

header h2 {
    width: 100%; height: 50px; 
    font-size: 3.7rem;
    line-height: 60px;
    font-family: 'lucida console';
}

nav ul {
    display: flex;
    flex-flow: row wrap;
    list-style-type: none;
}

nav ul li {
    height: 30px; 
    font-size: 1.7rem;
    line-height: 30px;
    flex-grow: 1;
}

nav ul li a {
    display: block;
    width: 100%; height: 100%;
    text-align: center;
}

.wrapper {
    width: 100%; height: fit-content;
}

.hero {
    width: 100%; height: 200px;
    background-image: url(https://images.unsplash.com/photo-1608198093002-ad4e005484ec?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1632&q=80);
    background-size: cover;
    background-position: center;
}

.hero h1 {
    display: none;
}

main {
    display: flex;
    flex-flow: column;
    justify-content: center;
    padding: 10px;
}

main p:first-child {
    font-size: 1.5rem;
    line-height: 2rem;
    text-align: justify;
}

.block {
    position: relative;
    width: 90%; height: 500px;
    margin: 30px auto;
}

.block .image {
    width: 80%; height: 275px;
    background-size: cover;
    background-position: center;
    border: 1px solid black;
    z-index: -1;
}

.block h3, .block p {
    position: absolute;
    right: 0;
    width: 80%;
    background-color: var(--persimmon);
    color: white;
}

.block h3 {
    bottom: 225px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 4rem;
    z-index: 1;
}

.blurb {
    bottom: 0;
    height: 275px;
    padding: 50px 15px 15px 15px;
    font-size: 2rem;
    line-height: 2.5rem;
    text-align: justify;
}

.two h3, .two .blurb {
    left: 0;
}

.one .image {
    background-image: url(https://images.unsplash.com/photo-1534432182912-63863115e106?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=774&q=80);
}

.two .image {
    float: right;
    background-image: url(https://images.unsplash.com/photo-1610057052613-bb574bb4e4c9?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=870&q=80);
}

.three .image {
    background-image: url(https://plus.unsplash.com/premium_photo-1658527130839-b829973330c7?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=1770&q=80);
}

footer {
    position: relative;
    width: 100%; height: fit-content; 
    padding: 10px;
    background-color: #F4D35E;
    display: flex;
    flex-flow: column nowrap;
    font-size: 1.8rem;
}

footer h4 {
    height: 50px;
    line-height: 50px;
    text-align: center;
    font-size: 4rem;
    margin: 20px;
}

footer :not(h4) {
    margin-left: 20px;
    padding: 10px;
}

footer h5 {
    font-size: 2rem;
    margin-top: 20px;
}

footer a:link {
    text-decoration: underline;
}

footer .employment a {
    margin: 0;
    padding: 0;
}

footer::after {
    content: '';
    position: relative;
    bottom: 0;
    width: 90%; height: 175px; 
    margin: 10px auto;
    background-image: url(https://images.unsplash.com/photo-1569336415962-a4bd9f69cd83?ixlib=rb-4.0.3&ixid=MnwxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8&auto=format&fit=crop&w=2062&q=80);
    background-size: cover;
    background-position: center;
}

}

/* Computer */
@media screen and (min-width: 1000px) {

header {
    height: 60px; width: 100%;
    padding: 0 0 0 50px;
    top: 0;
    position: sticky;
    z-index: 10;
}

header h2 {
    float: left;
    width: auto; height: 60px; 
    font-size: 2.2rem;
    line-height: 60px;
    margin-right: 10px;
}

nav ul li {
    width: auto; height: 60px; 
    font-size: 1.7rem;
    line-height: 60px;
    flex-grow: unset;
}

nav ul li:hover {
    background-color: #f7df88;
    border-bottom: 1px solid black;
}

nav ul li a {
    padding: 0 15px;
}

.wrapper {
    max-width: 1500px;
    margin: 0 auto;
}

.hero {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 98%; max-width: 1500px;
    height: 75vh; min-height: 360px; max-height: 700px;
    margin: 10px auto;
    z-index: -2;
}

.hero h1 {
    display: unset;
    position: relative;
    width: 430px; height: 125px; 
    background-color: #EBEBD3;
    text-align: center;
    line-height: 125px;
    font-family: 'lucida console';
    font-size: 5.9rem;
    border-radius: 10% / 80%;
}

.hero h1::before {
    content: '';
    position: absolute;
    top: 27.5px; left: -45px;
    width: 520px; height: 70px; 
    background-color: #EBEBD3;
    border-radius: 80% / 10%;
    z-index: -1;
}

main p:first-child {
    width: 90%;
    font-size: 1.7rem;
    margin: 45px auto;
}

.block {
    height: 550px;
    margin: 100px auto;
}

.block .image {
    width: 75%; height: 100%;
}

.block h3, .block p {
    width: 35%;
}

.block h3 {
    height: 100px;
    top: 75px;
    line-height: 100px;
    font-size: 5rem;
    border-bottom: 1px solid #EBEBD3;
}

.blurb {
    height: 400px;
    bottom: 75px;
    padding: 120px 20px 20px 20px;
    font-size: 2.2rem;
}

footer {
    margin-top: 100px;
    width: 100%; height: 235px; 
    flex-flow: column wrap;
    font-size: 1.7rem;
}

footer :nth-child(1) {order: 1;}
footer :nth-child(2) {order: 5;}
footer :nth-child(3) {order: 6;}
footer :nth-child(4) {order: 7;}
footer :nth-child(5) {order: 8;}
footer :nth-child(6) {order: 2;}
footer :nth-child(7) {order: 3;}
footer :nth-child(8) {order: 4;}
footer :nth-child(9) {order: 9;}
footer :nth-child(10) {order: 10;}
footer :nth-child(11) {order: 11;}
footer :nth-child(12) {order: 12;}
footer :nth-child(13) {order: 13;}

footer h4 {
    text-align: left;
    margin: 15px;
}

footer h5 {
    margin-top: 0;
}

footer::after {
    float: right;
    width: 30%; height: 90%; 
    flex-grow: 1;
    margin: auto 10px;
    order: 14;
}

}