:root {
  --faneBakgrunn: #2c313a;
  --tekstAktiv: #f4f6fb;
  --tekstPassiv: black;
  --tingPassiv: #fffef6;
  --tingAktiv: #74e76e;
  --tekstTing: black;
  --blokkFarge: var(--tingAktiv);
}

* {
  box-sizing: border-box;
}

body {
  background: black;
  color: var(--tekstAktiv);
  font-family: 'Segoe UI', system-ui, sans-serif;
  font-size: clamp(1.4rem, 4vw, 3rem);
  margin: 0;
  height: 100vh;
  overflow: hidden;

  display: flex;
  flex-direction: column;
  align-items: center;
}

h1 {
  margin: 16px 0 8px;
  font-size: clamp(2.4rem, 6vw, 4rem);
  letter-spacing: 0.03em;
}
#logo {
  width: min(100%, 600px);
}
.fane {
  position: absolute;
  top: 1.5dvh;
  width: min(96%, 620px);
  height: 96dvh;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: var(--faneBakgrunn);
  border-radius: 15px;
  border: 3px solid var(--blokkFarge);
  transition: border-color 0.4s ease;
  overflow: hidden;
}

/* Felles stil for input-felt og knappar */
input, input[type="range"], button {
  width: 100%;
  padding: 6px 10px;
  margin: 6px;

  border-radius: 10px;
  border: 2px solid transparent;

  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-align: center;
  color: var(--tekstTing);

  outline: none;
  transition: all 0.2s ease;
}
button{
  background: var(--tingAktiv);
}
input {
  background: var(--tingPassiv);
  transition: all 0.2s ease;
  flex:1 1 1;
    box-shadow: 0 0 0 2px var(--blokkFarge);

}
input::placeholder {
  color: var(--tekstPassiv);
}

input[type="range"] {
  appearance: none;
  height: 1px;
  outline: none;
  padding:0;
}


.nesteKnapp {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tekstAktiv);
  border: solid 2px var(--blokkFarge);
  margin:3px;
}

#blyantViskKnapp, #nesteVisKnapp {
  bottom: 20px;
  right: 20px;
  z-index: 10;
}

.forfattar {
  font-weight: 700;
  text-align: left;
  font-size: clamp(1.2rem, 3vw, 2rem);
  padding: 10px;
}
#tegneOrd {
  font-weight: 900;
  text-align: center;
  font-size: clamp(1.3rem, 5vw, 2.4rem);
}
.tegneBoks {
  flex: 1 1 auto;
  min-height: 0;
  position: relative;
  aspect-ratio: 1 / 1;
  background: var(--tingPassiv);
  object-fit: contain;
  border-radius: 15px;
}

/* canvas/bilde fyller kvadratet */
.tegningar {
  width: 100%;  
  height:100%;
  border-radius: 0px 0px 11px 11px;
  object-fit: contain;
}

.ytterboks{
  display: flex;
  flex-direction: column;
  
  color: black;
  background: var(--blokkFarge);
  border: 3px solid var(--blokkFarge);
  border-radius: 15px;
  transition: border-color 0.4s ease;
  overflow: hidden;
  padding: 2px;

  transition:
    background-color 0.3s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease;
}

.aktiv {
  transform: scale(1.03);
}
.ordBoks {
  display: flex;
  width:100%;
  align-items: center;
  background-color: var(--tingPassiv);
  border-radius: 0px 0px 11px 11px;
}

.ordBoks input, .ordBoks div {
  display: flex;
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
  padding: 10px;
}

.ordBoks button {
  flex: 0 0 auto;
    margin-left: auto;
}

.usynlig {
  display: none;
}
