/* The reader shell. Everything an issue can change — the sky, the kite, the
   string — is set from its manifest, so it is deliberately absent here. */

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Red Hat Mono', monospace;
  font-size: 14px;
  background-color: white;
  overflow: hidden;
  cursor: grab;
}

button {
  font-family: 'Red Hat Mono', monospace;
  font-size: 12px;
  cursor: pointer;
}

input[type='text'] {
  font-family: 'Red Hat Mono', monospace;
  font-size: 12px;
  width: 100%;
}

/* The kite. Its picture and size come from the issue. */
#cursor {
  position: absolute;
  width: 60px;
  height: 60px;
  pointer-events: none;
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  z-index: 1000;
  display: none;
}

#stringCanvas {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  display: none;
}

#info-bracket {
  position: absolute;
  top: 10%;
  left: 10%;
}

#weatherForm {
  font-family: 'Red Hat Mono', monospace;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 10px;
  padding-bottom: 10px;
}

#weatherForm input[type='text'] {
  flex: 1;
  min-width: 0;
}

#submit-button {
  flex: none;
  white-space: nowrap;
}

#locate-me,
#issue-button {
  margin-right: 10px;
}

#copyright {
  position: absolute;
  bottom: 10%;
  right: 10%;
  text-align: right;
}

#video-modal,
#about-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1);
  z-index: 1001;
  justify-content: center;
  align-items: center;
}

#video-modal iframe {
  max-width: 90%;
  max-height: 90vh;
}

.close-modal {
  position: absolute;
  top: 20px;
  right: 20px;
  color: black;
  font-size: 24px;
  cursor: pointer;
  font-family: 'Red Hat Mono', monospace;
}

#about-modal .content {
  background-color: white;
  padding: 40px;
  width: 400px;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 5px;
}

#about-modal .close-modal {
  color: black;
  top: 10px;
  right: 10px;
}

#mobilePopup {
  display: none;
  position: fixed;
  top: 20%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 100;
  background-color: white;
  padding: 20px;
  border: 1px solid black;
  border-radius: 10px;
}
