:root {
  /*Solarized*/
  --base03: #002b36;
  --base02: #073642;
  --base01: #586e75;
  --base00: #657b83;
  --base0: #839496;
  --base1: #93a1a1;
  --base2: #eee8d5;
  --base3: #fdf6e3;
  --yellow: #b58900;
  --orange: #cb4b16;
  --red: #dc322f;
  --magenta: #d33682;
  --violet: #6c71c4;
  --blue: #268bd2;
  --cyan: #2aa198;
  --green: #859900;
  /*solarized*/

  --normal_text: var(--base0);
  --code_text: var(--blue);
  --comment: green;
  --small_header: var(--yellow);
  --medium_header: var(--orange);
  --big_header: var(--red);
  --background: var(--base03);
  --div: var(--base02);
  --links: var(--blue);

  --color1: black;
  --color2: #EFFE8A;
  --color3: #f8f8ff;

  /*deeppink
    dodgerblue*/

}

* {
  box-sizing: border-box;
  /*leveyteen lasketaan mukaan margin padding yms*/
  font-family: -apple-system, BlinkMacSystemFont, "segoe ui", roboto, oxygen, ubuntu, cantarell, "fira sans", "droid sans", "helvetica neue", Arial, sans-serif;
}

html,
body {
  width: 100vw;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

#navtop {
  width: 100%;
  border: 0;
  position: fixed;
  background-color: var(--color1);
  top: 0;
  transition: opacity 0.5s ease;
  z-index: 1;
}

.ultra_wide_limit {
  max-width: 2000px;
  margin-left: auto;
  margin-right: auto;
}

#navtop>.ultra_wide_limit>div {
  display: flex;
  flex-direction: row;
  margin: 0 auto;
  height: 100%;
}

#current_page {
  color: var(--color2);
}

form input[type="submit"] {
  margin: 5px;
  background: unset;
  border-style: unset;
  color: ghostwhite;
  cursor: pointer;
}

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

.content {
  position: relative;
  float: left;
  width: 100%;
  min-height: 100vh;
  padding-top: 10vh;
  padding-left: 20px;
  padding-right: 20px;
  padding-bottom: 5vh;
}

.content p {
  font-size: 16px;
}

#sisalto1 {
  background-color: var(--color1);
  color: ghostwhite;
}

#sisalto1 h1 {
  font-size: min(8vw, 160px);
  text-align: center;
  white-space: nowrap;
}

#explore_text_cntr {
  float: left;
  text-align: left;
  width: 25%;
}

/* Rounded sliders */
.button_center {
  position: absolute;
  float: left;
  left: 25%;
  width: 50%;
  display: block;
  text-align: center;
  cursor: pointer;
  border-radius: 34px;
  padding: 10px;
  background-color: var(--color2);
  color: var(--color1);
}

.button {
  position: absolute;
  float: left;
  display: block;
  text-align: center;
  cursor: pointer;
  border-radius: 34px;
  padding: 10px 50px 10px 50px;
  background-color: var(--color2);
  color: var(--color1);
}

.button:before {
  border-radius: 50%;
}

.button_cntr {
  min-width: 50px;
  min-height: 58px;
  display: flex;
  justify-content: center;
  align-items: center;
}

input:-webkit-autofill,
input:-webkit-autofill:hover, 
input:-webkit-autofill:focus, 
input:-webkit-autofill:active{
    -webkit-background-clip: text;
    -webkit-text-fill-color: ghostwhite;
    transition: background-color 5000s ease-in-out 0s;
    box-shadow: inset 0 0 20px 20px black;
}

#explore_submit {
  color: var(--color1);
}

#explore:hover {
  background-color: var(--color1);
  border-color: var(--color2);
  border-width: 2px;
  border-style: solid;
  margin-bottom: 0px;
}

#explore:hover>form>input {
  color: var(--color2);
  font-weight: bold;
}

#sisalto2 {
  background-color: var(--color2);
  color: var(--color1);
}

#sisalto2 h1 {
  text-align: center;
}

#sisalto2 .teksti {
  margin-left: 33.33%;
  width: 33.33%;
  height: 100%;
  text-align: justify;
}

#sisalto2 .kuva {
  width: 33.33%;
  height: 100%;
  align-content: end
}

.logo {
  opacity: 0;
  transition: opacity 2s ease;
}

.move {
  opacity: 0;
  /* Kuva on aluksi piilotettu */
  transform: translateY(50px);
  /* Aluksi kuva siirtyy 50px alaspäin */
  transition: opacity 1s ease, transform 1.5s ease;
  /* Siirtymän kesto */
}

.moveX {
  opacity: 0;
  /* Kuva on aluksi piilotettu */
  transform: translateX(-600px);
  /* Aluksi kuva siirtyy 50px alaspäin */
  transition: opacity 1s ease, transform 2s ease;
  /* Siirtymän kesto */
}

.visible {
  opacity: 1;
  /* Kun kuva näkyy, tehdään se täysin näkyväksi */
  transform: translateY(0);
}

#sisalto3 {
  background-color: var(--color3);
  color: var(--color1);
}

#sisalto3 .otsikko {
  font-size: 24px;
  margin: 0;
}

#sisalto4 {
  background-color: var(--color1);
  color: var(--color3);
}

#subscribe_form {
  max-width: 100%;
  display: flex;
  flex-direction: row;
  align-items: end;
}

#subscribe_input {
  width: 50%;
  height: 58px;
  background-color: var(--color1);
  color: var(--color2);
  cursor: pointer;
  float: left;
  border-bottom: ghostwhite 1px solid;
}

#subscribe_cntr {
  width: 100%;
  float: left;
}

#subscribe {
  max-width: 25%;
  text-align: center;
  background-color: var(--color2);
  color: var(--color1);
  cursor: pointer;
  float: left;
}

#subscribe:hover {
  background-color: var(--color1);
  color: var(--color2);
  border-color: var(--color2);
  border-width: 2px;
  border-style: solid;
  margin-bottom: 0px;
}

#subscribe:hover input {
  color: var(--color2);
  font-weight: bold;
}

#subscribe_submit {
  margin: 5px;
  background: unset;
  border-style: unset;
  color: var(--color1);
  cursor: pointer;
}

#subscribe_submit:hover {
  color: var(--color2);
}

#footer {
  background-color: var(--color1);
  float: left;
  width: 100%;
  padding-left: 20px;
  padding-bottom: 10vh;
  min-height: 20vh;
}

#footer form {
  float: left;
}

#footer input[type="submit"] {
  font-size: 16px;
  color: gray;
}

#footer input[type="submit"]:hover {
  color: var(--color2);
}

@media (width >=1000px) {
  .only_narrow_screen {
    display: none;
  }
}

@media (width < 1000px) {
  .only_wide_screen {
    display: none;
  }

  #explore_text_cntr {
    float: left;
    width: 100%;
    text-align: center;
    margin-bottom: 40px;
  }

  #sisalto2 .teksti {
    margin-left: 0%;
    width: 100%;
    height: 100%;
    text-align: justify;
  }

  #subscribe_form {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: start;
  }

  #subscribe_input {
    width: 100%;
  }

  #subscribe_cont {
    width: 100%;
  }

  #subscribe {
    max-width: 100%;
    margin-top: 20px;
  }

  #sisalto2 .kuva {
    width: 100%;
    min-height: 50vh;
    text-align: center
  }
}

#successAlert {
  padding: 15px;
  background-color: #EFFE8A;
  color: black;
  display: none;
  position: fixed;
  width: 100%;
  transition: opacity 2s;
  z-index: 2;
}

#failAlert {
  padding: 15px;
  background-color: red;
  color: ghostwhite;
  display: none;
  position: fixed;
  width: 100%;
  transition: opacity 2s;
  z-index: 3;
}