body {
  background-color: #008080;
  font-family: Georgia, serif;
  color: #2f2f1f;
  margin: 0;
  padding: 0;
  font-size: 1.1rem;
}

#wrapper {
  max-width: 52rem;
  width: 95vw;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  border: 0.2em double #755c28;
  background-color: #d5ffff;
  box-shadow: 0 0 0.7em #c4b998;
  padding: 0; 
}

#header {
  background-image: url("/images/header.png");
  background-size: cover;
  min-height: 11em; 
  width: 100%;
  display: flex;
  align-items: center;
  font-family: 'Garamond', serif;
  border-bottom: 0.15em solid #a3853a;
  padding: 0; /* Remove padding to avoid space */
  gap: 1em;
}

#header > * {
  padding-left: 1em;
  padding-right: 1em;
}

#header h1 {
  background-color: rgba(255, 255, 255, 0.3);
  text-shadow: 0.07em 0.07em 0.13em #555;
  padding: 0.4em 1em;
  display: inline-block;
  border-radius: 0.5em;
  color: #000;
  font-weight: bold;
  font-size: 2.2em;
  margin: 0;
}

.logo-a {
  display: inline-block;
  height: 100%;
}

.logo {
  display: block;
  height: 7em;
  margin: 0.5em 0.2em 0.5em 0;
  max-width: 100%;
}

#nav {
  background-color: #42019c;
  width: 100%;
  height: 2.5em;
  box-sizing: border-box;
  margin: 0;
  flex: 0 0 auto;
  color: #dcb9ad;
  padding: 0;
  font-family: Georgia, serif;
  display: flex;
  flex-wrap: nowrap; 
  gap: 0.5em;
  align-items: center;
  justify-content: center;;
}

#nav > * {
  padding-left: 0.5em;
  padding-right: 0.5em;
}

#nav a {
  margin: 0.2 0.3em;
  color: #d5ffff;
  text-decoration: none;
  font-weight: bold;
  font-size: 1em;
}

#nav a:hover {
  text-decoration: underline;
}

.rolling-text {
  margin-top: 0.5em;
}

#content,
#content-fp,
#content-about,
#content-table {
  padding: 1.5em 1em;
  min-height: 10vh;
  box-sizing: border-box;
}

#content-about {
  min-height: 15vh;
}

#content-table li {
  line-height: 1.6;
  margin-bottom: 0.5em;
}

#kommuninfo {
  position: relative;
  padding: 0 1em 0 1em;
}

/* #kommuninfo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80%;
  height: 90%;
  background-image: url('/images/kommun.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 90%;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
} */

/* #kommuninfo > * {
  position: relative;
  z-index: 1;
} */

.image-left {
  float:left; 
  width: 40%;
  height: 20;
  margin-right: 1em;
  max-width: 40vw;
}

.about-image {
  float: left;
  display: block;
  width: 35%;
  margin-right: 0.7em;
  max-width: 15em;
}

#content img {
  max-width: 100%;
  height: auto;
  display: block;
}

#nuspelas {
  display: flex;
  align-items: center; 
  gap: 1em;
  padding: 1.5em 1em;
}

#nuspelas h4 {
  margin-left: 0.5em;
}

.list li {
  margin: 0.5em 0;
}

.kalender-knapp {
  background-color: #006600;
  color: white;
  border: 0.15em outset #004400;
  padding: 0.4em 1em;
  cursor: pointer;
  font-family: Verdana, sans-serif;
  font-size: 1em;
}

.kalender-knapp:active {
  border: inset 0.15em #004400;
}

.kalender-knapp.tabort {
  background-color: #b40500;
}

#sponsors {
  margin: 2em 1em;
  padding: 0.5em;
  background-color: #f9d0d0;
  border: 0.15em dotted #b89c6f;
}

.login-module {
  display: flex;
  align-items: flex-start;
  gap: 2em;
  margin: 2em 1em;
  flex-wrap: nowrap;
}

.login-form {
  width: 18em;
  min-width: 12em;
  max-width: 100%;
  /* Remove width: 100% if present */
  background: #00334d;
  color: #d5ffff;
  padding: 1em;
  border: 0.15em solid #0099cc;
  border-radius: 0.3em;
  box-shadow: 0.15em 0.15em 0.5em #000;
  text-align: left;
}

.login-form h2 {
  margin-top: 0;
}

.login-form a {
  color: #b40500;
  text-decoration: none;
}

.login-form label {
  display: block;
  margin-top: 0.7em;
  margin-bottom: 0.2em;
}

.login-form input,
.login-form button {
  width: 100%;
  padding: 0.5em;
  margin-bottom: 0.7em;
  box-sizing: border-box;
  font-size: 1em;
}

.login-form button {
  background: #006600;
  color: white;
  border: 0.15em outset #004400;
  cursor: pointer;
}

.login-form button:active {
  border: 0.15em inset #004400;
}

.login-side-text {
  max-width: 25em;
  width: auto; 
  padding: 1em;
  background: rgba(255, 255, 255, 0.05);
  border-radius: 0.3em;
  font-size: 1em;
}

/* Registreringsformuläret */
.register-module-flash {
  padding: 1.5em 1em;
  background: linear-gradient(to bottom, #e0f0ff, #c0d8f0);
  border: 0.15em solid #003366;
  border-radius: 0.7em;
  box-shadow: 0.15em 0.15em 0.5em rgba(0,0,0,0.4);
  max-width: 32em;
  width: 100%;
  box-sizing: border-box;
  font-family: Verdana, sans-serif;
  margin: 2em 0;
}

.register-module-flash h2 {
  color: #003366;
  text-shadow: 0.07em 0.07em 0.13em #fff;
  margin-bottom: 1em;
}

.register-module-flash input[type="text"],
.register-module-flash input[type="number"],
.register-module-flash input[type="password"] {
  width: 100%;
  padding: 0.6em;
  border: 0.07em solid #666;
  border-radius: 0.3em;
  background: #fff;
  box-shadow: inset 0.07em 0.07em 0.2em #aaa;
  font-size: 1em;
  box-sizing: border-box; /* Prevent overflow */
  min-width: 0;
  max-width: 100%;
}

.register-module-flash button {
  background: linear-gradient(to bottom, #66aaff, #3366cc);
  border: 0.07em solid #003366;
  border-radius: 0.3em;
  color: white;
  padding: 0.7em 1.2em;
  cursor: pointer;
  font-weight: bold;
  text-shadow: 0.07em 0.07em 0.13em #000;
  box-shadow: 0.13em 0.13em 0.3em rgba(0,0,0,0.5);
  font-size: 1em;
}

.register-module-flash button:hover {
  background: linear-gradient(to bottom, #88ccff, #2255aa);
}

.feedback {
  font-size: 0.95em;
  color: red;
  margin-top: 0.3em;
}

.form-error {
  margin-top: 1em;
  color: darkred;
  font-weight: bold;
  background: #ffe0e0;
  border: 0.07em solid red;
  padding: 0.6em;
  border-radius: 0.3em;
}


.reklambanner {
  position: relative; /* Ensures absolute children are positioned inside */
  width: calc(100% - 2em);
  margin: 0 1em 1em 1em;
  min-height: 3em;
  max-height: 7em;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
}

.reklambanner img {
  max-height: 100%;
  max-width: 100%;
  object-fit: contain;
}

.banner-label {
  position: absolute;
  top: 0;          
  left: 0;          
  background: #fff;
  opacity: 0.7;
  color: #333;
  font-size: 0.6em; 
  font-family: Verdana, sans-serif;
  padding: 0.05em 0.3em; 
  border-radius: 0.15em;
  box-shadow: 0 2px 6px rgba(0,0,0,0.12);
  font-weight: bold;
  z-index: 2;
  pointer-events: none;
}

#footer {
  background-color: #eb5424;
  text-align: center;
  font-size: 0.8em;
  padding: 0.7em;
  color: #d5ffff;
  font-family: Georgia, serif;
}

#tabla-container {
  font-family: 'Georgia', serif;
}

h3 {
  color: #333366;
  border-bottom: 0.07em #888;
  margin-top: 1.5em;
}

#content-table h3 {
  color: #333366;
  border-bottom: 0.1em dotted #888;
  margin-top: 1.5em;
}



.blink {
  animation: blink-animation 1.2s steps(2, start) infinite;
}
@keyframes blink-animation {
  to {
    visibility: hidden;
  }
}
/*---------------------Radio------------------*/
.radio-player {
  width: 100%;
  max-width: 25em;
  padding: 0.8em;
  font-size: 1.1em;
  margin: 1em 0;
  border-radius: 0.32em;
  background: #1a1a1a !important;
  background-color: #1a1a1a !important;
  opacity: 1 !important;
}

.radio-player-header {
  padding: 0.4em;
  color:#0f0;
  border-radius: 0.25em;
  margin-bottom: 0.7em;
  text-shadow: 0.07em 0.07em 0.13em #000;
  border: 0.07em inset #555;
  font-size: 1.1em;
}

.radio-controls {
  display: flex;
  justify-content: space-between;
  gap: 0.5em;
  flex-wrap: wrap; 
}

.radio-controls .btn {
  min-width: 3em;
  flex: 1 1 3em;
  padding: 0.3em 0.6em;
  border: 0.07em solid #666;
  border-radius: 0.18em;
  font-size: 1em;
  background: #222;
  color: #0f0;
  font-weight: bold;
  font-family: monospace;
  cursor: pointer;
  transition: background 0.2s;
}

.radio-controls .btn:hover {
  background: #444;
}

.radio-status {
  background: #111;
  border: 0.07em inset #444;
  border-radius: 0.3em;
  padding: 0.5em;
  font-size: 0.95em;
  color: #0f0;
  font-family: monospace;
}

/* --- Responsive Design --- */
@media (max-width: 900px) {
  #wrapper {
    max-width: 98vw;
    padding: 1em 0.5em;
  }
  .radio-player {
    max-width: 100%;
    min-width: 12em;
  }
  .login-form,
  .register-module-flash {
    min-width: 10em;
    max-width: 100vw;
  }
  #nav {
    flex-wrap: wrap;         
    justify-content: center; 
    gap: 0.3em;              
    height: auto;           
  }
  #nav a {
    font-size: 0.98em;      
    margin: 0.2em 0.1em;
    padding: 0.3em 0.5em;
  }
}

@media (max-width: 600px) {
  body {
    font-size: 1em;
    padding: 0;
  }
  #wrapper {
    max-width: 100vw;
    border-width: 0.1em;
    box-shadow: none;
    padding: 0;
    /* padding: 0.5em 0.2em; */
  }
  #header {
    min-height: 6em; 
    font-size: 1em;
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    padding: 0.5em;
    gap: 0.5em;
    text-align: center; 
    width: 100%;
    box-sizing: border-box; 
  }
  #header h1 {
    font-size: 1.3em;
    padding: 0.2em 0.5em;
    text-align: center;
    margin: 0 auto;
  }
  .logo {
    height: 6em;
    margin: 0.5em auto 0.5em auto; 
    display: block;
  }
  #nav {
    padding: 1em;
    font-size: 1em;
    gap: 0.3em;
    flex-wrap: wrap;
    justify-content: center;
    height: auto; 
  }
  #nav a {
    margin: 0.2em 0.1em;
    font-size: 0.95em;     
    padding: 0.3em 0.5em;
  }
  #content,
  #content-fp,
  #content-about,
  #content-table {
    padding: 0.7em 1em;
    min-height: 5vh;
  }
  .about-image,
  #content img {
    width: 100%;
    float: none;
    margin: 0 0 0.7em 0;
    display: block;
    max-width: 100%;
  }
  #kommuninfo::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 80%;
  height: 90%;
  background-image: url('/images/kommun.png');
  background-repeat: no-repeat;
  background-position: center center;
  background-size: auto 90%;
  opacity: 0.10;
  z-index: 0;
  pointer-events: none;
  }
  #kommuninfo > * {
    position: relative;
    z-index: 1;
  }
  .image-left {
    display: none;
  }
  .login-module {
    display: flex;
    align-items: flex-start;
    gap: 2em;
    margin: 2em 0.2em 2em 0.2em;  
    flex-wrap: wrap;
  }
  .login-form,
  .register-module-flash {
    width: 100%;
    min-width: 0;
    max-width: 100vw;
    box-sizing: border-box;
    padding: 0.7em;
  }
  .login-side-text {
    max-width: 100vw;
    padding: 0.7em;
  }
  .reklambanner {
    width: 100%;
    height: auto;
    margin: 0 0 0.5em 0;
    /* box-sizing: border-box; */
  }
  #footer {
    font-size: 0.8em;
    padding: 0.5em;
  }
  .radio-player {
    background: #1a1a1a;
    background-color: #1a1a1a;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    font-size: 0.95em;
    padding: 0.5em;
    box-sizing: border-box;
  }
  .radio-player-header {
    font-size: 1em;
    padding: 0.2em;
  }

}

