/********* CSS RESETS *********/
img { max-width: 100%; }
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }

nav ul, nav ol { list-style-type: none; }

/********* Basic Styles *********/
body {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 300;
    color: #ebebeb;
}
header { padding-bottom: 20px; }
section { padding: 30px 15px; }
#top { padding: 0; }
#top article { padding: 30px 15px; }
#top article:first-of-type { background: #85a0ad; }
#top article:last-of-type { background: #793f04; }
#new-release { background: #ebebeb; }
#coming-soon { background: #85a0ad; }

/********* Typography *********/
h1 { text-transform: uppercase; font-weight: 700; }
h2 { font-size: 36px; text-transform: uppercase; font-weight: 700; }
p { line-height: 1.3em; }
#new-release h2 { color: #303030; }
header h1 { font-size: 15vw; text-align: center; letter-spacing: -4px; }
header h2 { color: #303030; }
header div:last-of-type { text-align: center; }
footer h1 { font-size: 45px; }
footer h2 { font-size: 24px; }
.audio { color: #f69331; }
.space { color: #40606f; }
footer .space { color: #bdd4de; }

/********* Grid *********/
.grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px; margin-top: 20px; }
.grid article { min-width: 0; }

/********* Footer *********/
footer { display: flex; background: #793f04; padding: 15px; }
footer section { flex: 1; padding: 15px 0; }
footer section:last-of-type { padding-left: 5px; padding-top: 30px; }

/********* Card Flip *********/
.flip-container { perspective: 1000px; }
.flip-container:hover .back, .flip-container.hover .back { transform: rotateY(0deg); }
.flip-container:hover .front, .flip-container.hover .front { transform: rotateY(180deg); }
.flip-container, .front, .back { width: 100%; }
.flipper {
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    height: 0;
    padding-top: 100%;
}
.front, .back {
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
}
.front { transform: rotateY(0deg); z-index: 2; }
.back {
    transform: rotateY(-180deg);
    background: #f69331;
    padding: 10px;
    box-sizing: border-box;
}
.front img { display: block; width: 100%; }
.title { text-transform: uppercase; font-size: 14px; }
.name { margin-bottom: 10px; font-weight: 700; color: #40606f; }

/********* Navigation Styles *********/
#navigation {
    position: relative;
}
#mobilenav {
    background: #f69331;
    margin-bottom: 20px;
    padding-right: 20px;
}
#mobilenav h2 {
    text-align: right;
    line-height: 50px;
    color: #ebebeb;
    font-size: 36px;
}
#mainnav {
    width: 200px;
    position: absolute;
    top: 50px;
    right: 0;
    border-top: 1px solid #ca6a0c;
    z-index: 3;
}
#mainnav ul {
    background: #f69331;
}
#mainnav ul li a {
    display: block;
    background: #f69331;
    color: #ebebeb;
    font-weight: 700;
    font-size: 36px;
    line-height: 50px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: right;
    padding-right: 20px;
    width: 180px;
    border-bottom: 1px solid #ca6a0c;
}
#mainnav ul li a:hover {
    background: #40606f;
}

/********* Responsive Layout *********/
@media only screen and (min-width: 600px) {
    header h1 { font-size: 80px; }
    #top { display: flex; }
    #top article { flex: 1; }
    .grid { grid-template-columns: repeat(4, 1fr); }
    #mobilenav {
        display: none;
    }
    #mainnav {
        box-sizing: border-box;
        position: static;
        width: 100%;
        margin-bottom: 20px;
        border-top: none;
        border-left: 1px solid #ca6a0c;
    }
    #mainnav ul {
        display: flex;
    }
    #mainnav ul li {
        flex: 1;
    }
    #mainnav ul li a {
        width: 100%;
        box-sizing: border-box;
        padding: 0;
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #ca6a0c;
    }
}
@media only screen and (min-width: 1000px) {
    #page { max-width: 1200px; margin: auto; }
    .grid { gap: 20px; }
}
