/* styling for mod7 assignment 1a */
* {
    margin: 0; padding: 0; border: 0; box-sizing: border-box;
}

body {
    background-color: rgb(63, 88, 113);
    color: #EEE;
}

h1 {
    position: absolute; top: 100px; 
    left: 50%;
    margin-left: -100px;
    font-size: 24pt;
    font-weight: bold;
    text-align: center;
    color: black;
    font-family:Verdana, Geneva, Tahoma, sans-serif;
    text-shadow: 2px 2px 4px orange,
                 2px 2px 6px rgb(112, 172, 23);
}


main {
    /* border: 2px solid orangered; */
    /* min-height: 400px; */
    position: absolute;
    top: 50%; width: 100%;
    transform: translateY(-50%);
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
}

/* child selector */

main div {
    background-color: pink;
    
    flex: 0 0 30%;
    aspect-ratio: 1;
    border-radius: 4px;
}

#hero {
    border: 10px solid orange;
    background-color: skyblue;
    background-image: url(../images/frog_lounge2.jpg);
    background-size: contain;
    background-repeat: no-repeat;
    border-radius: 6px;
}

#featured {
    position: relative;
    background-color: transparent;
}

#featured > div {
    background-color: #FF0;
    width: 45%; height: 45%;
    position: absolute;
    border-radius: 4px;
}

#featured > div:nth-child(1) {
    top: 0; left: 0;
    background-color: orange;
    background-image: linear-gradient(45deg, orange, green);
    border: 5px solid rgb(112, 172, 23);

}

#featured > div:nth-child(2) {
    top: 0; right: 0;
    background-color: rgb(112, 172, 23);
    background-image: linear-gradient(45deg, green, orange);
    border: 5px solid orange;
}

#featured > div:nth-child(3) {
    bottom: 0; left: 0;
    background-color: rgb(112, 172, 23);
    background-image: linear-gradient(45deg, green, orange);
    border: 5px solid orange;
}

#featured > div:nth-child(4) {
    bottom: 0; right: 0;
    background-color: orange;
    background-image: linear-gradient(45deg, orange, green);
    border: 5px solid rgb(112, 172, 23);
}

nav {
    display: flex;
    flex-flow: row wrap;
    justify-content: space-evenly;
    padding-top: 8px;
    gap: 12px;
    margin-left: 8px;
    margin-right: 8px;
}

nav  > a {
    background-color: orange;
    background-image: linear-gradient(45deg,orange, green);
    border: 4px solid rgb(44, 68, 9);
    color: black;
    font-size: 12pt;
    font-weight: bold;
    padding: 12px 16px;
    flex: 1 0 auto;
    text-align: center;
    border-radius: 4px;
    text-decoration: none;
}

/* styles for mobile users */
@media screen and (max-width: 750px) {

nav > a {
    flex: 0 0 40%;
}


main {
    /* border: 2px solid orangered; */
    /* min-height: 400px; */
    position: static; /* returns to default */
    transform: translateY(0%);
    padding-top: 40px;
}

/* child selector */

main div {
    
    flex: 0 0 96%;
    margin-bottom: 40px;  
}

#featured {
    position: relative;
    background-color: transparent;
}

#featured > div {
    background-color: #FF0;
    width: 45%; height: 45%;
    position: absolute;
    border-radius: 4px;
}

#featured > div:nth-child(1) {
    top: 0; left: 0;

}

#featured > div:nth-child(2) {
    top: 0; right: 0;
}

#featured > div:nth-child(3) {
    bottom: 0; left: 0;
}

#featured > div:nth-child(4) {
    bottom: 0; right: 0;
}

h1 {
    display: none;
}

nav span {
    display: none;
}




}







