 /*aloitetaan asettamalla fontit ja tausta*/
 body {
     font-family: Arial, sans-serif;
     text-align: center;
     background-color: #ce1b1b;
     color: white;
     margin: 0;
     background: url('tausta.jpg') repeat;
     background-size: 500px;
 }

 h1 {
     /* stailataan otsikko */
     margin-top: 20px;
     margin-bottom: 20px;
     font-size: 75px;
     color: #fff;
     text-shadow: 4px 4px 0 #097a07;
 }

 /* otsikon reunus */
 .reunus1 {
     border: 8px solid #000c00;
     border-radius: 12px;
     display: inline-block;
     padding: 10px 20px;
     margin: 10px auto;
     box-shadow: 0 0 40px rgb(221, 9, 9);
     background: rgba(0, 0, 0, 0.2);
 }

 /* luukkujen ruudukon asettelu */
 form {
     display: grid;
     grid-template-columns: repeat(6, 1fr);
     grid-template-rows: repeat(4, 1fr);
     gap: 10px;
     width: 90vw;
     height: 75vh;
     margin: 0 auto;
     justify-items: center;
     align-items: center;
     position: relative;
 }

 /* luukkujen koko */
 .grid-item {
     position: relative;
     width: 100%;
     height: 100%;
     max-width: 300px;
     max-height: 300px;
     ;
 }

 /* kalenterin reunuksen stailaus */
 .reunus2 {
     padding: 20px;
     border: 8px solid #0d0d0d;
     border-radius: 20px;
     width: 95vw;
     margin: 0 auto;
     box-shadow: 0 0 40px rgb(221, 9, 9);
     background: rgba(0, 0, 0, 0.2);
 }

 /* kuvat luukun takana */
 .photo-box {
     position: absolute;
     top: 0;
     left: 0;
     width: 97%;
     height: 97%;
     border-radius: 10px;
     background-size: cover;
     background-position: center;
     z-index: 1;
     /* z index asettaa kuvan suljetun luukun (buttonin) taakse */
     border: 3px solid #fff;
 }

 /* suljetun luukun (buttonin) stailaus ja koko*/
 input[type="button"] {
     width: 100%;
     height: 100%;
     max-width: 300px;
     max-height: 300px;
     font-size: 100px;
     border: 2px solid white;
     border-radius: 10px;
     background-color: #d62828;
     color: white;
     text-shadow: 4px 4px 0 #097a07;
     cursor: pointer;
     transition: background-color 0.3s, transform 0.2s;
     position: relative;
     z-index: 2;
     /* z index asettaa buttonin kuvan eteen ennen kuin se on avattu */

 }

 /* suljetun luukun hover aseukset */
 input[type="button"]:hover {
     background-color: #a31e1e;
     transform: scale(1.05);
 }

 /* 24 luukun erillisen sivun stailaus alkaa tästä */
 .kuvasivu {
     margin: 0;
     height: 100vh;
     display: flex;
     justify-content: center;
     align-items: center;
     background-color: #000;
     /* optional */
 }

 .kuvasivu .container {
     position: relative;
     width: 80%;
     max-width: 800px;
 }

 /* asettelee kuvan*/
 .kuvasivu img {
     width: 100%;
     height: auto;
     display: block;
     border-radius: 10px;
 }

 /* asettelee kuvan tekstin ja stailaa sen*/
 .kuvasivu .center-text {
     position: absolute;
     top: 50%;
     left: 50%;
     transform: translate(-50%, -50%);
     color: white;
     font-size: 2em;
     font-weight: bold;
     text-align: center;
     background: rgba(0, 0, 0, 0.5);
     padding: 10px 20px;
     border-radius: 8px;
 }