/*
 *
 * Sizes in this stylesheet are optimized for mini smarphones.
 * We use the file responsive.css to build up on this and
 * make the page look good on bigger devices too
 *
 */

/*
 *
 * Variables
 *
 */

:root {
  --site-max-width: 1500px;
  --yellow: #ffee35;
  --red: #e6523e;
  --black: #000;
  --white: #fff;
  --color-bg: #cbcede;
  --color-shadow: rgba(50, 50, 0, 0.5);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  grid-template-columns: repeat(5, 20%);
  display: grid;
  overflow-x: hidden;
  margin: 0 auto 0 auto;
  max-width: var(--site-max-width);
  height: 100%;
  min-height: 100%;
  padding: 10px;
  box-sizing: border-box;
  background-color: var(--color-bg);
  font-size: 15px;
  font-family: 'Open Sans', sans-serif;
}

.visible {
  display: inline-block;
}

.hidden {
  display: none;
}

.hamburger {
  position: fixed;
  z-index: 6;
  border: 2px solid var(--black);
  width: 35px;
  height: auto;
  cursor: pointer;
}

.hamburger.in-header {
  top: 24px;
  left: 24px;
}

.hamburger.out-header {
  top: 15px;
  left: 20px;
}

.hamburger.top {
  background-color: var(--yellow);
}

.hamburger.bottom {
  background-color: var(--red);
}

.x {
  position: fixed;
  z-index: 6;
  top: 24px;
  left: 24px;
  width: 33px;
  height: auto;
  cursor: pointer;
}

header,
main {
  max-width: var(--site-max-width);
}

header,
.header-content,
.header-subtitle,
h1,
main,
footer,
.footer-content,
.footer-credits,
.footer-bg,
nav,
article,
h2,
.news-picture-container,
.news-text {
  grid-column: 1/6;
  display: grid;
}

header {
  position: relative;
  z-index: 5;
  align-items: start;
  margin: 0 0 25px 0;
  font-size: 1em;
  color: var(--white);
}

.header-bg {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 65px;
  background: repeating-linear-gradient(
    135deg,
    var(--yellow),
    var(--yellow) 30px,
    var(--black) 30px,
    var(--black) 60px
  );
}

.header-content {
  position: relative;
  z-index: 1;
  display: inline-block;
  margin: 10px 10px 0 10px;
  box-shadow: 3px 3px 2px var(--color-shadow);
  border: 3px solid var(--white);
  height: 110px;
  background-color: var(--black);
  font-family: 'Special Elite', cursive;
  text-align: center;
}

h1 {
  margin: 30px 0 5px 0;
  font-size: 1.6em;
  text-transform: uppercase;
}

h2 {
  margin: 0 0 0.4em 0;
  font-size: 0.75em;
}

nav {
  position: fixed;
  z-index: 30;
  align-content: center;
  top: 0;
  left: 0;
  -webkit-transform: translate(-800px, 0);
  transform: translate(-800px, 0);
  transition: transform 0.3s ease;
  width: 100%;
  height: 100%;
  font-size: 2em;
  color: var(--black);
}

nav.open {
  -webkit-transform: translate(0, 0);
  transform: translate(0, 0);
}

nav.top {
  background-color: var(--yellow);
}

nav.bottom {
  background-color: var(--red);
}

nav ul {
  margin: 0;
  padding: 0;
  list-style-type: none;
}

.menu-entry {
  margin: 0.5em;
  padding: 10px 0 0 0;
  cursor: pointer;
}

.menu-entry:hover {
  background-color: var(--black);
}

.menu-entry.top:hover {
  color: var(--yellow);
}

.menu-entry.bottom:hover {
  color: var(--red);
}

h3 {
  margin: 0 0 1em 0;
  padding: 0;
}

article {
  margin: 0 0 9px 0;
  filter: drop-shadow(3px 3px 2px var(--color-shadow));
}

.article-content {
  margin: 0 11px 11px 11px;
  padding: 20px;
  background-color: var(--white);
}

.news-picture-container {
  position: relative;
  overflow: hidden;
  width: 100%;
}

.news-picture-container:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  box-shadow: inset 0 0 150px 60px rgba(0, 0, 0, 0.8);
  border-radius: 50%;
  width: 150%;
  padding: 0 0 100% 0;
}

.news-picture {
  display: block;
  width: 100%;
}

footer {
  position: relative;
  align-items: end;
  font-size: 0.75em;
  margin: 5px 0 0 0;
  color: var(--white);
}

footer ul {
  padding: 0 0 0.7em 0;
  width: 100%;
  margin: 0;
}

footer li {
  display: inline;
  margin: 0 1em 0 0;
  text-align: center;
}

footer a {
  text-decoration: none;
  color: var(--white);
}

footer a:hover {
  color: var(--yellow);
}

.footer-bg {
  position: absolute;
  z-index: 0;
  width: 100%;
  height: 65px;
  background: repeating-linear-gradient(
    135deg,
    var(--red),
    var(--red) 30px,
    var(--black) 30px,
    var(--black) 60px
  );
}

.footer-content {
  position: relative;
  z-index: 1;
  margin: 0 10px 10px 10px;
  box-shadow: 3px 3px 2px var(--color-shadow);
  border: 3px solid var(--white);
  background-color: var(--black);
  text-align: center;
}

.footer-credits {
  position: relative;
  align-content: center;
  align-items: center;
  width: 100%;
  margin: 0;
  padding: 1em 0.5em;
}

.footer-credits-title {
  font-weight: 600;
  color: var(--red);
}

.back-to-top {
  position: fixed;
  z-index: 2;
  display: inline-block;
  border: 2px solid var(--black);
  width: 35px;
  height: auto;
  background-color: var(--red);
  cursor: pointer;
}

.back-to-top.in-footer {
  bottom: 27px;
  right: 27px;
}

.back-to-top.out-footer {
  right: 20px;
  bottom: 15px;
}

.back-to-top.visible {
  display: block;
}

.back-to-top.hidden {
  display: none;
}
