:root {
  --background-color: #fcfcfc;
  --uuswhite: #fffde7;
  --darker-background-color: #edeeee;
  --superlight-fi-color: #f6f6f6;

  --vaalea: #f3f8fc;
  --green: #00aa62;
  --darkgreen: #008641;
  --darkergreen: #006726;
  --superdarkgreen: #003400;
  --blue: #f1d3d3;
  --primary: #00f;
  --dark-primary: hsl(175, 89%, 8%);
  --secondary: #005f70;
  --fi-color: #00f;
  --paita: hsl(358, 52.6%, 62.7%);
  --footer: #e6eeed;
  --dark-fi-color: #00a;
  --text-color: #41424a;
  --dark-text-color: #2c282f;
  --font-size-sssm: 0.702rem;
  --font-size-ssm: 0.79rem;
  --font-size-sm: 0.889rem;
  --font-size-base: 1rem;
  --font-size-xl: 1.125rem;
  --font-size-xxl: 1.266rem;
  --font-size-xxxl: 1.424rem;
  --font-size-xxxxl: 1.602rem;
  --line-height-base: 1.5;
}

*,
*::before,
*::after {
  box-sizing: inherit;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  src: local("Nunito Regular"), local("Nunito-Regular"),
    url(fonts/nunito-v24-latin-regular.woff2) format("woff2"),
    url(fonts/nunito-v24-latin-regular.woff) format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  font-style: normal;
  font-weight: 800;
  src: local("Nunito Bold"), local("Nunito-Bold"),
    url(fonts/nunito-v24-latin-800.woff2) format("woff2"),
    url(fonts/nunito-v24-latin-800.woff) format("woff");
  font-display: swap;
}

@font-face {
  font-family: "Nunito";
  font-style: italic;
  font-weight: 400;
  src: local("Nunito Italic"), local("Nunito-Italic"),
    url(fonts/nunito-v24-latin-italic.woff2) format("woff2"),
    url(fonts/nunito-v24-latin-italic.woff) format("woff");
  font-display: swap;
}

html {
  box-sizing: border-box;
}

body {
  background-color: var(--green);
  font-family: "Nunito";
  font-style: normal;
  font-weight: 400;
  color: var(--text-color);
  font-kerning: normal;
  margin: 0;
  line-height: var(--line-height-base);
  font-size: var(--font-size-xxl);
  vertical-align: baseline;
}

.text {
  text-align: center;
}

.tausta {
  background-color: var(--background-color);
  margin-top: -5px;
  width: 100%;
}

header {
  overflow: visible;
  margin: auto;
  max-width: 100%;
}

.footer {
  background-image: url('data:image/svg+xml,<svg class="svg rotatesvg" viewBox="0 0 1440 200" xmlns="http://www.w3.org/2000/svg" ><path d="M 0,400 L 0,150 C 109,118 218,87 323,76 C 427,64 527,74 621,98 C 714,121 801,160 890,161 C 978,161 1068,125 1160,117 C 1251,108 1345,129 1440,150 L 1440,400 L 0,400 Z" fill="%23fcfcfc" fill-opacity="1" ></path></svg>');
  background-repeat: no-repeat;
  transform: rotate(180deg);
  width: 100%;
  height: 200px;
}

svg {
  max-width: 100%;
  height: auto;
  display: block;
  margin-top: -5px;
}

.vaakaflex {
  display: flex;
  justify-content: space-around;
}

.vihree {
  border-top: 6px solid var(--green);
}

summary ~ p {
  font-style: italic;
}

.rounded-input {
  padding: 10px;
  border-radius: 10px;
  border: 3px solid var(--green);
  color: var(--text-color);
  background-color: #fff;
}

.flexcolumn {
  display: flex;
  flex-direction: column;
  padding: 0.5rem;
  text-align: start;
}

.etuaktuell,
.aktuell {
  padding: 0.5rem 1rem;
}

.pinput {
  padding-left: 0.5rem;
}

/* DRAG AND DROP */

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
}

.flex-container > div {
  border: 3px solid var(--green);
  text-align: center;
  height: 4rem;
  line-height: 1;
  font-size: 1.2rem;
  display: flex;
  justify-content: center;
  align-items: center;
}

#cont1 > div,
#vascont2 > div {
  margin: 10px 0 10px 10px;
  border-right: 0;
}

#cont2 > div,
#vascont1 > div {
  margin: 10px 10px 10px 0;
}

#cont3 > div,
#vascont3 > div {
  margin: 10px;
  border: 3px dotted var(--green);
}

.dragging {
  background-color: var(--green);
  color: white;
}
.hidden {
  visibility: hidden;
}

a:link {
  color: var(--superdarkgreen);
}

a:hover {
  color: #3da35d;
}

a:visited {
  color: var(--superdarkgreen);
}

.lityyli {
  color: #fff;
  list-style: none;
}

.lityyli a:link {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.lityyli a:hover {
  color: #fff;
  text-decoration-line: underline;
  text-decoration-color: #fff;
  text-decoration-style: solid;
  text-underline-offset: 6px;
  text-decoration-thickness: 4px;
}

.lityyli a:visited {
  color: #fff;
}

.alalinkit a:link {
  text-decoration: none;
  color: var(--dark-text-color);
}

.alalinkit a:hover {
  color: var(--dark-text-color);
  text-decoration-line: underline;
  text-decoration-color: var(--green);
  text-decoration-style: solid;
  text-underline-offset: 6px;
  text-decoration-thickness: 4px;
}

/* 
========================
      BUTTON ONE
========================
*/

.a {
  color: var(--darkgreen);
  transition: all 0.3s;
  position: relative;
  text-decoration: none;
  text-transform: uppercase;
}
.a::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 0.3s;
  border-top-width: 1px;
  border-bottom-width: 1px;
  border-top-style: solid;
  border-bottom-style: solid;
  border-top-color: var(--darkergreen);
  border-bottom-color: var(--darkergreen);
  transform: scale(0.1, 1);
}

.a:hover::before {
  opacity: 1;
  transform: scale(1, 1);
}

ul,
ol,
pre,
table,
img,
figcaption,
.darker,
.vali,
embed,
summary {
  margin-bottom: 1.5rem;
}

p {
  margin: 0 0 1.5rem 0;
}

.td,
.th {
  text-align: left;
  padding: 0.5rem;
}

h1 {
  text-align: center;
  font-size: 3rem;
  color: white;
  margin-top: 5rem;
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  line-height: 1.3;
}

h2,
h3,
h4,
h5 {
  font-family: "Nunito";
  font-weight: 800;
  font-style: normal;
  line-height: 1.3;
  color: var(--dark-text-color);
  margin: 2.25rem auto 1.5rem;
}

h2 {
  font-size: var(--font-size-xxxl);
}

.b {
  font-weight: 800;
}

.rotatesvg {
  transform: rotate(180deg);
}

.testi {
  color: var(--primary);
}

blockquote {
  background-color: var(--darker-background-color);
  border-radius: 1rem;
  padding: 1.5rem 0 1.5rem 0;
}

blockquote p {
  padding-left: 0.5em;
  hanging-punctuation: first;
}

img,
video {
  max-width: 100%;
  height: auto;
  display: block;
  block-size: auto;
}

.main {
  margin: auto;
  max-width: 32em;

  padding: 0.5em;
}

.boksi {
  padding: 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  border: 2px dashed #dd7eb4;
}

.siniboksi {
  padding: 0.5rem 0.5rem;
  margin-bottom: 1.5rem;
  border: 2px dashed var(--green);
}

button,
select,
textarea,
audio {
  font: inherit;
  font-size: 100%;
  width: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

input {
  font: inherit;
  font-size: 100%;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.flex {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

.mainflex {
  flex: 1;
}

.linkki {
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-size: var(--font-size-base);
  color: var(--dark-text-color);
  text-decoration: none;
  padding: 0.25rem;
}

.linkki:hover,
.linkki:focus {
  color: var(--primary);
}

.card-container {
  display: grid;
  padding: 0.5rem;
  grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr));
  grid-gap: 1rem;
}

.flipcard {
  position: relative;
  width: 100%;
  height: 10rem;
  cursor: pointer;
  transform-style: preserve-3d;
  transform-origin: center right;
  transition: transform 0.4s;
}

.flipcard.is-flipped {
  transform: translateX(-100%) rotateY(-180deg);
}

.card__face {
  position: absolute;
  width: 100%;
  height: 100%;
  font-weight: bold;
  font-size: 2rem;
  backface-visibility: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: var(--green);
  color: #fff;
}

#footerlinkki {
  font-weight: bold;
  font-size: 2rem;
  display: flex;
  justify-content: center;
  color: #fff;
  text-decoration: none;
  padding-bottom: 4rem;
}

#footerlinkki:hover {
  text-decoration: underline;
}

.pienempi {
  font-size: 1.65rem;
}

.back {
  transform: rotateY(180deg);
  background: #fff;
  color: var(--green);
  border: 1px solid var(--green);
}

.card {
  position: relative;

  padding: 1rem;
  border-radius: 1rem;
  max-width: 100%;
}

.card:hover {
  background-color: hsla(358, 52.6%, 62.7%, 0.05);
}

.greenbackground {
  background-color: #008255;
  color: #fff;
}

table {
  border-collapse: collapse;
  overflow-x: auto;
  width: 100%;
  border: 3px solid black;
}

details table {
  border: 1px solid black;
}

details table tr:nth-child(even) {
  background-color: #ecfef1;
}

input[type="submit"]:hover {
  background-color: var(--lightaccent-color);
}

input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
}

@media (pointer: coarse) {
  input[type="radio"] {
    padding: 1em 1em;
  }
  .alalinkit a:link {
    text-decoration: underline;
  }
}

input[type="radio"] {
  position: relative;
  width: 1em;
  height: 1em;
  border: 1px solid var(--text-color);
  vertical-align: -2px;
  color: var(--primary);
}

input[type="radio"]::before {
  content: "✔";
  color: var(--primary);
  position: absolute;
  font-size: 1.2em;
  right: -1px;
  top: -0.3em;
  visibility: hidden;
}

.thick-check-mark {
  width: 19px;
  height: 33px;
  border: 10px solid #333;
  border-left: 0;
  border-top: 0;

  transform: rotate(45deg);
}

input[type="radio"]:checked::before {
  visibility: visible;
}

@media screen and (max-width: 1000px) {
  #full-screen-menu-toggle {
    z-index: 20;
    position: absolute;
    padding: 0.8em;
    top: 1em;
    right: 1em;
    background: #fff;
    color: #006726;
  }

  .nav--hidden {
    top: -10em;
  }

  .full-screen-menu-active #full-screen-menu-toggle {
    background: #fff;
    color: #006726;
  }

  .site-nav {
    transition: all 0.4s ease;
    opacity: 0;
    pointer-events: none;
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #00aa62;
    z-index: 10;
  }

  .full-screen-menu-active .site-nav {
    opacity: 1;
    pointer-events: initial;
  }

  .site-nav ul {
    display: block;
    transition: all 0.3s ease;
    padding: 0;
    list-style-type: none;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(1.3);
  }

  .site-nav a {
    color: #fff;
    text-decoration: none;
    display: block;
    padding: 0.5em;
    font-size: 2rem;
  }

  .full-screen-menu-active .site-nav ul {
    transform: translate(-50%, -50%) scale(1);
  }
}
@media screen and (min-width: 1001px) {
  #full-screen-menu-toggle {
    color: #00aa62;
  }
}

@media (max-width: 25em) {
  .nav ul {
    justify-content: end;
    padding-right: 0.3rem;
  }

  .nav a {
    padding: 0.2rem 0;
  }

  .etuaktuell,
  .aktuell {
    padding: 0.5rem 0;
  }
}

@media (max-width: 39em) {
  .linkki {
    padding: 1rem;
  }

  .keskelle {
    max-inline-size: max-content;
    margin-inline: auto;
  }

  input[type="radio"]::before {
    font-size: 2em;
  }
}

@media (min-width: 40em) {
  html {
    font-size: 112.5%;
  }

  .nav {
    padding-right: 1rem;
  }

  .darker h1,
  .kuva {
    font-size: 150%;
  }

  .footerflex {
    display: flex;
  }
}
