/* Üldised seaded */
body {
  background-color: palegreen;
  color: #000000;
  margin: 0 auto;
  padding: 10px;
  max-width: 1150px;
  width: 100%;
  box-sizing: border-box;
  font-size: 18px;
}

main {
  font-family: Calibri, sans-serif;
}

/* Pealkirjad */
h1, h3, h4 {
  color: MidnightBlue;
}

h1 {
  font-size: 36pt;
  font-style: normal;
  font-weight: 900;
  text-align: left;
}

h2 {
  color: white;
}

h3 {
  margin-top: 0;
}

h4 {
  margin: 0 0 10px;
  font-size: 1.2em;
}

/* Tekst ja loendid */
p {
  margin: 0;
}

ul {
  margin: 0;
  padding-left: 20px;
}

.faktid li {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

a:visited {
  color: green;
  font-weight: 600;
}

/* Tabelid */
table {
  width: 100%;
  border-spacing: 20px;
  table-layout: fixed;
}

td {
  vertical-align: top;
  text-align: left;
}

/* Piltide vaikimisi stiil */
figure img {
  border-radius: 40px;
  transition: border-radius 0.3s ease;
}

figure img:hover {
  border-radius: 0;
}

/* Galerii */
.gallery {
  display: none;
  margin-top: 10px;
}

.gallery img {
  width: 400px;
  margin: 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  transition: transform 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.1);
}

/* Nupud ja sisendid */
button {
  margin-top: 10px;
  cursor: pointer;
}

label, input, button {
  margin: 10px;
  font-size: 16px;
}

/* Joonistamise paneel */
.joonistus-paneel {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  margin-bottom: 10px;
  padding: 5px 0;
}

/* Canvas */
canvas {
  background-color: white;
  border: 2px solid MidnightBlue;
  border-radius: 5px;
  display: block;
  margin: 0 auto 20px auto;
  max-width: 100%;
  height: auto;
  cursor: crosshair;
}

.hariduse-konteiner {
  display: flex;
  flex-direction: row;
  gap: 40px;
  margin-top: 30px;
  align-items: flex-start;
}

/* Vasak veerg – 50% laius */
.vasak-veerg {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Parem veerg – 50% laius */
.parem-veerg {
  width: 100%;
}

.wohrmann-pilt {
  width: 500px;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0,0,0,0.1);
}

.parem-veerg h3 {
  color: MidnightBlue;
  margin-top: 0;
}

.parem-veerg .faktid li {
  margin-bottom: 1.2em;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .hariduse-konteiner {
    flex-direction: column;
  }

  .vasak-veerg,
  .parem-veerg {
    width: 100%;
  }

  .vasak-veerg {
    margin-bottom: 30px;
  }

  .wohrmann-pilt {
    width: 100%;
    height: auto;
  }
}

.lohistus-kast {
  display: flex;
  gap: 20px;
  margin: 20px 0;
  padding: 10px;
  border: 2px dashed #999;
  border-radius: 10px;
  background-color: #f8fff8;
  justify-content: center;
  flex-wrap: wrap;
}

.lohistus-kast img {
  width: 200px;
  height: auto;
  border: 2px solid #ccc;
  border-radius: 10px;
  cursor: grab;
  transition: transform 0.2s ease, border-color 0.3s;
}

.lohistus-kast img:active {
  cursor: grabbing;
  transform: scale(1.05);
}

img.oige {
  border-color: green;
  box-shadow: 0 0 10px green;
}

#vastus {
  font-weight: bold;
  margin-top: 10px;
}

.viktoriin-kast {
  background: #ffffff;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 20px;
  border: 2px solid #ccc;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.1);
}

.pildid-jarjekord {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin: 20px 0;
}

.jarjekorra-item {
  border: 2px dashed #ccc;
  padding: 10px;
  border-radius: 10px;
  background-color: #f9f9f9;
}

.jarjekorra-item label {
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
}

.jarjekorra-item img {
  display: block;
  margin-top: 10px;
  max-width: 100%;
  height: auto;
  border-radius: 5px;
}

.ristsona-kast {
  border: 2px dashed #336699;
  padding: 20px;
  border-radius: 10px;
  background-color: #f0f8ff;
  margin-top: 30px;
}

.ristsona-kast input[type="text"] {
  margin-left: 10px;
  padding: 5px;
  font-size: 16px;
}

.ristsona-kast button {
  margin-top: 10px;
  padding: 8px 16px;
  font-size: 16px;
  background-color: #336699;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
}

.ristsona-kast button:hover {
  background-color: #285580;
}
</style>

.lehe-lopp {
  text-align: center;
  margin-top: 40px;
  margin-bottom: 60px;
}

.kool1-pilt {
  max-width: 90%;
  height: auto;
  border-radius: 10px;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.1);
  margin-top: 20px;
}

.lehe-lopp figcaption {
  margin-top: 10px;
  font-style: regular;
  color: #333;
}
