* {
  box-sizing: border-box;
  font-family:  'Athiti', 'Calibri', sans-serif;
  /* font-family: ComicSans; */
}

body {
  margin: 0;  
}

.login, .register {
  width: 1080px;
  background-color: #ffffff;
  box-shadow: 0 0 9px 0 rgba(0, 0, 0, 0.3);
  margin: 100px auto;
}

.login h1 {
  text-align: center;
  font-size: 30px;
  padding: 20px 0 20px 0;
}

.login p, .register p {
  float: left;
  font-size: 18px;
}

.login .links, .register .links {
  display: flex;
  padding: 0 15px;
}

.login .links a, .register .links a {
  color: #9da3ac;
  text-decoration: none;
  display: inline-flex;
  padding: 0 10px 10px 10px;
  font-weight: 500;
}

.login .links a:hover, .register .links a:hover {
  color: #9da3ac;
}

.login .links a.active, .register .links a.active {
  border-bottom: 3px solid #3274d6;
  color: #3274d6;
}

.login form, .register form {
  display: flex;
  flex-wrap: wrap;
}

.login form label, .register form label {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 12%;
  height: 50px;
  background-color: #3274d6;
  color: #ffffff;
  border-radius: 4px;
}

.login form input[type="password"], .login form input[type="text"], .login form input[type="email"], .register form input[type="password"], .register form input[type="text"], .register form input[type="email"] {
  width: 80%;
  height: 50px;
  border: 1px solid #dee0e4;
  margin-bottom: 20px;
  padding: 0 15px;
  border-top-right-radius: 4px;
  border-bottom-right-radius: 4px;
  outline: 0;
}

.login form input[type="password"]::placeholder, .login form input[type="text"]::placeholder, .login form input[type="email"]::placeholder, .register form input[type="password"]::placeholder, .register form input[type="text"]::placeholder, .register form input[type="email"]::placeholder {
  color: #8e97a3;
}

.login form input[type="password"]:focus, .login form input[type="text"]:focus, .login form input[type="email"]:focus, .register form input[type="password"]:focus, .register form input[type="text"]:focus, .register form input[type="email"]:focus {
  border: 1px solid #c2c6cd;
  border-left: 0;
}

.login form input[type="submit"], .register form input[type="submit"] {
  width: 185px;
  padding: 15px;
  background-color: #27FF00;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
  color: #ffffff;
  transition: background-color 0.2s;
  appearance: none;
  font-size: 19px;
}

.login form input[type="submit"]:hover, .register form input[type="submit"]:hover {
  background-color: #00836d;
  transition: background-color 0.2s;
}

.login form #rememberme, .register form #rememberme {
  width: 100% !important;
  height: auto;
  padding-right: 5px;
  padding-top: 5px;
  padding-bottom: 5px;
  background-color: transparent;
  color: #000;
  justify-content: flex-start;
  white-space: nowrap;
}

.login form .msg, .register form .msg {
  padding: 0 20px;
  width: 100%;
}

.login form .captcha, .register form .captcha {
  display: flex;
}

.login form .fb-btn, .login form .gl-btn, .register form .fb-btn, .register form .gl-btn {
  display: flex;
  text-decoration: none;
  position: relative;
  border-radius: 4px;
  text-align: center;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 500;
  font-size: 14px;
  width: 92%;
  margin: 15px 0 5px 0;
  padding: 15px;
  transition: background-color 0.2s;
}

.login form .fb-btn i, .login form .gl-btn i, .register form .fb-btn i, .register form .gl-btn i {
  position: absolute;
  left: 15px;
}

.login form .fb-btn:hover, .login form .gl-btn:hover, .register form .fb-btn:hover, .register form .gl-btn:hover {
  color: #fff;
  transition: background-color 0.2s;
}

.login form .fb-btn, .register form .fb-btn {
  background-color: #507CBF;
}

.login form .fb-btn:hover, .register form .fb-btn:hover {
  background-color: #426fb4;
}

.login form .gl-btn, .register form .gl-btn {
  background-color: #d6523e;
}

.login form .gl-btn:hover, .register form .gl-btn:hover {
  background-color: #cf412c;
}

.login form > a, .register form > a {
  text-decoration: none;
  color: #5b6574;
  width: 100%;
  padding: 5px;
}

.login form > a:hover, .register form > a:hover {
  color: #394049;
}

.header {
  height: 100px;
  width: 100%;
  position: relative;
  z-index: 4;
}
.header.logged-in {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(153, 153, 153) 78.09%);
}
.header.logged-out {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(195, 224, 255) 78.09%);
}
.header.logged-in-kvihree {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(180 255 158) 78.09%);
}
.header.logged-in-mvihree {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(42 182 42) 78.09%);
}
.header.logged-in-punainen {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(255, 135, 135) 78.09%);
}
.header.logged-in-oranssi {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(255, 129, 19) 78.09%);
}
.header.logged-in-vsininen {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(195, 224, 255) 78.09%);
}
.header.logged-in-ssininen {
  background: radial-gradient(50% 50% at 50% 50%, rgb(255, 255, 255) 0%, rgb(0 164 255) 78.09%);
}


.header .wrapper {
  display: flex;
  position: relative;
  margin: 0 auto;
  width: 1000px;
  height: 100%;
}

.header .wrapper h1, .header .wrapper a, .header .wrapper label {
  display: inline-flex;
  align-items: center;
}

.header .wrapper h1 {
  flex: 1;
  font-size: 20px;
  padding: 0;
  margin: 0;
  color: #eaebed;
  font-weight: normal;
}

.header .wrapper label, .header .wrapper input[type="checkbox"] {
  display: none;
}

.header .wrapper label {
  justify-content: center;
  width: 60px;
  cursor: pointer;
}

.header .wrapper label i {
  color: #fff;
}

.header .wrapper label:hover i, .header .wrapper label:active i {
  color: #eaebed;
}

.oikeat_valikot {
  display: flex;
  justify-content: flex-end; 
  width: 100%;
}

.vasen_valikot {
  display: flex;
  justify-content: left; 
  width: 100%;

}

#logo {
  width: 105px;
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  filter:drop-shadow(1px 1px 2px black); 
}


#logo:hover {
  padding-bottom: 3px; 
  filter:drop-shadow(2px 4px 2px rgba(0, 0, 0, 0.473)); 
}

#logo:active {
  filter: invert(1);
}

.menu {
  display: flex;
  justify-content: space-between; /* Jakaa tilan tasaisesti */
  width: 100%;
}

.header .wrapper .menu a {
  padding: 0 15px;
  color: #4E4E4E;
  font-weight: 500;
  font-size: 18px;
}

.header .wrapper .menu a i {
  font-size: 14px;
  padding: 2px 8px 0 0;
}

.header .wrapper .menu #ryhma:hover {
  color: #000;
  border-bottom: 3px solid #000; /* Lisätään isompi ja alempi viiva */
}

#ryhma_2:hover {
  color: #000;
}

.content {
  width: 1000px;
  margin: 0 auto;
  position: relative; /* Lisää position relative */
}

.content h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 30px;
  text-align: center;
  color: black;
}

.content .block, .content .block_2 {
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25);
  padding: 40px;
  background-color: #fff;
}

.content .block {
  max-height: 150px;
  margin-bottom: 2vh;
}

.content .block p {
  padding: 5px;
  margin: 0 0 10px 0;
  font-size: 15px;
}

.content.profile form label {
  display: block;
  padding: 15px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #4d4d4d;
}

.content.profile form input[type="text"],
.content.profile form input[type="password"], 
.content.profile form input[type="email"],
.content.profile form input[type="date"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.content.profile .profile-detail {
  padding: 5px;
}

.content.profile .profile-detail strong {
  display: inline-block;
  color: #777;
  min-width: 120px;
  font-size: 16px;
}

.content.profile .profile-detail i {
  width: 28px;
  color: #aaabad;
}

.content.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 20px 5px 0 0;
  padding: 5px 15px;
  border-radius: 4px;
  appearance: none;
  font-size: 17px;
  font-weight: 500;
}

.content.profile .profile-btn:hover {
  background-color: #2868c7;
}

.login h1, .content h2 {
  color: #5b6574;
  border-bottom: 1px solid #dee0e4;
}

.content h2, .content h4 {
  clear: both; 
  text-align: center;
}

.content.profile .tallenna-btn {
  cursor: pointer;
  color: #fff;
  background-color: #27ff00;
  margin-top: 20px;
  padding: 15px;
  width: auto;
  border-radius: 4px;
  appearance: none;
  font-size: 18px;
  text-align: center;
}

.content_2 {
  margin: 0 auto;
  position: relative;
}

.content_2 h2 {
  margin: 0;
  padding: 25px 0;
  font-size: 30px;
  text-align: center;
  color: black;
}

.content_2 .block, .content_2 .block_2 {
  box-shadow: 0px 4px 5px rgba(0, 0, 0, 0.25);
  padding: 40px;
  background-color: #fff;
}

.content_2 .block {
  max-height: 150px;
  margin-bottom: 2vh;
}

.content_2 .block p {
  padding: 5px;
  margin: 0 0 10px 0;
  font-size: 15px;
}

.content_2.profile form label {
  display: block;
  padding: 15px 0 10px 0;
  font-weight: 500;
  font-size: 14px;
  color: #4d4d4d;
}

.content_2.profile form input[type="text"],
.content_2.profile form input[type="password"], 
.content_2.profile form input[type="email"],
.content_2.profile form input[type="date"] {
  padding: 10px;
  width: 250px;
  border: 1px solid #ddd;
  border-radius: 4px;
}

.content_2.profile .profile-detail {
  padding: 5px;
}

.content_2.profile .profile-detail strong {
  display: inline-block;
  color: #777;
  min-width: 120px;
  font-size: 16px;
}

.content_2.profile .profile-detail i {
  width: 28px;
  color: #aaabad;
}

.content_2.profile .profile-btn {
  display: inline-block;
  text-decoration: none;
  border: 0;
  cursor: pointer;
  color: #fff;
  background-color: #3274d6;
  margin: 20px 5px 0 0;
  padding: 5px 15px;
  border-radius: 4px;
  appearance: none;
  font-size: 17px;
  font-weight: 500;
}

.content_2.profile .profile-btn:hover {
  background-color: #2868c7;
}

.content_2 h2, .content_2 h4 {
  clear: both; 
  text-align: center;
}

.content_2.profile .tallenna-btn {
  cursor: pointer;
  color: #fff;
  background-color: #27ff00;
  margin-top: 20px;
  padding: 15px;
  width: auto;
  border-radius: 4px;
  appearance: none;
  font-size: 18px;
  text-align: center;
}

.content_2 h2 {
  color: #5b6574;
  border-bottom: 1px solid #dee0e4;
}

.tapahtumien_luonti {
  position: absolute;
  top: 10px;
  right: 0;
  display: flex;
  gap: 10px;
}

.tapahtumien_luonti button {
  padding: 10px 20px;
  font-size: 14px;
  border-radius: 20px;
  border: none;
  background-color: #e0ede2;
  display: flex;
  align-items: center; /* Lisää keskittämistä varten */
  cursor: pointer; 
}

.tapahtumien_luonti button:active {
  background-color: #4E4E4E;
}

.tapahtumien_muokkaus {
  width: 1000px;
  margin: 0 auto;
  margin-top: 15px;
  justify-items: right;
}

.tapahtumien_muokkaus button {
  /* padding: 15px 15px; */
  border-radius: 12px;
  background-color: #e0ede2;
  align-items: center;
  cursor: pointer;
  height: 65px;
  width: 105px;
  display: flex;
  justify-content: center;
}

.index-btn:hover {
  background-color: rgb(197, 212, 255);
}

.nappi-kuva {
  width: 25px;
  margin-right: 10px;
  z-index: 2; /* Vaihda paikkaa, jos aiheuttaa ongelmia */
}

.nappi-kuva_2 {
  width: 25px;
}

.nappi-kuva1 {
  width: 25px;
  margin-right: 10px;
  margin-top: 20px;
}

.nappi-kuva_animaatio {
  width: 25px;
  margin-right: 10px; /* Lisää väli kuvan ja tekstin väliin */
  animation: myAnim 2s ease 0s 1 normal forwards;
  animation-iteration-count: infinite;
}

@keyframes myAnim {
	0%,
	100% {
		transform: rotate(0deg);
		transform-origin: 100% 50%;
	}

	10% {
		transform: rotate(2deg);
	}

	20%,
	40%,
	60% {
		transform: rotate(-4deg);
	}

	30%,
	50%,
	70% {
		transform: rotate(4deg);
	}

	80% {
		transform: rotate(-2deg);
	}

	90% {
		transform: rotate(0deg);
	}
}

.profile-detail label {
  display: block !important; 
}

#details {
  height: 200px;
  max-height: 300px;
  max-width: 700px;
}

@media screen and (max-width: 1000px) {
  .tarkea_yksi {
    position: sticky !important;
  }
  .header .wrapper {
    width: 100%;
  }
  .header .wrapper h1 {
    font-size: 18px;
  }
  .header .wrapper label {
    display: inline-flex;
  }
  .header.header.logged-in .wrapper .menu, .header.header.logged-in-kvihree .wrapper .menu,
  .header.header.logged-in-mvihree .wrapper .menu, .header.header.logged-in-punainen .wrapper .menu,
  .header.header.logged-in-oranssi .wrapper .menu, .header.header.logged-in-vsininen .wrapper .menu,
  .header.header.logged-in-ssininen .wrapper .menu{
    display: none;
    position: absolute;
    top: 100%;
    width: 100%;
    flex-flow: column;
    background-image: linear-gradient(#bcbcbc, rgb(243, 243, 243)) ;
    justify-items: flex-start;
    align-items: flex-start;
    z-index: 1;
  }
  .header.header.logged-in-kvihree .wrapper .menu{
    background-image: linear-gradient(rgb(189 255 186), rgb(243, 243, 243)) !important;
  }
  .header.header.logged-in-mvihree .wrapper .menu{
    background-image: linear-gradient(rgb(64, 247, 54), rgb(243, 243, 243)) !important;
  }
  .header.header.logged-in-punainen .wrapper .menu{
    background-image: linear-gradient(rgb(255 177 177), rgb(243, 243, 243)) !important;
  }
  .header.header.logged-in-oranssi .wrapper .menu{
    background-image: linear-gradient(rgb(255, 199, 77), rgb(243, 243, 243)) !important;
  }
  .header.header.logged-in-vsininen .wrapper .menu{
    background-image: linear-gradient(rgb(220, 246, 255), rgb(243, 243, 243)) !important;
  }
  .header.header.logged-in-ssininen .wrapper .menu{
    background-image: linear-gradient(rgb(104 165 255), rgb(243, 243, 243)) !important;
  }
  .header .wrapper input[type="checkbox"]:checked ~ .menu {
    display: flex;
    box-shadow: 1px 33px 45px #5c5c5cf7;
  }
  .header .wrapper input[type="checkbox"]:checked ~ .menu a {
    width: 100%;
    padding: 15px 17px;
    border-bottom: 1px solid #1f252e;
  }
  .content {
    padding: 0px 10px;
    width: 100%;
  }
  .profile-detail strong {
    width: 100%;
  }
  .nav-link {
    display: flex;
    align-items: center;
  }
  .nav-link img {
    order: -1;
    margin-left: 0;
    margin-right: 7px;
  }
  .login, .register {
    width: 95%;
  }
  div.varoitus p {
    font-size: 14px !important;
  }
  label {
    cursor: pointer;
  }
  label.rotating {
    animation: pyorahdys 0.5s ease forwards;
  }
  @keyframes pyorahdys {
    0% {
        transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }
  ul.pudotus_valikko {
    width: 100%;
    text-decoration: none !important;
  }
  ul.pudotus_valikko li a {
    display: none;
  }
  ul.pudotus_valikko li {
    padding: 6px 20px;
    margin: 0; 
    list-style: none; 
  }
  ul.pudotus_valikko li a {
    text-decoration: none;
  }
  .tapahtumien_luonti button {
    padding: 2px 12px;
  }
  .tapahtumien_luonti {
    top: 5px;
    gap: 5px;
  }
  .login h1 {
    font-size: 24px;
  }
  .login p, .login form #rememberme, .register form #rememberme {
    font-size: 16px;
  }
  #varoitus_merkki {
    width: 55px;
    height: 55px;
  }
  #hyvaksy_npi, #hylkaa_npi {
    height: 80px !important;
  }
  .kortti, .kortti_2{
    width: 650px !important;
  }
  .kyna_roskis {
    margin-top: -4% !important;
  }
  .tapahtumien_muokkaus {
    width: 100%;
  }

}

/*Ylävalikon pudotusvalikko */
@media screen and (min-width: 1000px) {
  ul.pudotus_valikko {
    display: none;
    position: absolute;
    background-color: #ffffff;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
    padding: 0; 
    margin-top: 2.9%;
  }

  ul.pudotus_valikko li {
    padding: 6px 20px;
    margin: 0; 
    list-style: none; 
    background-color: #fafcff;
  }

  ul.pudotus_valikko li a {
    color: black; 
    text-decoration: none;
    display: block;
  }

  ul.pudotus_valikko li a:hover {
    background-color: #57575741;
  }

  .dropdown:hover .pudotus_valikko {
    display: block;
  }

  .dropdown {
    height: 63px;
    margin-top: 3.7%;
  }

  .dropdown:hover {
    border-bottom: 3px solid black;
  }
}

@media screen and (max-width: 500px) {
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"], form input, form textarea,
  form .editor-field,
  form #editor {
    width: 100% !important;
    max-width: 100%;
  }
  .form-row {
    flex-direction: column !important;
    gap: 0vh !important;
    width: unset !important;
  }
  #nimi {
    text-align: left !important;
  }
  .tapahtuma_nimi{
    margin-bottom: -40px !important;
    font-size: 11px !important;
  }
  .tapahtuma_aika{
    font-size: 11px !important;
  }
  .login_text {
    display: none;
  }
  
  #tapahtuma_hylatty, #tapahtuma_lisatty {
    width: 250px;
    height: 140px;
  }
  #tapahtuma_lisatty p {
    margin: 19px !important;
    font-size: 18px !important;
  }
  form label {
    width: 70% !important;
  }
  /* .paikkavaraus_lomake {
    width: 70% !important;
  } */
  #paikka_otsikko {
    margin-top: 3vh !important;
    font-size: 18px !important;
  }
  .login form input[type="submit"], .register form input[type="submit"] {
    width: 160px !important;
    font-size: 16px;
    margin-right: 5vh;
  }
  div.varoitus {
    max-width: 75% !important;
  }
  .form-container {
    padding-left: 30px !important;
  }
  .login, .register {
    margin: 35px auto !important;
  }
  .content .block { 
    height: 120px;
  }
  #peruuta_2, #laheta_2 {
    margin-left: 0% !important;
  }
  .kortti, .kortti_2 {
    width: 100% !important;
  }
  #vasenosio {
    contain: content;
  }
  .kyna_roskis {
    margin-top: -17% !important;
  }
  #maksettu {
    margin-bottom: 7vh !important;
  }
}

@media screen and (min-width: 500px) {
  .login_text {
    display: block;
  }
}

@media screen and (max-width: 670px) {
  .content form input[type="text"], .content form input[type="password"], .content form input[type="email"], form input, form textarea {
    width: 100% !important;
    max-width: 100%;
  }
  .form-row {
    margin-right: -10px;
    width: 100% !important;
  }
  .laatikot p {
    font-size: 12px !important;
    margin-top: 0px;
  }
  .laatikot > div {
    width: 170px !important;
    height: 125px !important;
  }
  .laatikot {
    gap: 2px !important;
    display: grid !important;
    /* flex-direction: column !important; */
    grid-template-columns: auto auto;
    justify-content: center;
    margin-top: -25px;
    /* height: 125px !important; */
  }
  .tapahtuma_sivu h2 {
    font-size: 31px !important;
    margin-top: -0vh !important;
  }
  .tapahtuma_sivu h4 {
    font-size: 29px !important;
  }
  #tapahtuman_tiedot {
    font-size: 14px !important;
    width: 85%;
  }
  .ylaotsikko {
    padding-left: 5px !important;
    font-size: 14px !important;
  }
  #hyvaksynnan_tila {
    gap: 3vh !important;
    width: 90% !important;
    margin: 0 !important;
    flex-direction: column;
  }
  .varaus-content-inner {
    width: 100vw !important;
    max-width: 400px;
  }
  #varaus-header-button {
    width: 100vw !important;
    max-width: 400px;
  }
  .keskitetty {
    min-width: 280px !important;
  }
  #vierekkain button {
    width: 50px !important;
  }
}

div.varoitus, div.varoitus_todennus {
  max-width: 430px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-style: solid;
  border-radius: 1px;
  border-color: red;
  padding: 5px;
  margin: auto;
}

.varoitus p {
  margin-left: 10px;
}

div.varoitus_todennus {
  border-color: #9a9a9a  !important;
  border-width: 7px;
}

#virheet_tunnuksessa {
  margin-right: 5%;
  font-size: 15px;
  color: #cf412c;
}

.form-container {
  padding-left: 50px;
  display: flex;
  flex-direction: column;
}

.email-header {
  padding-right: 5px;
}

#username, #password, #login-email, #vanha_salasana, #uusi_salasana, #varmista_salasana {
  width: 75vw !important;
  margin-right: 50px;
  max-width: 1000px;
}

.pw-form {
 justify-content: center; 
}

#email {
  max-width: 600px;
}

/* Modal styles */
.modal {
  display: none;
  position: fixed;
  z-index: 4;  /* Laita suuremmaksi, jos tarvitsee */
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0,0,0,0.45);
}

.modal h2 {
  font-size: 30px;
}

.modal-content {
  background-color: #fefefe;
  margin: 4% auto;
  padding: 20px;
  border: 4px solid black;
  max-width: 1000px;
  height: fit-content;
  border-radius: 50px;
  box-shadow: 26px 4px 15px rgba(0,0,0,0.25);
  max-height: 95%;
  overflow-y: auto;
}

#luoModal label,
#luoModal p,
.privacy-policy p,
.privacy-policy li {
  font-weight: normal;
}

.tapahtuma_hylatty {
  display: none;
  position: fixed;
  z-index: 15;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 390px;
  /* height: 10%; */
  background-color: rgba(0,0,0,0.45);
  box-shadow: -4px 8px 4px rgba(0, 0, 0, 0.25);
  border-radius: 30px;
  background: linear-gradient(165deg, #f98282 50%, #E07575 50%);
  cursor: pointer;

  border: 5px solid;
  animation-name: animaatio_huomio, tulo_animaatio;
  animation-duration: 0.7s, 0.2s;
  animation-iteration-count: infinite, 1;
  animation-timing-function: linear, ease-out;
}

.tapahtuma_hylatty:active {
  background: linear-gradient(165deg, #f12d2d 50%, #e03838 50%) !important;
}

@keyframes animaatio_huomio {
  0% {
    border-color: black;
  }
  50% {
    border-color: rgb(255, 0, 0);
  }
  100% {
    border-color: black;
  }
}

@keyframes tulo_animaatio {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

#paikka_otsikko {
  text-align: center;
  margin-top: 2vh;
  font-size: 22px;
}

#paikka_alaotsikko {
  text-align: center;
  margin-top: -1vh;
  font-size: 15px;
  text-decoration: underline;
}

.tausta {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  z-index: 4;
  animation-name: tulo_animaatio;
  animation-duration: 0.2s;
  animation-iteration-count: 1;
  animation-timing-function: ease-out;
}

.tapahtuma_lisatty {
  display: none;
  position: fixed;
  z-index: 999;
  left: 50%;
  top: 45%;
  transform: translate(-50%, -50%);
  width: 390px;
  height: 10%;
  background-color: rgba(0,0,0,0.45);
  box-shadow: -4px 8px 4px rgba(0, 0, 0, 0.25);
  border-radius: 30px;
  background: linear-gradient(165deg, rgb(17, 255, 0), rgb(4, 175, 27));
  color: rgb(16, 16, 16);
  cursor: pointer;

  border: 5px solid;
  animation-name: animaatio_hyvaksytty, tulo_animaatio;
  animation-duration: 1.1s, 0.2s;
  animation-iteration-count: infinite, 1;
  animation-timing-function: linear, ease-out;
}

.tapahtuma_lisatty:active {
  background: linear-gradient(165deg, rgb(202, 255, 198), rgb(5, 233, 35));
}

@keyframes animaatio_hyvaksytty {
  0% {
    border-color: black;
    color: rgb(16, 16, 16);
  }
  50% {
    border-color: rgb(0, 255, 0);
    color: rgb(0, 0, 0);
  }
  100% {
    border-color: black;
    color: rgb(16, 16, 16);
  }
}

@keyframes tulo_animaatio {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.tapahtuma_lisatty p {
  text-align: center; 
  margin-top: 29px;
  font-size: 20px;
}

.close {
  color: #aaa;
  float: right;
  font-size: 28px;
  font-weight: bold;
}

.close:hover,
.close:focus {
  color: black;
  text-decoration: none;
  cursor: pointer;
}

#sivulinkki {
  color: #000;
  border-bottom: 2px solid #000; /* Lisätään isompi ja alempi viiva */
  padding-bottom: 2px; /* Välilyönti tekstin ja viivan välillä */
}

/* Default style for links */
.nav-link {
  text-decoration: none;
}

/* Style for the active page (underline when you're on the page) */
.nav-link.active {
  text-decoration: none;
  border-bottom: 3px solid #000; /* Lisätään isompi ja alempi viiva */
}

form {
  display: flex;
  flex-direction: column;
  align-items: center; /* Keskittää lomakekentät vaakasuunnassa */
}

form label {
  text-align: left;
  width: 50%;
  margin-top: 11px;
  font-size: large;
  display: block; /* Pitää muut labelit lohkoelementteinä */
  margin-bottom: 5px;
  float: left;
}

#nimi_label {
  width: unset;
  white-space: preserve nowrap;
  flex: 1;
}

form input, form textarea {
  width: 50%;
  padding: 12px;
  margin-bottom: 10px;
  margin-top: 5px;
}

/* form .editor-field,
form #editor {
  width: 50%;
  max-width: 100%;
  margin: 5px 0 10px;
  box-sizing: border-box;
  display: block;
}

form #editor .ql-toolbar,
form #editor .ql-container,
form #editor .ql-editor {
  width: 100% !important;
  max-width: 100%;
  box-sizing: border-box;
  display: block;
}

form #editor .ql-container {
  min-height: 180px;
  border-radius: 0 0 6px 6px;
}

form #editor .ql-toolbar {
  border-radius: 6px 6px 0 0;
  display: flex;
  flex-wrap: wrap;
}

form #editor .ql-editor {
  min-height: 180px;
  font-size: 15px;
  line-height: 1.5;
  padding: 12px;
} */

.ql-editor .ql-align-center, .ql-align-center { text-align: center; }
.ql-editor .ql-align-right, .ql-align-right { text-align: right; }
.ql-editor .ql-align-justify, .ql-align-justify { text-align: justify; }

/* Nimi ja päivämäärä vierekkäin */
.form-row {
  display: flex; /* Flexbox käyttöön */
  flex-direction: row;
  width: 50%;
  gap: 5vh;
}

.form-row input {
  width: 100%; /* Kumpikin kenttä vie noin puolet rivistä */
}

#nimi {
  width: 100%;
}

#nimi label {
  white-space: nowrap; /*Teksti ei mene toiselle riville*/
}

#name {
  max-width: 274px;
  max-height: 49px;
}

#paiva {
  width: 45%;
  flex: 2;
}

#date {
  height: 49px;
  max-width: 129.33px;
}

#laheta, #laheta_2 {
  margin-top: 2vh;
  width: 130px !important;
  background: #27ff00;
  border-radius: 5px;
  font-size: large;
  cursor: pointer;
}

#laheta_3 {
  align-items: center !important;
  height: 50px !important;
  margin-top: 20px;
  margin-bottom: 4vh;
  background-color:#006633;
  border-radius: 12px; /* Rounded corners */
  box-shadow: 0 4px 15px rgba(130, 130, 130, 0.3); /* Subtle glow shadow */
  transition: transform 0.1s ease, box-shadow 0.3s ease; /* Smooth hover animation */
  font-family: 'Arial', sans-serif; /* Clean font */
  color: #ffffff; /* White text for contrast */
}
  
/* Hover effect */
#laheta_3:active {
    transform: translateY(4px); /* Slight lift */
    box-shadow: 0 6px 20px rgba(212, 212, 212, 0.5); /* Enhanced shadow */
}

#laheta_3:hover {
  background: #2ac010;
}

#peruuta, #peruuta_2, #peruuta-muokkaus {
  width: 80px !important;
  color: #ffffff;
  background: #ff0000;
  border-radius: 5px;
  cursor: pointer;
}

#peruuta:hover, #peruuta_2:hover {
  background: #cf1010;
}

#peruuta:active {
  transform: translateY(5px);
}

#peruuta, #laheta {
  align-self: baseline;
  margin-left: 25%;
  cursor: pointer;
}

#lahtea:hover, #laheta_2:hover {
  background: #2ac00f;
}



@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  50% { transform: translateX(5px); }
  75% { transform: translateX(-5px); }
}

.underlineless {
  text-decoration: none;
}

.tarkea_yksi {
  position: relative;
  left: 830px;
}

.soviet_union_EsaOotHo {
  border-style: solid;
  border-color: red;
  border-width: 2px;
}

.no_width {
  width: unset !important;
}

.korosta_tausta {
  background-image: linear-gradient(#c9dfff, white) !important;
  font-stretch: expanded;
}

.korosta_tausta:hover {
  background-image: none !important;
  background-color: rgba(0, 0, 238, 0.5) !important;
  color: white !important;
}

div.event_header, div.event_header2 {
  background-image: linear-gradient(#015EE9, white);
  border-radius: 61px;
  height: 12vh;
  width: auto;
  justify-content: center;
  display: flex;
  flex-direction: column;
  font-size: 13px;
  color: black;
}
div.event_header2 {
  background-image: linear-gradient(#e9d6017d, white);
}

.tapahtuma_sivu {
  align-items: center;
  max-width: fit-content;
  display: contents;
}

.laatikot p {
  text-align: center;
}

#tapahtuman_tiedot {
  margin: auto;
  margin-top: 2vh;
  max-width: 1000px;
  background-color: #7db1ff10;
  overflow-wrap: break-word;
  hyphens: auto;
  /* margin-bottom: 4vh; */
  padding-bottom: 2vh;
  padding-left: 8px;
  padding-right: 8px;
}

#tapahtuman_tiedot h3.ylaotsikko_tiedot {
  text-align: center;
  font-size: 26px;
}

.tapahtuma_otsikko {
  display: flex;
  justify-content: center;
}

.tapahtuma_sivu h2 {
  -webkit-text-stroke: 1px rgba(128, 128, 128, 0.38);
  background-clip: text;
  background-image: radial-gradient(circle, rgb(85, 130, 255), rgb(85, 162, 244));
  color: transparent;
  font-size: 51px;
  text-align: center;
  white-space: wrap; 
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
  width: 1000px;

}

.tapahtuma_sivu h4 {
  -webkit-text-stroke: 1px rgba(128, 128, 128, 0.38);
  background-clip: text;
  background-image: radial-gradient(circle, rgb(85, 130, 255), rgb(97, 173, 255));
  color: transparent;
  text-align: center;
  font-size: 32px;
  margin-top: -3vh;
}

.event_link, .event_link_2 {
  text-decoration: none;
  cursor: pointer !important;
}

.event_link_2 {
  text-decoration:underline;
  list-style-type: circle !important;
}

.event_link_2:hover {
  color:rgb(255, 0, 0);
}

.tapahtuma_nimi {
  margin-bottom: -15px;
}

.tapahtuma_nimi h1{
  width: 100%;
  white-space: nowrap; 
  overflow: hidden;
}

.tapahtuma_aika {
  margin-top: -15px;
}

.laatikot {
  display: flex;
  flex-direction: row;
  gap: 20px;
  justify-content: center;
  margin-top: -25px;
  min-height: 125px;
  overflow: hidden;
}

.laatikot > div {
  border-color: #00A5A5;
  width: 210px;
  border-style: solid;
  border-width: 1px;
  border-radius: 18px;
  align-items: center;
  height: fit-content; 
}

.laatikot p {
  font-size: 18px;
  text-decoration: none;
}

.laatikot b{
  display: flex;
  justify-content: center;
}

.huom_laatikko {
  background-color: #B2DFDB;
  height: 125px;
}

.info_laatikko {
  background-color: #7db1ff;
  width: 200px;
  min-height: 125px;
  max-height: fit-content;
  white-space: wrap; 
  overflow: visible;
  word-wrap: break-word;
  overflow-wrap: break-word;
}

.tallenna-btn:active {
  transform: translateY(5px); 
}

.highlight {
  animation: flash 0.8s infinite linear;
}

@keyframes flash {
  0% {
    box-shadow: 5px 5px 7px #015EE9;
  }
  50% {
    box-shadow: 5px 5px 18px #c6ddff;
  }
  100% {
    box-shadow: 5px 5px 7px #015EE9;
  }
}

@keyframes flash_2 {
  0% {
    box-shadow: 0px 0px 3px #015EE9;
  }
  50% {
    box-shadow: 0px 0px 28px #c6ddff;
  }
  100% {
    box-shadow: 0px 0px 3px #015EE9;
  }
}

.kiinnitetty-kuva {
  padding: 1px;
  width: 55px;
  position: absolute;
  cursor: pointer;
  right: 3vh;
  border-radius: 5px;
  background-color: #ff1500a3; 
  border: 2px solid #0056b3; 
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
  
}

.kiinnitetty-kuva:hover {
  background-color: #000000; 
}


.kiinnitetty-kuva:active {
  animation: valky 0.3s linear;
  animation-iteration-count: infinite;
}

@keyframes valky {
  0% {
    background-color: #ff1500a3;
  }
  50% {
    background-color: #000000;
  }
  100% {
    background-color: #ff1500a3;
  }
}

.oikea_kuvat {
  width: 25px;
  margin-left: 8px;
}

#svg_kartta {
  margin-top: 1vh;
  text-align: center;
}

#svg_kartta svg {
  width: 100%; 
  height: auto; 
  max-width: 1000px; 
  max-height: 800px; 
  border: 1px solid black; /* Lisää yksinkertainen musta reunus */

}

text {
  user-select: none; 
  pointer-events: none; 
}

rect:has(title), ellipse:has(title), polygon:has(title), path:has(title), circle:has(title) {
  cursor: pointer; 
}

.hover-highlight:hover {
  fill: rgba(43, 255, 0, 0.061) !important;
}

.ylaotsikko {
  border-bottom: 2px solid #dee0e480;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
  font-size: large;
  padding-bottom: 10px;
  text-align: center;
}

#hyvaksynnan_tila {
  display: flex;
  justify-content: flex-start; 
  gap: 10vh; 
  width: 85%;
  margin: auto;
  max-width: 1000px;
  padding-bottom: 7vh;
}

#hyvaksynnan_tila dl {
  margin: 0; 
  width: 50%;
}

#pallo {
  display: inline-block;
  border: 1px solid #808080;
  background: #fff952;
  width: 27px;
  text-align: center;
  border-radius: 50%;
  margin-right: 1vh;
  margin-top: 1vh;
  user-select: none;
}

.pallo-text-container {
  max-width: 250px;
  overflow: hidden;
  word-wrap: break-word;
}

#pallo_1 {
  display: inline-block;
  border: 1px solid #808080;
  background: #FF0000;
  width: 27px;
  text-align: center;
  border-radius: 50%;
  margin-right: 1vh;
  margin-top: 1vh;
  user-select: none;
}

dt {
  position: relative;
}

#hyvaksynta_taulu {
  border-collapse: collapse;
  text-align: center !important;
  justify-self: center;
}

#hyvaksynta_taulu td, #hyvaksynta_taulu th {
  border: 1px solid #ddd;
  padding: 8px;
  max-width: 135px;
  max-height: fit-content;
}

.td-text:hover {
  overflow: visible;
  -webkit-line-clamp: unset;
  line-clamp: unset;
}

.td-text {
  display: -webkit-box; /* Enables multi-line truncation */
  -webkit-line-clamp: 3; /* Limits text to 3 lines */
  line-clamp: unset;
  -webkit-box-orient: vertical; /* Specifies vertical orientation for the box */
  overflow: hidden; /* Hides content beyond the 3 lines */
  white-space: normal; /* Allows text to wrap */
  position: relative;
  z-index: 20;
  word-wrap: break-word;
  overflow-wrap: break-word;
  hyphens: auto;
  line-height: normal;
}

#hyvaksynta_taulu tr:nth-child(even){
  background-color: #f2f2f2;
}

#hyvaksynta_taulu tr:hover {
  background-color: #ddd;
}

#hyvaksynta_taulu th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #00d0e8;
}

#varaustaulu-laatikko {
  border: 1px dotted #9d0000; 
  color: red;
  text-align: center;
  display: none;
  margin: 0 auto;
  margin-top: 4vh;
  max-width: 500px;
}

#varaukset_taulu {
  border-collapse: collapse;
  width: 100%;
  text-align: center !important;
  justify-self: center;
}

#varaukset_taulu td, #varaukset_taulu th {
  border: 1px solid #ddd;
  padding: 8px;
  min-width: 90px;
  max-width: 250px;
}

#varaukset_taulu tr:nth-child(even){
  background-color: #f2f2f2;
}

#varaukset_taulu tr:hover {
  background-color: #ddd;
}

#varaukset_taulu th {
  padding-top: 12px;
  padding-bottom: 12px;
  background-color: #00b4c8;
}

#varaus-header-button {
  background-color: rgb(52 255 67);
  border-radius: 4px;
  border: solid 2px black;
  /* min-height: 75px; */
  width: 350px;
  overflow: hidden;
  word-wrap: break-word;
}

.varaus-content-inner {
  background-color: rgb(90 255 126);
  border-radius: 4px;
  margin-bottom: 10px;
  width: 350px;
  overflow: hidden;
  word-wrap: break-word;
}

#reservation-buttons {
  width: 100%;
  display: flex;
  flex-direction: row;
}

#hyvaksynta-nappi {
  background-color: white;
  color: green;
  border: solid 3px green;
  width: 50%;
  height: 40px;
  border-radius: 4px;
}

#poisto-nappi {
  background-color: white;
  color: red;
  border: solid 3px red;
  width: 50%;
  height: 40px;
  border-radius: 4px;
}

#power {
  width: 20px !important;
  height: 40px;
  border: solid 2px black;
}

#power-container {
  display: flex;
  flex-direction: row;
  /* width: 480px; */
  height: 50px;
  position: relative;
}

#sijoitus_napit {
  margin-top: 7vh;
  display: flex;
  gap: 20vh;
  justify-content: center;
  margin-bottom: 5vh;
}

#hylkaa_npi {
  background: rgb(255, 127, 127);
  box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
  width: 159px;
  height: 70px;
  border-radius: 10px;
  border: none;
  -webkit-text-stroke: 1px;
  color: black;
  font-size: 25px;
  font-style: italic;
}

#hyvaksy_npi {
  background: rgb(163, 255, 147);
  box-shadow: 0px 4px 4px rgba(0,0,0,0.25);
  width: 159px;
  height: 70px;
  border-radius: 10px;
  border: none;
  -webkit-text-stroke: 1px;
  color: black;
  font-size: 25px;
  font-style: italic;
}

#hyvaksy_npi:hover {
  background: rgb(29, 194, 0);
  cursor: pointer;
}

#hylkaa_npi:hover {
  background: rgb(164, 0, 0);
  cursor: pointer;
}

.hyvaksy-checkbox {
  width: 45px;
  zoom: 1.4;
  accent-color: #00d0e8;
}

#napin_kuva {
  width: 30px;
  top: 5px;
  position: relative;
}

#napin_kuva_1 {
  width: 29px;
  top: 5px;
  position: relative;
  margin-left: 3px;
}

#muokkaa_button:hover {
  background: rgb(197, 212, 255);
}

.tooltip {
  position: relative;
  display: inline-block;
  cursor: help;
  margin-top: 2%;
}

.tooltip .tooltiptext {
  visibility: hidden;
  width: 200px;
  background-color: black;
  color: #fff;
  text-align: center;
  border-radius: 6px;
  padding: 5px;
  position: absolute;
  z-index: 1;
  bottom: 125%; /* Position the tooltip above the text */
  left: 50%;
  margin-left: -100px; /* Use half of the width (120/2 = 60), to center the tooltip */
  opacity: 0;
  transition: opacity 0.3s;
}

.tooltip:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.vapaa {
  fill: #00ff77 !important;
}

.odottaa {
  fill: #fbff00 !important;
}

.varattu {
  fill: #ff4e4e !important;
}

/* tämä on laitettu vain testiksi tori svg kuvalle */
.fil13 { 
  fill: #000000 !important;
}

#myDIV {
  animation-name: lento;
  animation-duration: 0.5s;
}

@keyframes lento {
  0%   { 
    transform: translateY(100%); 		
    opacity: 0;
    }
    100% { 
    transform: translateY(0%);
    opacity: 1; 
    }
}

#virhe_viesti {
  color: red;
  font-size: 24px;
}

/* .virheviesti { /* $_SESSION[virheviesti]
  color: red;
  font-size: 24px;
} */

.vaihda_salis, .salis_piiloon {
  border-bottom: 1px solid #dee0e4; 
  width: 100%; 
  margin-left: -5%; 
  cursor: pointer;
}

.vaihda_salis:hover, .salis_piiloon:hover {
  color: darkblue;
  text-decoration: none;
}

.salis_piiloon {
  display: none;
}

.sisaanTulo {
  animation: sisaanTulo 0.3s forwards;
}

.poistuminen {
  animation: poistuminen 0.3s forwards;
}

@keyframes sisaanTulo {
  0% {
      transform: translateY(-30%);
  }
  100% {
      transform: translateY(0%);
  }
}

@keyframes poistuminen {
  0% {
      transform: translateY(0%);
      opacity: 1;
  }
  100% {
      transform: translateY(-30%);
      opacity: 0;
  }
}
#laatikko {
  width: 250px;
  border: 15px solid green;
  padding: 30px;
  margin: 0; /* Poistetaan marginaalit */
  font-size: 17px;
  background-color: rgba(255, 255, 255);
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
  text-shadow: 3px 2px 10px black;
  font-weight: bold; 
  color: #006633;
  position: fixed; 
  top: 12%; 
  left: 10%; 
  transform: translate(-50%, -50%);
  animation-name: pulse;
  animation-duration: 0.5s;
  animation-fill-mode: forwards;
  transition: transform 0.2s;
  z-index: 1;
  cursor: pointer;
}

@keyframes pulse {
  0% {
      opacity: 0;
  }
  10% {
      opacity: 0.5;
      transform-origin: 50% 50%;
      transform: rotate(-2deg) scale(5);
      transition: all 0.3s cubic-bezier(0.6, 0.04, 0.98, 0.335);
  }
  100% {
      opacity: 1;
      transform: rotate(-15deg) scale(1);
  }
}

@media (max-width: 1500px) {
  #laatikko {
    left: 8% !important;
  }
}

@media (max-width: 1000px) {
  #laatikko {
    width: 200px !important;
    font-size: 16px !important;
    padding: 14px !important;
    border: 10px solid green !important;
    left: 0% !important;
    top: 19% !important; 
  }
}

.public-option {
  background-color: rgb(0, 221, 0);
}
.private-option {
  background-color: orange;
}

#onnistunut_paivitys {
  display: none;
  color: rgb(0, 0, 0);
  border: thick double #32ce32;
  border-width: 4px;
  background-color: rgb(220, 244, 255);

  margin-top: -10%;
  font-size: 20px;
  width: 49%;
  justify-self: anchor-center;
  text-align: center;
}

#vari {
  align-items:normal !important;
  display: contents;
}
#ohjeet {
  text-align: center;
  color: grey;
  max-width: 445px;
  justify-self: center;
}

.error_message {
  color: red;
  font-size: 24px;
  text-align: center;
}

.kortti, .kortti_2 {
  border-style: solid;
  border-radius: 5px;
  padding: 20px;
  background-image: url("kuvat/Kortti.jpg");
  box-shadow: 2px 5px 4px rgb(198, 198, 198);
  width: 900px;
  justify-self: center;
  margin-bottom: 3vh;
}
.palkeet { /* Kortin tekstille animaatio */
  animation-name: aloitusanimaatio;
  animation-duration: 0.7s;
  animation-fill-mode: forwards;
}
.kortti_2 {
  animation-name: varinvaihto;
  animation-duration: 0.3s;
  animation-fill-mode: forwards;
}
@keyframes aloitusanimaatio {
  0% {
    opacity: 0;
    font-size: 10px;
  }
  100% {
    opacity: 1;
    font-size: 16px;
  }
}
@keyframes varinvaihto {
  0% {  
    border-top: solid #000000;
    border-right: solid #2e2e2e;
    border-bottom: solid #615e45;
    border-left: solid #6e694d;
  }
  25% {  
    border-top: solid #6b674d;
    border-left: solid #b4a95e;
    border-bottom: solid #918b53;
    border-right: solid #918958;
  }
  50% {  
    border-bottom: solid #827b4f;
    border-right: solid #c5b75d;
    border-top: solid #b9ad3d;
    border-left: solid #bbaf5f;
  }
  75% {  
    border-top: solid #c2b45a;
    border-right: solid #ebd757;
    border-bottom: solid #ebdc53;
    border-left: solid #d5c561;
  }
  100% {  
    border: solid #f2e63a;
  }
}
.kortti #nimi, .kortti_2 #nimi {
  font-size: 30px;
  transition: 0.2s;
  margin-top: -10px;
  margin-bottom: -17px;
  text-shadow: 0px 0px 1px #5e5e5e;
}
.kortin_sisalto {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  margin-top: 50px;
}
.harmonikka {
  position: relative;
}
.harmonikka::after {
  content: '';
  position: absolute;
  width: 100%;
  transform: scaleX(0);
  height: 2px;
  bottom: -2vh;
  left: 0;
  background-color: rgba(242, 230, 58, 0.696);
  transition: transform 0.25s ease-out;
}
.harmonikka:hover::after {
  transform: scaleX(1);
  height: 4px;
  transform-origin: bottom center;
}
.harmonikka:active::after {
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease-out;
}

#henkilo {
  font-size: 18px;
  transition: 0.2s;
}
#nimi, #henkilo {
  text-align: center;
}

#vasenosio, #oikeaosio {
  width: 48%;
}
#vasenosio {
  padding-right: 10px;
  border-right: 5px solid rgb(242, 230, 58);
}
#oikeaosio {
  padding-left: 3%;
}

#kuvake_poisto, #kuvake_muokkaa {
  color: red;
  cursor: pointer;
  float: right;
  margin-top: -2%;
}

#kuvake_muokkaa {
  color: rgb(255, 119, 0) !important;
}

#kuvake_poisto:hover {
  color: #930000;
}

#kuvake_muokkaa:hover {
  color: rgb(157, 73, 0) !important;
}

#ohjeet_varaukset, .content_2 h2 {
  max-width: 1000px;
  display: flex;
  justify-content: center;
  margin: 0 auto;
}

.keskitetty {
  background-image: url(kuvat/suurennuslasi.png);
  background-position: 10px 10px;
  background-repeat: no-repeat;
  background-size: 25px 25px;

  display: block;
  width: 20%;
  padding: 12px 20px 12px 50px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 5px;
  min-width: 370px;
}



#kysymykset, #myynti {
  margin-top: 2vh;
  border-top: solid #c2b45a;
  border-right: solid #ebd757;
  border-bottom: solid #ebdc53;
  border-left: solid #d5c561;
  padding-left: 7px;
  color: darkslategrey;
}

#maksettu {
  margin-bottom: 1vh;
}

#vierekkain {
  display: flex;
  justify-self: center;
  gap: 2vh;
  padding: 2vh;
}

#vierekkain button {
  width: 90px;
  height: 49px;
  align-self: center;
  cursor: pointer;
}

#vierekkain button img {
  width: 19px;
  display: flex;
  justify-self: center;
}

#silma_kiinni {
  display: none;
}

.nappi_tapahtumat {
  margin-bottom: 1.5vh;
  padding: 10px 20px; 
  font-size: 19px;
  cursor: pointer;
  background-color: #f0f0f0; 
  border: 1px solid #ccc; 
  border-radius: 5px; 
  transition: background-color 0.3s, transform 0.2s; 
}

.nappi_tapahtumat:hover {
  background-color: #e0e0e0; 
  transform: scale(1.01); 
}

.nappi_tapahtumat input {
  display: none; 
}

.nappi_tapahtumat label {
  cursor: pointer;
  display: inline-block;
  font-weight: bold;
  color: #292929; 
}

.nappi_tapahtumat label::before {
  content: "☐"; 
  display: inline-block;
  margin-right: 10px;
  font-size: 18px;
  color: #777777; 
}

.nappi_tapahtumat input:checked + label::before {
  content: "☑"; 
  color: #4caf50; 
}

#kesktia_napit {
  display: flex; 
  flex-wrap: wrap; 
  justify-content: center; 
  gap: 10px;
  text-align: center;
}