* {
  border: 0;
  margin: 0;
  padding: 0;
}

body {
  background-image: url("http://tg-informatik.dk/keyboard_background.jpg");
  background-position: center; /* Center the image */
  background-repeat: no-repeat; /* Do not repeat the image */
  background-size: cover; /* Resize the background image to cover the entire container */
  font-family: Arial, Helvetica, sans-serif;
}

.forside_box {
  text-align: left;
  background-color: white;
  opacity: 75%;
  width: 40%;
  padding: 50px 50px 50px 50px;
  margin: 15px 15px 15px 15px;
  z-index: -1;
  position: relative;
}

.spil {
  margin: 20px;
}

.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;
}
header {
  background-color: lightgrey;
  opacity: 75%;
}

.flex-container{
  display: flex;
  flex-wrap: wrap;
  flex-direction: row;
  justify-content: space-around;
  background-color: white;
  opacity: 75%;
}

#spacer{
  clear: both;
  float: none;
  height: 10px;
  z-index: -1;
  position: relative;
}

/* Hide hamburger on desktop */
.hamburger {
  display: none;
}

@media only screen and (max-width: 600px) {
  /* For mobile phones: */
  nav, aside, article, section {
    width: 100%;
  }

.topnav a {
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}
.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}
.topnav {
  display: none;
  background-color: black;
  overflow: hidden;
}
.hamburger {
    display: block; /* Show hamburger icon */
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}


.nav-links.active {
    display: flex; /* Show when 'active' class is added */
}
.nav-links {
    display: flex;
    flex-direction: column; /* Stack links vertically */
    width: 100%; /* Take full width */
    /* Initially hidden */
    display: none;
}
}

.nav-links a {
  color: white;
  text-decoration: none;
}

.topnav {
  background-color: black;
  overflow: hidden;
}

.nav-links {
  display: flex;
  flex-direction: row;
}

/* Style the links inside the navigation bar */
.topnav a {

  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

/* Add an active class to highlight the current page */
.active {
  background-color: #04AA6D;
  color: white;
}

/* Dropdown container - needed to position the dropdown content */
.dropdown {
  
  overflow: hidden;
}

/* Style the dropdown button to fit inside the topnav */
.dropdown .dropbtn {
  font-size: 17px;
  border: none;
  outline: none;
  color: white;
  padding: 14px 16px;
  background-color: inherit;
  font-family: inherit;
  margin: 0;
}

/* Style the dropdown content (hidden by default) */
.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: 1;
}

/* Style the links inside the dropdown */
.dropdown-content a {
  float: none;
  color: black;
  padding: 12px 16px;
  text-decoration: none;
  display: block;
  text-align: left;
}

/* Add a dark background on topnav links and the dropdown button on hover */
.topnav a:hover, .dropdown:hover .dropbtn {
  background-color: #555;
  color: white;
}

/* Add a grey background to dropdown links on hover */
.dropdown-content a:hover {
  background-color: #ddd;
  color: black;
}

/* Show the dropdown menu when the user moves the mouse over the dropdown button */
.dropdown:hover .dropdown-content {
  display: block;
}
