body {
    position: relative;
    height: 100vh;
    width: 100vw;
    display: flex;
    background: #0E3FA9;
    color: #ffaa00;
    margin: 0;
}
header {
    width: 200px;
    padding: 1px;
}
h2, #join h3 {
    font-family: 'Machine';
    text-align: center;
    letter-spacing: 3px;
}
h2 {
    margin: 0.5em auto;
    font-size: 200%;
}
strong {
    letter-spacing: 1px;
}
p, hr {
    margin: 0;
}

header p {
    margin: 1em;
}
header a {
    color: #ffaa00;
}
nav {
    display: flex;
    flex-direction: column;
    margin: auto;
    width: fit-content;
    text-align: center;
}

main {
    flex-grow: 1;
    overflow: auto;
    padding: 1em;
    box-sizing: border-box;
    margin-bottom: 20px;
}
section {
    max-width: 800px;
    margin: auto;
    width: 100%;
    overflow: auto;
    box-sizing: border-box;
}

article {
    overflow: auto;
}
article.shelves {
    border: 6px solid #45221c;
    outline: 8px solid #69342b;
    box-sizing: border-box;
    display: flex;
    flex-wrap: wrap;
    gap: 15px 4px;
    width: calc(100% - 46px);
    margin: 20px auto;
    padding-top: 5px;
    background: repeating-linear-gradient(#2c1512, #331915 140px, #42271c 140px, #40251a 162px, #69342b 162px, #69342b 170px);
}
.dvds {
    position: relative;
    width: 110px;
    height: 155px;
    cursor: pointer;
    transform-style: preserve-3d;
    transform-origin: center right;
    transition: transform 1s;
    margin: 0 5px;
    color: black;
}
.dvds.is-flipped {
  transform: translateX(-100%) rotateY(-180deg);
}
.dvd-face {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  font-size: 12px;
}
div.dvd-face {
    transform: rotateY(180deg);
    background: #0095da;
    border-radius: 5px 5px 3px 3px;
    box-sizing: border-box;
    padding: 5px;
}
div.dvd-face > div {
    height: 100%;
    width: 100%;
    overflow: auto;
}
div.dvd-face > div > div {
    background: beige;
    padding: 2px 3px;
}

h3 {
    border: 3px inset transparent;
    border-bottom: 3px inset #0095da;
    border-top: unset;
    text-align: center;
    margin: 0;
}
table { 
    border-collapse: collapse;
    width: 100%;
   margin: 4px 0; 
}
th {
  text-align: left;
  padding: 1px;
}
td {
    padding: 1px;
    border-left: 1px dotted #0095da;
}
tr {
  border: 1px solid #0095da;
}
.creator-info {
    margin-top: 2px;
}
.creator-info textarea {
    width: 89px;
    font-size: 10px;
    height: 40px;
    resize: vertical;
}
div.dvd-face hr {
  border-color: #0095da;
}


#join article {
  width: 85%;
  padding: 10px;
  border: 5px groove #ffa903;
  margin: 10px auto;
  border-radius: 5px;
}
#join article p {
  margin: 1em auto;
  max-width: 525px;
}
#join h3 {
    font-size: 150%;
}
#join textarea {
  margin: 1em 0 1em 15%;
  width: 69%;
  height: 196px;
  padding: 5px;
  color: #ffa903;
  background: #0e3fa9;
  border: 3px groove #ffa903;
  border-radius: 5px;
}
#templates {
    display: flex;
    gap: 5px;
    flex-wrap: wrap;
  background: #ffa903;
  padding: 5px;
  border-radius: 5px;
  border: 2px solid #0e3fa9;
  outline: 2px solid #ffa903;
  outline-offset: 1px;
  width: fit-content;
  margin: auto;
}
#templates > div {
    display: flex;
    flex-direction: column;
    text-align: center;
}
#templates img {
  background: white;
  border-radius: 5px 5px 4px 4px;
}

footer {
  position: fixed;
  bottom: 0;
  width: calc(100% - 10px);
  text-align: center;
  padding: 5px;
  background: #0e3fa9;
}

footer a {
  color: #ffa903;
}

@media screen and (max-width: 660px) {
    body {
        flex-direction: column;
    }
    header {
        width: 99%;
        text-align: center;
    }
    main {
        overflow: unset;
    }
    article.shelves {
        width: calc(100% - 10px);
    }
}