/* Global Reset and Font Family */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Georgia', 'Times New Roman', serif;
}

body {
  background-color: #f7f7f7;
  line-height: 1.6;
}

.formal-container {
  width: 300px;
  padding: 20px;
  background-color: #ffffff;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  line-height: 1.6;
  text-align: left;
  color: #333;
  margin-left: auto;
  margin-right: 0;
}

.caption {
  text-align: center;
  font-size: 14px;
  margin-top: 8px;
  color: #444;
}

#material1Caption {
  margin: 10px;
  padding: 15px 0 15px 10px;
}

.sidepanel {
  width: 0;
  position: fixed;
  z-index: 1;
  height: 250px;
  top: 25px;
  right: 0;
  background-color: #d5a45e;
  overflow-x: hidden;
  transition: 0.5s;
  padding-top: 35px;
}

#lists {
  margin-left: 20px;
  padding: 8px 8px 8px 32px;
  color: white;
}

.sidepanel a {
  padding: 8px 8px 8px 32px;
  text-decoration: none;
  font-size: 25px;
  color: #fff7f7;
  display: block;
  transition: 0.3s;
}

.sidepanel a:hover {
  color: #6b6969;
}

.sidepanel .closebtn {
  position: absolute;
  top: 0;
  right: 25px;
  font-size: 36px;
}

.openbtn {
  font-size: 20px;
  cursor: pointer;
  background-color: #d21b7a;
  color: white;
  padding: 10px 15px;
  border: none;
}

.openbtn:hover {
  background-color: #444;
}

li {
  margin: 20px;
}

.m {
  color: rgb(35, 33, 33);
}

.button {
  border: none;
  color: white;
  padding: 5px 10px;
  text-align: center;
  text-decoration: none;
  display: inline-block;
  font-size: 16px;
  margin: 4px 2px;
  transition-duration: 0.4s;
  cursor: pointer;
}

.button1 {
  background-color: white;
  color: black;
  border: 2px solid #4CAF50;
}

.button1:hover {
  background-color: #4CAF50;
  color: white;
}

.allbox {
  border: 4px solid rgb(25, 78, 134);
  border-radius: 25px;
  margin: 40px;
  height: 2000px;
  margin-bottom: 20px;
  padding: 30px;
  box-shadow: 2px 2px 5px 4px black;
}

.container {
  display: flex;
}

.main-section, .main-section2, .main-section3 {
  display: flex;
  flex-direction: column;
  background-color: bisque;
  border-radius: 25px;
  margin: 2px;
  margin-left: 0px;
  border: 2px solid black;
}

.main-section {
  height: 1500px;
  width: 50%;
}

.main-section2 {
  height: 1500px;
  width: 150%;
  margin-right: 0;
}

.main-section3 {
  height: 330px;
  width: 100%;
}

.control-container {
  display: flex;
  flex-direction: column;
  margin: 20px 0;
  padding: 20px;
}

.moveable, .moveable3, .moveable5, .moveable6 {
  position: absolute;
  transition: transform 1s ease;
}

.moveable {
  width: 170px;
  height: 129px;
}

.moveable3 {
  width: 40px;
  height: 200px;
}

.moveable5 {
  width: 124px;
  height: 512px;
}

.moveable6 {
  width: 170px;
  height: 129px;
}

.target, .target3, .target5 {
  position: absolute;
}

.target {
  width: 257px;
  height: 129px;
}

.target3 {
  width: 124px;
  height: 512px;
}

.target5 {
  width: 55px;
  height: 220px;
}

.B[disabled] {
  background-color: gray;
  cursor: not-allowed;
}

.hidden {
  display: none;
}

#elementName {
  position: absolute;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 20px;
  text-align: center;
  display: none;
  margin-inline: 800px;
  margin-top: 300px;
}

#image-container {
  width: 200px;
  height: 100px;
  position: relative;
}

.svg-image {
  position: absolute;
  width: 100%;
  height: 100%;
  display: none;
}

#resultContainer {
  display: none;
  width: 100%;
  max-width: 1000px;
  height: 650px;
  margin: 0px auto 0;
  padding: 25px;
  background-color: #fff;
  box-sizing: border-box;
}

#material1Slideshow, #material2Slideshow {
  display: none;
  text-align: center;
}

.slideshowImage {
  width: 100%;
  max-width: 400px;
  object-fit: contain;
  height: 400px;
  border-radius: 12px;
  margin-bottom: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.caption {
  font-size: 16px;
  padding: 12px 16px;
  background-color: #fefefe;
  border: 1px solid #ddd;
  border-radius: 10px;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  line-height: 1.4;
  max-width: 90%;
  text-align: center;
}

.slideshowButton {
  padding: 10px 18px;
  font-size: 15px;
  border: none;
  background-color: #4285f4;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease;
  margin-bottom: 10px;
}

.slideshowButton:hover {
  background-color: #3367d6;
}

.materialSelector {
  margin-bottom: 30px;
  text-align: center;
}

.materialSelector button {
  margin: 0 10px;
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  background-color: #333;
  color: #fff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s ease;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
}

.materialSelector button:hover {
  background-color: #555;
}

.video-player {
  display: none;
  position: relative;
}

video {
  width: 800px;
  height: 800px;
  align-items: center;
  margin-left: 300px;
}

.close-button {
  position: absolute;
  top: 10px;
  right: 10px;
  font-size: 24px;
  cursor: pointer;
  color: #fff;
  background-color: #000;
  padding: 5px 10px;
  border-radius: 50%;
  margin-right: 400px;
  margin-top: 70px;
}

#moveButton8, #moveButton4, #out {
  display: none;
}

.left, .right {
  display: flex;
  flex-direction: column;
  height: 215px;
  width: 150%;
  margin: 2px;
}

.left-right {
  display: flex;
}

.img1, .img2 {
  height: 190px;
  border-radius: 25px;
  width: 600px;
  margin-top: 5px;
  border: 3px solid black;
}

.img1 {
  margin-left: 10px;
}

@media only screen and (max-width: 1400px) {
  .img1, .img2 {
    height: 150px;
    width: 350px;
  }
}

.img1:hover, .img2:hover {
  box-shadow: 0 0 20px 0 rgba(4, 9, 30, 0.7);
}

@media only screen and (max-width: 1100px) {
  #material1Photo, #material2Photo {
    display: none;
    width: 580px;
    height: 310px;
    align-items: center;
    border: 5px solid rgba(0, 0, 0, 0.974);
  }
}

.objective-container {
  display: none;
  margin-top: 20px;
  padding: 15px;
  border: 2px solid #FF5733;
  border-radius: 8px;
  background-color: #fff0f0;
}

.objective-list {
  margin: 0;
  padding-left: 20px;
}

.reveal-button {
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background-color: blue;
  color: white;
  border: none;
  border-radius: 5px;
}
   /* Hidden by default; shown when button has .has-tick */
  .tick { display: none; margin-left: 6px; font-weight: bold; color: green; }
  .has-tick .tick { display: inline; }