* {
  box-sizing: border-box;
}

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

.view-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background-color: #f1f1f1;
  padding: 10px;
  text-align: center;
  z-index: 2;
}

.view-main {
  display: flex;
  justify-content: center;
  padding: 5px;
  padding-top: 110px;
  padding-bottom: 30px;
}

.view-footer {
  background-color: #f1f1f1;
  padding: 5px;
  text-align: center;
  z-index: 2;
}

.content { 
  position: relative;
  z-index: 1;
}

.flex-row {
  display: flex;
  flex-wrap: wrap;
}

.flex-column {
  display: flex;
  flex-direction: column;
}

.no-id-photo {
  width: 200px;
  height: 240px;
  background-color: #f1f1f1;
  display: flex;
  text-align: center;
  align-items: center;
}

.button-row {
  display: flex;
  justify-content: space-evenly;
  width: 100%;
  padding: 10px;
}

@media (max-height: 950px) {
  .view-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
  }

  .view-main {
    padding-bottom: 80px;
    min-width: calc(100vh- 40px);
    min-height: calc(100vh - 120px);
  }
}

#termsOverlay {
  /*display: none; /* Hidden by default */
  position: fixed;
  top: 0;
  /* left: 0; */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
  display: flex;
}

#termsOverlayContent {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

#termsOverlayContent button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color: #4CAF50;
  color: white;
  border: none;
  cursor: pointer;
}

#noticeOverlay {
  display: none;
  position: fixed;
  top: 0;
  /* left: 0; */
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  justify-content: center;
  align-items: center;
}

#noticeOverlayContent {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  width: 80%;
  max-width: 500px;
  text-align: center;
}

#noticeOverlayContent button {
  margin-top: 15px;
  padding: 10px 20px;
  background-color:yellow;
  color: black;
  border: none;
  cursor: pointer;
}
