body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #f4f6f8;
  font-size: 16px; /* Increased base font size */
}

.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 20px;
  background-color: #fff;
  border-bottom: 1px solid #ddd;
}

h1 {
  font-size: 1.8em; /* Increased font size */
  color: #333;
  margin: 0;
}

.lang-switcher a {
  text-decoration: none;
  color: #007bff;
  padding: 5px 10px;
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-left: 5px;
  font-size: 0.9em;
}

.lang-switcher a.active {
  background-color: #007bff;
  color: white;
  font-weight: bold;
}

#mission-area {
  width: 80%;
  margin: 20px auto;
  padding: 20px;
  border: 1px solid #ccc;
  background-color: #fff;
  border-radius: 8px;
}

#mission-area h2 {
  margin-top: 0;
  font-size: 1.5em; /* Increased font size */
}

#mission-select {
  padding: 8px;
  font-size: 1em; /* Increased font size */
  margin-bottom: 15px;
  min-width: 200px;
}

#mission-description {
  padding: 15px;
  border-top: 1px solid #eee;
  min-height: 25px;
  background-color: #fafafa;
  font-size: 1.1em; /* Increased font size */
  line-height: 1.5;
}

.container {
  display: flex;
  height: 550px; /* Increased height */
  margin: 20px auto;
  width: 80%;
  border: 1px solid #ccc;
}

#blocklyDiv {
  height: 100%;
  width: 70%;
  border-right: 2px solid #ddd;
}

/* Increase Blockly font size */
.blocklyText, .blocklyFlyoutLabel > .blocklyText {
    font-size: 1.2rem !important;
    font-weight: 500 !important;
}

#stage {
  height: 100%;
  width: 30%;
  position: relative;
  background-color: #fff;
}

#character {
  width: 40px;
  height: 40px;
  background-color: #ffab40; /* Orange */
  border: 2px solid #ff6f00;
  border-radius: 50%;
  position: absolute;
  top: 10px;
  left: 10px;
  transition: all 0.2s ease;
}

.controls {
  text-align: center;
  margin: 20px;
}

.controls button {
  padding: 12px 25px;
  font-size: 1.1em; /* Increased font size */
  font-weight: bold;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  margin: 0 10px;
}

#runButton { background-color: #4CAF50; }
#runButton:hover { background-color: #45a049; }
#saveButton { background-color: #008CBA; }
#saveButton:hover { background-color: #007ba7; }
#loadButton { background-color: #f44336; }
#loadButton:hover { background-color: #da190b; }

/* Modal Styles */
.modal-overlay {
  display: none; /* Hidden by default */
  position: fixed; 
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0,0,0,0.5); /* Black w/ opacity */
  justify-content: center;
  align-items: center;
}

.modal-content {
  background-color: #fefefe;
  margin: auto;
  padding: 30px;
  border: 1px solid #888;
  width: 80%;
  max-width: 500px;
  border-radius: 10px;
  text-align: center;
  position: relative;
  font-size: 1.2em;
  box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.modal-close-button {
  color: #aaa;
  position: absolute;
  top: 10px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
}

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