/* CSS Document */

* {
    box-sizing: border-box;
}

body {
    font-size: 16px;
}


#wrapper {
    width: 100%;
    min-height: 100vh;
    margin: 0 auto;
    display: grid;
    grid-template-areas:
        "header"
        "menu"
        "main"
        "footer";
    grid-template-columns: 1fr;
    grid-template-rows: 100px 50px minmax(650px, auto) 100px;
    background-color: white;
}

header {
    grid-area: header;
    margin: 10px 10px 20px 10px;
    display: grid;
    grid-template-areas:
        "logo title title title";
    grid-template-columns: 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr;
    background-color: white;
    width: auto;
    height: 70px;
    padding: 0 30px 30px 30px;
}


header img {
    grid-area: logo;
    width: 60px;
    height: 62px;
}

header h1 {
    grid-area: title;
    line-height: 35px;
    font-size: 36px;
    font-family: 'Myriad Pro';
    font-weight: bold;
    text-align: right;
}



.menubar {
	grid-area: menu;
	background-color: #003366;
	text-align:  center;
    width: auto;
    padding: 0 50px 15px 10px;
    text-decoration: none;
    justify-content: center;
}

.skip-nav {
    position: absolute;
    top: -40px;
}

.skip-nav:focus {
    top: 0;
    background-color: #000;
    color: #fff;
    padding: 0.5em;
    z-index: 1000;
}


nav ul {
    list-style: none;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-around;
    font-family: 'Myriad Pro';
}

nav ul li a {
    color: white;
    text-decoration: none;
}

a:focus,
button:focus,
input:focus,
textarea:focus {
    outline: 2px dashed #000;
    outline-offset: 3px;
}

nav ul li a:focus,
nav ul li a:hover {
    color: rgb(13, 255, 0);
    text-decoration: underline;
}

.menu {
    display: none;
    background-color: #003366;
}


main {
    grid-area: main;
    background-color: #ccf2f4;
    max-width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 1em;
    font-family: 'Myriad Pro';
    padding: 10px;
}

#errorpage {
    grid-area: main;
    max-width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
    padding: 1em;
}

#homemain {
    grid-area: main;
    max-width: 100%;
    min-height: auto;
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: 1fr;
}

#homemain h1,
#homemain h2,
#homemain p {
    padding: 10px;
    margin: 0 auto;

}
#form-container {
    width: 50%;
}
#filmburn {
    width: 900px;
}

#aboutusmain {
    grid-area: main;
    max-width: 100%;
    min-height: auto;
    padding: 10px;
    display: grid;
    grid-template-areas:
        "main aside";
    grid-template-columns: repeat(2, 1fr);
    
}

#aboutusmain h1,
#aboutusmain h2,
#aboutusmain p {
    padding: 10px;
    margin: 0 auto;
}

#aboutusaside p {
    padding: 10px 0px 10px 0px;
}

#history {
    grid-area: main;

}

#aboutusaside {
    grid-area: aside;
    padding: 10px;
    color: white;
}


#newreleasesmain, #classicsmain {
    grid-area: main;
    max-width: 100%;
    min-height: auto;
    padding: 10px;
    display: grid;
    grid-template-areas:
        "aside main";
    grid-template-columns: 3fr 2fr;
    grid-gap: 0.6em;
}

#newreleasesmain h2, #classicsmain h2 {
    font-weight: bold;
    margin-bottom: 1em;
    text-align: center;
}


#newreleasesaside, #classicsaside {
    width: 100%;
    min-height: auto;
    font-family: 'Myriad Pro';
    padding: 10px;
    color: white;
}

article#newreleases, article#classics {
    grid-area: aside;
    width: 100%;
}

section#cards {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
    color: black;
}

section#cards section {
    box-sizing: initial;
    width: 175px;
    height: auto;
    background-color: white;
    border: 1px black solid;
    border-radius: 5px;
    box-shadow: 5px 5px 5px;
    padding: 10px;
    margin: 1em;
}

section#cards p{
    font-size: 12px;
    text-align: left;
}

section#cards img + p{
    font-size: 12px;
    text-align: center;
}



#cards h2 {
    flex-basis: 100%;
    margin-bottom: .5em;
    font-weight: bold;
    text-align: center;
    color: white;
}




section#cards section h3 {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 0.5em;
    text-align: center;
}

section#cards section img {
    width: 150px;
    margin: 0 12.5px;
}

section#cards section img + p {
    color: blue;
}

section#cards section p {
    margin-bottom: 0.5em;
}

section#cards section a {
    text-decoration: none;
    color: blue;
}

aside {
    grid-area: aside;
    max-width: 100%;
    min-height: auto;
    background-color: #003366;
}

main#contactusmain {
    grid-area: main;
    max-width: 100%;
    min-height: auto;
    display: grid;
    grid-template-areas:
        "smain";
    grid-template-columns: 1fr;
    padding: 10px;
}



aside#contactusaside {
    grid-area: smain;
    max-width: 100%;
    min-height: auto;
    display: grid;
    grid-template-areas: 
    "asidex maintextx";
    grid-template-columns: repeat(2, 1fr);
    background-color: aqua;
}

#contactusaside article#contacts1 {
    grid-area: asidex;
    width: 100%;
    background-color: #003366;
    padding: 10px;
    color: white;
}

article#contacts1 p {
    width: 95%;
}

#contactusaside article#contacts2 {
    grid-area: maintextx;
    padding: 10px;
    width: auto;
    background-color:#ccf2f4;
}

input {
    width: fit-content;
}

footer {
    grid-area: footer;
    background-color: black;
    color: white;
    width: auto;
    height: 100px;
    padding-left: 10px;
}

footer a {
    text-decoration: none;
    color: aqua;
}

table, td, th {
    padding: 5px;
    border: 1px white solid;
    border-collapse: collapse;
    text-align: center;
}

table {
    width: 100%;
    color: white;
}

#form {
    width: 50%;
    float: left;
}

fieldset {
    padding: 0.5em 0.5em;
    margin: 0.5em 0.5em;
}

legend {
    text-align: center;
    width: 7em;
    margin: 0 0 0 0.5em;
}

label {
    text-align: left;
    justify-content: space-around;
    width: 20em;
}

input {
    padding: 0.15em;
    width: 10em;
    border: 1px solid #000;
}

select {
    display: block;
    margin-bottom: 10px;
}


fieldset input {
    width: 100%;
    margin-bottom: 10px;
}


input [type="checkbox"] {
    margin: 0px;
    width: 1em;
}

textarea {
    width: 100%;
    margin-bottom: 10px;
}

#terms{
    position: relative;
    float: left;
    width: 100%;
}

#iframe-section {
    float: left;
    width: 50%;
    margin: 0;
    padding: 0;
}

#iframe {
    width: 100%;
    height: 50vh;
    border: none;
    display: block;
}


input#terms {
    margin: 1px;
    width: 2em;
}

#submitbutton {
    width: 10em;
}

label {
    display: block;
}

label[for="terms"] {
    display: inline;
    margin-bottom: 10px;
}

label[for="postcode"] {
    margin-top: 10px;
}




@media screen and (max-width: 600px) {

    #wrapper {
        grid-template-rows: auto auto minmax(650px, auto) auto;
    }

    header {
        display: grid;
        grid-template-areas:
            "logo"
            "title";
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        align-items: center;
        height: auto;
        padding: 10px;
        text-align: center;
    }

    header img {
        grid-area: logo;
        margin: 0 auto;
    }

    header h1 {
        grid-area: title;
        font-size: 1.5rem;
        margin: 10px 0 0;
        line-height: 1.3;
        text-align: center;
        color: black;
        display: block;
    }

    .menubar {
        padding: 1em;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        padding: 0;
        margin: 0;
    }

    nav ul li {
        width: 100%;
        text-align: center;
        margin-bottom: 5px;
    }

    nav ul li a {
        display: block;
        padding: 0.5em 1em;
    }

    section#cards {
        flex-direction: column;
        align-items: center;
    }

    section#cards section {
        width: 90%;
        margin: 0.5em 0;
    }

    main#contactusmain {
        display: flex;
        flex-direction: column;
    }

    #form {
        width: 100%;
    }

    aside#contactusaside {
        order: -1;
        width: 100%;
        display: block;
    }

    article#contacts1, article#contacts2 {
        width: 100% !important;
        padding: 10px;
        box-sizing: border-box;
    }

    #aboutusmain, #classicsmain, #newreleasesmain {
        grid-template-columns: 1fr !important;
        grid-template-areas: "main" "aside";
    }

    #classicsmain, #newreleasesmain {
        padding: 0 10px 10px 10px;
    }

    article#newreleases article#classics, #newreleasesaside, #classicsaside {
        width: 100%;
    }

    #form-container, #filmburn {
        width: 100%;
        max-width: 100%;
    }

    input, select, textarea {
        font-size: 1rem;
        width: 100%;
    }

    iframe#iframe {
        width: 100%;
        height: 50vh;
        margin: 0;
        border: none;
        display: block;
    }
    
    #iframe-section {
        width: 100%;
        margin: 0;
        padding: 0;
    }


}







