* {
  border: 0;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  background-image: url("http://tgy-informatik.dk/keyboard_background.jpg");
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  font-family: Arial, Helvetica, sans-serif;
}

header {
  background-color: rgba(211, 211, 211, 0.75);
}

.overskrift-flexbox {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
}

#overskrift {
  font-size: 30px;
  text-align: center;
  margin: auto;
}

h1 {
  text-align: center;
}

.flex-container {
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  background-color: rgba(255, 255, 255, 0.75);
}

.forside_box {
  text-align: left;
  background-color: rgba(255, 255, 255, 0.9);
  width: 50%;
  padding: 40px;
  margin: 15px;
  position: relative;
}

.spil {
  margin: 20px;
  display: flex;
  justify-content: center;
}

/* Sørg for at Scratch-iframe skalerer responsivt og ikke overskrider skærmen */
.spil iframe {
  width: 485px;
  max-width: 100%;
  height: 402px;
}

#spacer {
  clear: both;
  height: 10px;
  position: relative;
}

/* --- NAVIGATION (Standard Desktop) --- */
.topnav {
  background-color: black;
  position: relative;
}

.nav-links {
  display: flex;
  flex-direction: row;
}

.topnav a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

.dropdown {
  position: relative;
}

.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 10;
}

.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

.dropdown:hover .dropdown-content {
  display: block;
}

