@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@300;400;600;700&display=swap");

body {
  font-family: "Open Sans", sans-serif;
  margin: 0;
  box-sizing: border-box;
  overflow: hidden;
}
h1 {
  color: #333;
}
p {
  color: #666;
}

.center-text {
  text-align: center;
}

.right-text {
  text-align: right;
}



#main-menu {
  position: block;
  width: 100%;
  max-width: 100%;
  overflow: auto;
}

#canvas-holder {
  width: 100%;
  height: calc(100%);
  overflow: scroll; /* Allow scrolling */
  position: relative;
  background-color: #153b46;
}

#canvas {
  border: 1px solid #ccc;
  background-color: #fff;
  margin: 50px;
  transform: scale(1); /* Zoom in by a factor of 2 */
  transform-origin: 0 0;
}

#zoom-buttons {
  position: fixed;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  align-content: center;
  z-index: 1000;
}

#zoom-buttons button {
  font-size: 26px;
  font-weight: 900;
  line-height: 2px;
  color:#153b46;
  background-color: #aacfdd73;
  border: none;
  cursor: pointer;
  border-radius: 4px;
  margin: 2px;
  width: 30px;
  height: 30px;
}

#zoom-buttons button:hover {
  background-color: #aacfddb1;
}

#zoom-buttons button:active {
  margin-top: 3px;
  margin-bottom: -1px;
  background-color: #aacfddd6;
}

#current-zoom, #current-canvas-size {
  font-weight: 500;
  margin: 0px 5px;
  color: #aacfdd82;
}

.tab-content {
  display: none;
}
.tab-content.active {
  display: block;
}

.tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: stretch;
  align-content: center;
  width: 100%;
  background-color: #153b46;
}



.menu-logo {
  border: none;
  padding: 10px 16px;
  cursor: pointer;
  color: #aacfdd;
  align-content: center;
  text-decoration: none;
  width: 100px;
}

.scale-info {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  font-size: 16px;
  color: #aacfdd;
  font-weight: 700;
  padding: 0px 16px;
}

.tab-button {
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  background-color: #2d545e;
  color: #aacfdd;
  align-content: center;
}

.about-link {
  border: none;
  padding: 12px 16px;
  cursor: pointer;
  background-color: #2d545e;
  color: #aacfdd;
  align-content: center;
}

.tab-button:hover, .about-link:hover {
  background-color: #44737f;
}

.tab-button.active {
  font-weight: bold;
  color: #8fbcce;
  background-color: #0a0f13;
}

.menu-container {
  background-color: #0a0f13;
  display: flex;
  justify-content: center;
  max-width: 100%;
  box-sizing: border-box;
  width: 100%;
  padding: 8px;
  color: #8fbcce;
  font-size: 12px;
  font-weight: 300;
  min-height: 128px;
}

.tool-container {
  border: 2px dotted #153b46;
  padding: 6px;
  border-radius: 6px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: 1;
  box-sizing: border-box;
}

.tool-container-inner {
  display: flex;
  justify-content: space-between;
  flex: 1;
}

.tool-containers-wrapper {
  display: flex;
  column-gap: 8px;
  height: 100%;
}

.tool-button {
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  width: 100%;
  row-gap: 2px;
  margin: 1px;
  font-size: 10px;
  min-width: 60px;
  max-width: 70px;
  align-items: center;
  border: none;
  border-radius: 4px;
  background-color: #12292f;
  color: #aacfdd;
  padding: 10px 0px;
}

.tool-check-box {
  cursor: pointer;
  padding: 0px;
  margin: 0px;
  width: 18px;
  height: 18px;
}

.tool-select {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 150px;
  min-width: 130px;
  row-gap: 8px;
  margin: 1px;
  font-size: 10px;
  align-items: center;
  border: none;
  border-radius: 4px;
  background-color: #12292f;
  color: #aacfdd;
  padding: 10px 10px;
}

.tool-select-row {
  display: flex;
  align-items: center;
  width: 100%;
  justify-content: space-between;
}

.tool-select label {
  display: block;
  font-size: 11px;
  min-width: 60px;
  font-weight: 400;
}

.select-wrapper select {
  text-align: right;
  background-color: #aacfdd;
  width: 60px;
  height: 18px;
}

.select-wrapper select:focus,
.select-wrapper select:active {
  outline: none;
  box-shadow: none;
}

.select-wrapper select option {
  background-color: #12292f;
  text-align: center;
  cursor: pointer;
  color: #aacfdd;
  font-size: 12px;
}

.canvas-tool {
  min-width: 276px;
}

.scale-tool {
  max-width: 102px;
}

.tool-button:hover {
  background-color: #1b3b42;
}

.tool-button.active {
  background-color: #1e4149;
  color: white;
}

.tool-button img {
  max-width: 40px;
}

.tool-button div {
  max-width: 40px;
}

.field-styling {
  margin-top: 2px;
}

.flex-space-between {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.flex-end {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.section-header {
  padding-bottom: 6px;
  font-weight: 600;
  color: #aacfdd;
}

.button-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%; /* Adjust as needed */
}

.panel {
  padding: 5px 10px 6px 10px;
  box-sizing: border-box;
  width: 205px;
  max-width: 100%;
  border: none;
  background-color: #102731;
  color: #aacfdd;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 400;
  margin-top: 10px;
  align-items: end;
}

.applyButton {
  padding: 5px 10px 6px 10px;
  border: none;
  background-color: #7bbd8c;
  color: #242729;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.applyButton:hover {
  background-color: #9feab2;
}

.applyButton:active {
  margin-top: 1px;
  background-color: #7bbd8c;
  margin-bottom: -1px;
}

#backgroundColor {
  width: 40%;
  background-color: #102731;
}

#keyInViewer {
  position: absolute;
  font-size: 14px;
  padding: 4px 8px;
  bottom: 32px;
  left: 32px;
  margin: 2px;
  border-radius: 4px;
  background-color: #c5dde7a0;
  z-index: 11;
}

#copyright {
  position: absolute;
  font-size: 14px;
  padding: 4px 8px;
  bottom: 32px;
  right: 48px;
  margin: 2px;
  border-radius: 4px;
  background-color: #c5dde7a0;
  z-index: 11;
}

#setScaleButton {
  /* Inherit styles from .applyButton */
  padding: 5px 10px 6px 10px;
  border: none;
  background-color: #7bbd8c;
  color: #242729;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 500;
}

.applyButton:hover {
  background-color: #9feab2;
}

#setScaleButton.active {
  margin-top: 1px;
  font-weight: bold;
  border: 2px solid #ccc;
  animation: fadeBackground 2s infinite alternate;
  margin-bottom: -1px;
}

@keyframes fadeBackground {
  0% {
    background-color: #7bbd8c; /* Light color */
  }
  100% {
    background-color: #4a7b5c; /* Dark color */
  }
}

#tooltip {
  position: absolute;
  display: none; /* Initially hidden */
  background-color: #333;
  color: #fff;
  padding: 5px;
  font-size: 12px;
  border-radius: 3px;
  z-index: 2000;
}

.crosshair-cursor {
  cursor: crosshair;
}

.eraser-cursor {
  cursor: url("/images/eraser.png"), auto;
}

/* Modal styles */
.modal {
  display: none; /* Hidden by default */
  position: fixed; /* Stay in place */
  z-index: 8000; /* Sit on top */
  left: 0;
  top: 0;
  width: 100%; /* Full width */
  height: 100%; /* Full height */
  overflow: auto; /* Enable scroll if needed */
  background-color: rgb(0, 0, 0); /* Fallback color */
  background-color: rgba(0, 0, 0, 0.4); /* Black w/ opacity */
}

.modal-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: #102731;
  color: #aacfdd;
  margin: 15% auto; /* 15% from the top and centered */
  padding: 20px;
  border: 10px solid #aacfdd53;
  width: 100%; 
  max-width: 700px;
  border-radius: 8px;
}

.modal-content p {
  color: #aacfdd;
  text-align: center;
}



