/* Defaults and base styling */
body {
  margin: 0;
  font-family: -apple-system, "segoe UI", "Lato", sans-serif;
  font-weight: lighter;
}

footer {
  margin: 30px auto;
  max-width: 500px;
}

a {
  font-weight: normal;
  color: #05b;
  text-decoration: none;
  cursor: pointer;
}

a:hover {
  text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: normal;
  margin-bottom: 4px;
}

.button {
  border-radius: 8px;
  border: 1px solid #fff;
  padding: 10px 20px;
  font-size: 1rem;
  font-weight: bold;
  background-color: #4b5;
  color: #fff;
  cursor: pointer;
}

.button:hover {
  background-color: #384;
  text-decoration: underline;
}

.button:disabled {
  background-color: #bbb;
}


/* Upload page styling */
.upload-container {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  width: 100%;
  max-width: 800px;
}

.button--upload {
  margin-top: 30px;
}

.logo {
  height: 7rem;
  alignment-baseline: middle;
}

.drag-drop-container {
  margin-bottom: 20px;
}

.drag-drop-header {
  margin-bottom: 10px;
}

.drop-zone {
  width: 300px;
  height: 150px;
  min-height: 150px;
  border: 2px dashed #ccc;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  cursor: pointer;
  text-align: center;
  background-color: #fff;
}

.drop-zone.drag-over {
  border-color: #4b5;
  background-color: #dfd;
}

.drop-text {
  padding: 0px 10px;
}

.hidden-input {
  display: none;
}

.file-label {
  color: #4b5;
  font-weight: bold;
  cursor: pointer;
  text-decoration: underline;
}

.upload-page-container {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Toggle upload page */
.toggle-label {
  display: flex;
  align-items: center;
  gap: 1rem;
  cursor: pointer;
}

.toggle-input {
  display: none;
}

.toggle-slider {
  width: 40px;
  height: 20px;
  background-color: #ccc;
  border-radius: 10px;
  position: relative;
  transition: background-color 0.2s ease-in-out;
}

.toggle-slider::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  background-color: white;
  border-radius: 8px;
  transition: transform 0.2s ease-in-out;
}

.toggle-input:checked + .toggle-slider {
  background-color: #4b5;
}

.toggle-input:checked + .toggle-slider::before {
  transform: translateX(20px);
}


/* Visualization page */
.page-container {
  display: flex;
  height: 100vh;
  flex-direction: column;
  flex: 1 1 auto;
  overflow: hidden;
}

.content-container {
  display: flex;
  flex: 1 1 auto;
  flex-direction: row;
  flex-grow: 1;
  overflow: hidden;
}

.graph-area {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  height: 100%;
  position: relative;
  overflow: hidden;
}

.bottom-left-info {
  position: fixed;
  bottom: 0;
  left: 0;
  background: rgba(255, 255, 255, 0.8);
  padding: 5px;
  font-size: 0.7rem;
  text-transform: uppercase;
  z-index: 1000;
}

.reference-file-name {
  color: red;
}
.subject-file-name {
  color: green;
}

.small-logo {
  position: absolute;
  width: 100px;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.8);
}

.expand-collapse-canvas {
  display: block !important;
}

.button--sidebar {
  width: 60;
  height: 36px;
  min-width: 60px;
  min-height: 36px;
  font-size: 16px;
  padding: 0;
}

.button--sidebar.active {
  background-color: #162;
}

.sidebar {
  width: 60px;
  display: flex;
  flex-direction: column;
  padding: 8px ;
  align-items: center;
  position: relative;
  overflow: hidden;
  gap: 2px;
}

.sidebar-label {
  font-size: 75%;
  margin: 0;
  text-transform: uppercase;
  width: 100%;
}


/* Modal */
/* Overlay styling for the modal */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: #0006;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 10000;
}

/* Inner modal content styling */
.modal-inner-content {
  background-color: #fff;
  padding: 20px;
  box-shadow: 0 0 10px #000;
  cursor: move;
}

/* Modal footer styling */
.modal-footer {
  text-align: center;
}

/* BuildInfo Modal styling */
.buildInfo{
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}

.buildInfo-column {
  flex: 1;
  min-width: 280px;
  line-height: 0.5;
}

.percentage {
  font-size: 5rem;
  font-weight: bold;
  text-align: center;
}

/*
 * Google Material Icons
 * Apache License Version 2.0
 */
@font-face {
  font-family: 'Material Icons';
  font-style: normal;
  font-weight: 400;
  src: url('google-material-icons.woff2') format('woff2');
}

.icons {
  font-family: 'Material Icons';
  font-weight: normal;
  font-style: normal;
  font-size: 24px;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  text-rendering: optimizeLegibility; /* ligatures */
}

.fa-2x {
  font-size:2em
}
