/******* CSS RESET ********/
img {
    max-width: 100%;
    height: auto;
}
h1, h2, h3, p, ul, ol {
    margin: 0;
    padding: 0;
}
nav ul, nav ol {
    list-style-type: none;
}

/********* Base Styles *********/

body {
    font-family: 'Open Sans Condensed', sans-serif;
    font-weight: 300;
    color: #ebebeb;
}

header, section, footer {
    padding: 15px;
}

header {
    text-align: center;
}

header h1 {
    font-size: 20vw;
    letter-spacing: -4px;
    text-transform: uppercase;
    font-weight: 700;
}

header h2 {
    color: #303030;
    font-size: 24px;
}

footer h1 {
    font-size: 10vw;
    text-transform: uppercase;
    font-weight: 700;
}

footer h2 {
    font-size: 24px;
}

.audio { color: #f69331; }
.space { color: #40606f; }
footer .space { color: #bdd4de; }

section#new-release { background: #ebebeb; }
section#coming-soon { background: #85a0ad; }
#top article:first-of-type { background: #85a0ad; }
#top article:last-of-type { background: #793f04; }

#top {
    padding: 0;
    display: flex;
    flex-direction: column;
}
#top article {
    padding: 15px;
}

.grid {
    padding: 15px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

/************ Flip Card **************/

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

/************ Mobile Navigation **************/

#mobilenav {
    display: block;
    background: #f69331;
    padding: 10px;
    text-align: right;
    cursor: pointer;
}

#mobilenav h2 {
    font-size: 24px;
    color: #fff;
}

#mainnav {
    display: none;
    background: #f69331;
    width: 100%;
}

#mainnav ul {
    display: flex;
    flex-direction: column;
}

#mainnav ul li a {
    display: block;
    color: #ebebeb;
    font-weight: 700;
    font-size: 24px;
    line-height: 50px;
    text-decoration: none;
    text-transform: uppercase;
    text-align: right;
    padding: 0 20px;
    border-bottom: 1px solid #ca6a0c;
}

#mainnav ul li a:hover {
    background: #40606f;
}

/********** Footer Layout **********/

footer {
    display: flex;
    flex-direction: column;
    background: #793f04;
    gap: 15px;
}

footer section {
    padding: 15px 0;
}

footer section:last-of-type {
    padding-left: 5px;
}

/********** Typography **********/

h2 {
    font-size: 36px;
    text-transform: uppercase;
    font-weight: 700;
}

p {
    line-height: 1.3em;
}

/********* Responsive Layouts **********/

@media only screen and (min-width: 600px) {
    #top {
        flex-direction: row;
    }

    .grid {
        grid-template-columns: repeat(4, 1fr);
    }

    #mobilenav {
        display: none;
    }

    #mainnav {
        display: block;
    }

    #mainnav ul {
        flex-direction: row;
    }

    #mainnav ul li {
        flex: 1;
    }

    #mainnav ul li a {
        text-align: center;
        border-bottom: none;
        border-right: 1px solid #ca6a0c;
    }

    header {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    header h1 {
        font-size: 10vw;
    }

    header h2 {
        font-size: 3.6vw;
    }

    #top p, footer p {
        font-size: 24px;
    }
}

@media only screen and (min-width: 960px) {
    #page {
        width: 960px;
        margin: auto;
    }

    header h1, footer h1 {
        font-size: 100px;
    }

    header h2 {
        font-size: 36px;
    }
}
