
html, body {
    padding: 0;
    margin: 0;
    font-family: 'Courier New', Courier, monospace;
}

body {
    background-color: darkgray;
}

main {
    width: 600px;
    margin-left: auto;
    margin-right: auto;
    min-height: 100vh;
    background-color: white;
    border-radius: 0 0 20px 20px;
    padding: 20px 70px;
    margin-top: 0;
    margin-bottom: 20px;
}

/* subpages without hero get the old slab look */
.page main {
    margin-top: 20px;
    border-radius: 20px;
}

/* side ribbon: obsidian-style, text buttons */
.ribbon {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 80px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 18px;
    padding-top: 22px;
}

.ribbon a {
    font-size: 11px;
    color: #1a1a1a;
    text-decoration: none;
    white-space: nowrap;
}

.ribbon a:hover {
    text-decoration: underline;
}

/* provbild over the top of the page slab */
.hero {
    display: block;
    width: 600px;
    margin: 20px auto 0;
    border-radius: 20px 20px 0 0;
}

.video iframe {
    width: 100%;
    max-width: 560px;
    aspect-ratio: 16 / 9;
    height: auto;
    border: 0;
}

footer {
    width: 600px;
    margin: 0 auto 20px;
    text-align: center;
    font-size: 12px;
    color: #333;
}

/* styles for mobile devices */
@media only screen and (max-width: 767px) {
  main {
    width: calc(100vw - 40px);
    border-radius: 0;
    margin: 0;
    padding: 20px;
  }
  .ribbon {
    position: static;
    width: 100%;
    flex-direction: row;
    justify-content: center;
    gap: 16px;
    padding: 10px 0 0;
  }
  .hero {
    width: calc(100vw - 40px);
    border-radius: 0;
    margin: 10px auto 0;
  }
  footer {
    width: calc(100vw - 40px);
  }
}
