/* COLOR PALETTE:
#f9ca60 = Yellow
#042536 = Navy Blue */

* {
    margin: 0;
    padding: 0;
}

/* GENERAL */
body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 1em;
    line-height: 150%;
    height: 100vh;
    display: grid;
    grid-template-rows: 8em 1fr 11em;
}

[src*="ootdhLogo"] {
    display: block;
    height: 6em;
    padding: 0 1em 1em 1em;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    right: 0.6em;
}

h1 {
    font-size: 200%;
    text-align: center;
    color: #f9ca60;
    padding-top: 0.7em;
    padding-bottom: 0.5em;
}

h2 {
    font-size: 150%;
    color: #042536;
    padding-bottom: 1em;
    text-align: center;
}

h3 {
    color: #042536;
    text-align: center;
}

p {
    text-align: center;
}

/* HEADER & FOOTER */
header {
    /* background-color: grey; */
    border-bottom: 3px solid #f9ca60;
}

footer {
    background-color: grey;
    color: white;
    font-size: 1rem;
    padding: 1em;
    text-align: center;
}

footer section:first-child img {
    float: left;
    height: 6em;
    position: relative;
    padding: 1em;
    top: 0.5em;
}

footer section:nth-child(2) {
    float: right;
    text-align: right;
}

footer p {
    margin: 0.5em;
}

footer li {
    list-style-type: none;
    display: inline-block;
    margin: 0 1em;
}

footer h3 {
    color: #f9ca60;
    border-bottom: 3px solid black;
}

/* NAVIGATION */
nav {
    width: 90%;
    position: relative;
    float: none;
    top: -1.5em;
    right: 0;
    z-index: 10;
    margin-left: auto;
    margin-right: auto;
}

nav li {
    list-style-type: none;
    position: relative;
}

nav li>ul {
    background-color: white;
    display: none;
    position: absolute;
    padding: 0.5em;
    width: 8em;
}

nav li:hover>ul {
    display: block;
}

nav li>ul>li {
    padding: 0.5em 1em;
}

nav a {
    color: #042536;
    text-decoration: none;
    font-weight: bold;
    padding: 0.5em;
    display: inline-block;
}

nav>ul>li:hover>a {
    color: #f9ca60;
}

nav ul li ul>li:hover>a {
    color: #f9ca60;
}

nav>ul {
    display: flex;
    flex-flow: row nowrap;
    justify-content: space-around;
}

/* MINI NAV */
#miniNav {
    display: none;
    position: absolute;
    top: 0%;
    right: 1%;
    z-index: 10;
}

#miniNav ul {
    display: none;
}

#miniNav ul li {
    background-color: white;
    list-style-type: none;
}

#miniNav a {
    color: #042536;
    text-decoration: none;
    text-align: right;
    display: block;
    padding: 0.5em 1.5em;
    font-weight: bold;
}

#miniNav ul li:hover a {
    color: #f9ca60;
}

#miniNav:hover>ul {
    display: block;
    clear: both;
}

#menu {
    float: right;
    padding: 1em;
}

#menu hr {
    background-color: #042536;
    box-shadow: 1px 1px 1px grey;
    width: 1.2em;
    height: 2px;
    margin: 0.3em 0;
    border: none;
}

/* INDEX PAGE */
#home>section:first-child {
    background-image: url(Images/outofthedawghouse.jpg);
    background-size: cover;
    background-position: center 45%;
    min-height: 25em;
    position: relative;
    padding: 2em;
}

#home>section:first-child>h1 {
    color: #f9ca60;
    text-align: left;
    font-weight: bold;
    position: relative;
    bottom: 0;
    top: 11em;
}

#home section:nth-child(2) {
    padding: 1em;
    float: right;
}

#home section:nth-child(2) h2 {
    margin-bottom: 1em;
    padding-bottom: 0.2em;
    text-align: center;
    border-bottom: 2px solid #042536;
}

#home section:nth-child(3) {
    float: left;
    padding: 2em;
    margin-top: 5em;
    width: 35%
}

#home section:nth-child(4) {
    padding: 3em;
}

/* ABOUT */
#about>section>div:first-child {
    float: left;
    background-image: url(Images/ootdhCrest.png);
    background-repeat: no-repeat;
    background-position: center 45%;
    overflow: hidden;
    width: 32%;
    height: 27em;
}

#about>section>div:nth-child(2) {
    padding: 8em 2em 2em 2em;
}

#history {
    border-top: 3px solid black;
    margin-top: 7em;
}

#history h1 {
    padding-bottom: 0.5em;
}

details span {
    font-size: 130%;
    text-align: center;
}

summary {
    margin-bottom: 1em;
    cursor: pointer;
    padding: 0 2em;
}

details img {
    display: block;
    max-width: 70%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    margin-bottom: 0.5em;
    border: 5px solid #f9ca60;
    border-radius: 5px;
}

details p {
    margin-bottom: 1.5em;
}

#audition {
    border-top: 3px solid black;
    margin-top: 1em;
}

#audition h3 {
    text-align: center;
}

#audition p {
    margin-left: auto;
    margin-right: auto;
    padding-top: 1em;
    width: 70%;
    margin-bottom: 3em;
}

/* #audition img {
    display: block;
    max-width: 40%;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    margin-bottom: 0.5em;
} */

/* MEMBERS */
#members {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
}

#members section {
    position: relative;
}

#members img {
    width: 500px;
    height: 750px;
    border: 3px solid #f9ca60;
}

#memberInfo {
    background-color: rgba(255, 255, 255, 1);
    padding: 0.7em 1em;
    width: 90%;
    border-radius: 5px 5px 0 0;
    margin: 0 auto;
    position: absolute;
    bottom: 0;
    transition: 0.5s ease;
    opacity: 0;
}

#memberInfo h2 {
    color: #f9ca60;
    padding-bottom: 0.3em
}

#memberInfo p {
    padding-top: 0.3em;
}

#members section {
    position: relative;
    overflow: hidden;
}

#members>section:hover>#memberInfo {
    opacity: 1;
}

/* MUSIC */
#preA {
    width: 50%;
    margin: 0 auto;
}

#albums  {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    justify-items: center;
    border-bottom: 3px solid black;
    padding-bottom: 1.5em;
}

#albums section {
    padding: 2em 0 0 0;
}

#music {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding: 1.5em 0;
}

#music iframe {
    border: 3px solid #f9ca60;
}

/* CONCERTS */
#concert section {
    padding: 2em;
    width: 50%;
    margin: 0 auto;
}

#concert {
    border-bottom: 3px solid black;
}

#concert iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5em;
    border: 3px solid #f9ca60;
    border-radius: 5px;
}

#pastConcerts {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    border-bottom: 3px solid black;
    padding-bottom: 1.5em;
}

#pastConcerts details iframe {
    display: block;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 0.5em;
    border: 3px solid #f9ca60;
    border-radius: 5px;
}

#gigs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding-bottom: 1.5em;
}

#gigs img {
    height: 25em;
    border: 3px solid #f9ca60;
}

#gigs p {
    margin-bottom: 1.5em;
    text-align: center;
    font-weight: bold;
    font-size: 110%;
}

/* MERCH */
#merch {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: center;
    padding-bottom: 1.5em;
}

#merch img {
    height: 30em;
    border: 3px solid #f9ca60;
}

#merch p {
    margin-bottom: 1.5em;
    text-align: center;
    font-weight: bold;
    font-size: 110%;
}

/* CONTACT */
#contact h1 {
    margin-top: 4em;
}

#contact div {
    float: left;
    padding-left: 10em;
}

#contact i {
    color: #042536;
    padding-left: 1.8em;
    padding-top: 1em;
}

form {
    margin: 0 auto;
    width: 80%;
    max-width: 30em;
    float: right;
    padding-right: 18em;
    padding-top: 7em;
}

label {
    display: inline-block;
    width: 8em;
    text-align: right;
    vertical-align: top;
    padding-top: 0.5em;
    margin: 0 0.5em 0.5em 0;
}

input:not([type="submit"]), textarea {
    width: 18em;
    border-radius: 0.5em;
    padding: 0.5em;
    border-style: outset;
    border: 2px grey outset;
}

[type="submit"] {
    display: block;
    padding: 0.6em 3em;
    color: #042536;
    font-weight: bold;
    font-size: 100%;
    border-radius: 1em;
    text-align: center;
    margin: 0 auto;
    margin-top: 1em;
    border: 2px solid #042536;
    cursor: pointer;
    margin-bottom: 2em;
}

[type="submit"]:hover {
    background-color: #042536;
    color: #f9ca60;
}

/* MEDIA QUERIES */
@media screen and (min-width:901px) {
    #memberInfo {
        left: 0.5em;
    }
}

@media screen and (min-width:451px) and (max-width:900px) {
    #home section:nth-child(2) {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
    }

    #home section:nth-child(3) {
        margin-top: 0;
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
    }

    #home section:nth-child(4) {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 50%;
        padding: 2em;
    }

    #history {
        margin-top: 0;
    }

    #members {
        grid-template-columns: 1fr 1fr;
    }

    #members img {
        width: 350px;
        height: 550px;
    }

    #memberInfo {
        left: 0.1em;
    }

    #preA {
        width: 80%;
    }

    #albums {
        grid-template-columns: 1fr 1fr;
    }

    #music iframe, #pastConcerts iframe {
        width: 500px;
        height: 295px;
        margin: 0.5em 0.5em;
    }

    #concert section {
        width: 80%;
    }

    #gigs img {
        height: 20em;
    }

    #gigs p {
        font-size: 100%;
    }

    #merch img {
        height: 25em;
    }

    #contact h1 {
        margin-top: 0em;
    }
    
    #contact div {
        float: none;
        padding: 1em 2em;
    }
    
    #contact i {
        color: #042536;
        padding-left: 5.8em;
        padding-top: 1em;
        margin: 0 auto;
    }

    form {
        padding-top: 2em;
        padding-right: 8.5em
    }
}

@media screen and (max-width:450px) {
    [src*="ootdhLogo"] {
        display: block;
        float: left;
        height: 6em;
        padding: 1em 0 1em 0.5em;
        position: relative;
        margin-left: 0;
        margin-right: 0;
        right: 0;
    }
    
    nav {
        display: none;
    }

    #miniNav {
        display: block;
    }
    
    #home section:nth-child(2) {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
    }

    #home section:nth-child(3) {
        margin-top: 0;
        float: none;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
    }

    #home section:nth-child(4) {
        float: none;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 70%;
        padding: 2em;
    }
    
    #about>section>div:first-child {
        float: none;
        max-height: 20em;
        display: block;
        margin-left: auto;
        margin-right: auto;
        width: 80%;
        margin-top: 2em;
    }

    #about>section>div:nth-child(2) {
        padding: 2em;
    }

    p {
        margin: 0 auto;
        width: 80%;
    }

    footer section:first-child img {
        float: left;
        height: 3.3em;
        position: relative;
        padding: 0;
        padding-top: 2em;
    }

    footer p {
        width: 100%;
        margin: 0;
    }

    footer section {
        width: 70%;
    }

    #audition h3 {
        width: 70%;
        text-align: center;
        margin: 0 auto;
    }

    #history {
        margin-top: 0;
    }

    #members {
        grid-template-columns: 1fr 1fr;
    }

    #members img {
        width: 250px;
        height: 350px;
    }

    #memberInfo {
        width: 80%;
        left: 0.6em;
    }

    #preA {
        width: 80%;
    }

    #albums {
        grid-template-columns: 1fr;
    }

    #music {
        grid-template-columns: 1fr;
    }

    #music iframe, #pastConcerts iframe {
        margin: 0.5em 1em;
        width: 100%;
        height: 100%;
    }

    #pastConcerts {
        grid-template-columns: 1fr;
    }

    #concert section {
        width: 80%;
    }

    #gigs {
        grid-template-columns: 1fr;
    }

    #gigs img {
        height: 18em;
    }

    #gigs p {
        font-size: 90%;
    }

    #merch {
        grid-template-columns: 1fr;
    }

    #merch img {
        height: 18em;
    }

    #contact h1 {
        margin-top: 0em;
    }
    
    #contact div {
        float: none;
        padding: 1em 2em;
    }
    
    #contact i {
        color: #042536;
        padding-left: 2em;
        padding-top: 1em;
        margin: 0 auto;
    }

    form {
        padding-top: 2em;
        padding-right: 0;
        width: 100%;
    }

    input:not([type="submit"]), textarea {
        width: 12em;
    }
}