/* ===================== BLINKING ANIMATIONS ===================== */
.blink-image {
    -moz-animation: blink normal 2s infinite ease-in-out;
    -webkit-animation: blink normal 2s infinite ease-in-out;
    -ms-animation: blink normal 2s infinite ease-in-out;
    animation: blink normal 2s infinite ease-in-out;
}

@keyframes blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

.blinking {
    animation: blinkingText 1.2s infinite;
}

@keyframes blinkingText {
    0% { color: blue; }
    49% { color: blue; }
    60% { color: transparent; }
    99% { color: transparent; }
    100% { color: blue; }
}

.checkbox-input1 {
    width: 1.0em;
    height: 1.0em;
}


.checkbox-input2{
    width: 1.3em;
    height: 1.3em;
}


.checkbox-input3 {
width: 1.6em;
height: 1.6em;
}


.checkbox-input4 {
width: 1.9em;
height: 1.9em;
}


.checkbox-input5 {
width: 2.2em;
height: 2.2em;
}

/* ===================== BUTTONS ===================== */
#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 10px;
    z-index: 99;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: #F58232;
    color: white;
    cursor: pointer;
    padding: 12px;
    border-radius: 4px;
}

#myBtn:hover {
    background-color: #555;
}

/* ===================== CENTERED MODAL ===================== */
.centered {
    border-radius: 20px;
    padding: 20px;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%);
}

/* ===================== BODY ===================== */
body {
    margin: 0;
    font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif;
    font-size: 20px;
    color: #ffffff;
    background-image: linear-gradient(rgba(0,0,0,0.15), rgba(0,0,0,0.15)), url("./kuvat/tausta01.png");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    line-height: 1.5;
}

/* ===================== CONTAINER ===================== */
.container {
    max-width: 500px;
    margin: 20px auto;
    padding: 32px;
    text-align: center;
    background: rgba(0,0,0,0.4);
    border-radius: 10px;
}

/* ===================== LOGO ===================== */
.logo-box {
    display: flex;
    justify-content: center;  /* Keskittää logon */
    margin-bottom: 12px;      /* Väli logon ja otsikon välillä */
}

.logo-box img {
    max-width: 80px; 
    height: auto;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7))
            drop-shadow(0 0 10px rgba(255, 215, 0, 0.5));
    animation: glow 2s infinite alternate;
}

@keyframes glow {
    0%   { filter: drop-shadow(0 0 4px rgba(255,215,0,0.5)) drop-shadow(0 0 10px rgba(255,215,0,0.4)); }
    50%  { filter: drop-shadow(0 0 8px rgba(255,215,0,0.9)) drop-shadow(0 0 14px rgba(255,215,0,0.6)); }
    100% { filter: drop-shadow(0 0 6px rgba(255,215,0,0.7)) drop-shadow(0 0 10px rgba(255,215,0,0.5)); }
}

/* ===================== HEADINGS ===================== */
h4 {
	font-size: 28px;    
	text-align: center;
    margin-top: 0;
    margin-bottom: 12px; /* Väli logon ja h1 välillä */
    color: #ffd700;
}

h1, h2, h3 {
    color: #fff;
    margin-top: 0;
  }
  h1 { font-size: 24px; }
  h2 { font-size: 20px; }
  h3 { font-size: 18px; }

  p { margin-bottom: 16px;
}

/* ===================== LABELS ===================== */
label {
    display: block;
    margin-top: 15px;
    font-weight: bold;
}

/* ===================== INPUTS & TEXTAREA ===================== */
input[type="text"],
input[type="email"],
input[type="date"],
input[type="file"],
input[type="tel"],
textarea,
select {
    width: 100%;
    padding: 8px;
    margin-top: 4.8px;
    border: 1px solid #ccc;
    border-radius: 5px;
    box-sizing: border-box;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

/* ===================== SUBMIT & BACK BUTTONS ===================== */
.submit-button {
    background-color: #ffd700;
    color: #000;
}

.submit-button:hover {
    background-color: #e6c200;
}

.back-button {
    background-color: #4362FF;
    color: #fff;
}

.back-button:hover {
    background-color: #354FCC;
}

/* Flex container for buttons */
.button-row {
    display: flex;
    justify-content: space-between;
    margin-top: 24px;
}

.button-row button {
    padding: 11.2px 24px;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.2s;
}

/* ===================== LINKS ===================== */
a {
    color: #ffd700;
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* ===================== RESPONSIVE TABLETS ===================== */
@media (max-width: 600px) {
    .container {
        margin: 36px 16px;
        padding: 16px;
    }
    .logo-box img {
        max-width: 60px; /* Pienempi logo tableteilla */
    }
    h1 {
        font-size: 26px; /* hiukan isompi otsikko */
        margin-bottom: 10px;
    }
}

/* ===================== RESPONSIVE PHONES ===================== */
@media (max-width: 450px) {
    .container {
        margin: 24px 12px;
        padding: 1rem;
    }
    .logo-box img {
        max-width: 50px; /* Vielä pienempi logo */
    }
    h1 {
        font-size: 28px; /* Isompi otsikko kännyllä */
        margin-bottom: 10px;
    }
}

/* ===================== VALIPOIS ===================== */
.valipois h2 {
    margin-bottom: 0;
    font-size: 20px;
}

.valipois p {
    margin-top: 0;
    margin-bottom: 16px;
    font-size: 18px;
}

/* ===================== CHECKBOX ===================== */
.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.checkbox-row input[type="checkbox"] {
  transform: scale(2);
  transform-origin: left center;
}

.checkbox-row span {
  font-size: 13px;
  line-height: 1.4;
}
