/* Reset default styling */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, sans-serif;
}

/* Body: sentrer containeren og bruk en lys bakgrunn */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  background-color: #364253;
  padding: 10px;
}

/* Logo styling */
.logo-container {
  text-align: center;
  margin-bottom: 16px;
}

.logo {
  max-width: 150px;
  height: auto;
  padding: 10px;
}


/* Container: responsiv bredde med maks bredde for desktop */
.container {
  background-color: #e3e3e3;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  width: 90%;
  max-width: 360px;
  text-align: center;
}

/* Overskrift */
h1 {
  font-size: 1.5rem;
  margin-bottom: 16px;
  font-weight: bold;
}

/* Label og form-elementer */
label {
  display: block;
  margin-bottom: 8px;
  font-size: 0.975rem;
}

select,
input[type="number"],
input[type="range"] {
  width: 100%;
  padding: 8px;
  margin-bottom: 12px;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  font-size: 0.975rem;
}

/* Alternativboks */
.options {
  text-align: left;
  margin-bottom: 12px;
}

.options label {
  display: flex;
  align-items: center;
  font-size: 0.975rem;
  margin-bottom: 4px;
}

/* Knappestiler */
button {
  border: none;
  padding: 10px 16px;
  border-radius: 4px;
  font-size: 0.975rem;
  cursor: pointer;
  margin-top: 8px;
}

/* Toggle-knapp */
#toggleModeBtn {
  background-color: #476591;
  color: #ffffff;
  margin-bottom: 16px;
}

#toggleModeBtn:hover {
  background-color: #334868;
}

/* Generer-knapp (blå) */
#generateBtn {
  background-color: #3b82f6; /* blå */
  color: #ffffff;
  margin-right: 8px;
}

#generateBtn:hover {
  background-color: #2563eb;
}

/* Kopier-knapp (grønn) */
#copyBtn {
  background-color: #10b981; /* grønn */
  color: #ffffff;
}

#copyBtn:hover {
  background-color: #059669;
}

/* Output-styling */
.output {
  font-size: 1.075rem;
  font-family: "Courier New", monospace;
  color: #0f1318;
  background-color: #ffffff;
  padding: 12px;
  border-radius: 4px;
  margin-top: 16px;
  word-wrap: break-word;
  font-weight: bold;
}

/* Styrkeindikator */
.strength {
  font-size: 0.975rem;
  margin-top: 8px;
}

.strength.poor {
  color: #ef4444;   /* rød */
}

.strength.medium {
  color: #facc15;   /* gul */
}

.strength.good {
  color: #10b981;   /* grønn */
}

/* Informasjonstekst */
.info {
  font-size: 0.875rem;
  margin-top: 16px;
}

/* Utility: skjul elementer */
.hidden {
  display: none;
}

/* Mediespørringer for tablet og mobil kan legges til ved behov */
@media (max-width: 480px) {
  h1 {
    font-size: 1.25rem;
  }
  button {
    font-size: 0.8rem;
    padding: 8px 12px;
  }
}

.app-splash-container {
  background-color: #364253;
  position: fixed;
  z-index: 99999;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  contain: strict;
  content-visibility: auto;
}

.app-splash {
  background-image: url(/resources/images/apple-touch-icon.png);
  background-position: center top;
  background-repeat: no-repeat;
  background-size: contain;
  position: fixed;
  top: 1.8em;
  left: .9em;
  width: 6.6em;
  height: 2em;
  contain: strict;
  content-visibility: auto;
  z-index: 99999;
}

.app-splash-expanded {
  top: 30%;
  left: 30%;
  right: 30%;
  height: 20%;
  width: auto;
}