@font-face {
  font-family: 'Atkinson';
  src: url('fonts/Atkinson_Next/Atkinson-Hyperlegible-Regular-102.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Atkinson';
  src: url('fonts/Atkinson_Next/Atkinson-Hyperlegible-Bold-102.otf') format('opentype');
  font-weight: bold;
  font-style: normal;
}

body, html {
  margin: 0;
  padding: 0;
  background: white;
  font-family: 'Atkinson', sans-serif;
  font-size: 14px;
  color: #333;
  overflow: hidden;
}

#canvas {
  position: relative;
  width: 100vw;
  height: 100vh;
}

.block {
  position: absolute;
  max-width: 240px;
  padding: 10px;
  background: rgba(255,255,255,0.95);
}

.block img,
.block video {
  max-width: 100%;
  max-height: 160px;
  display: block;
  margin-bottom: 6px;
}

.block textarea {
  border: none;
  background: transparent;
  font-family: 'Atkinson', sans-serif;
  font-size: 14px;
  resize: none;
  width: 100%;
  outline: none;
  line-height: 1.4;
}

.clickable-name {
  color: #555;
  text-decoration: underline;
  cursor: pointer;
}

#info-block {
  margin-top: 10px;
  padding: 10px;
  font-size: 0.95em;
}

.hidden {
  display: none;
}


/* Modal styles */
#preview-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: transparant;
  backdrop-filter: blur(3px); 
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#preview-modal.hidden {
  display: none;
}

.modal-content {
  background: white;
  border: 1px solid #ccc;
  padding: 2rem;
  width: 80vw;
  max-height: 80vh;
  overflow-y: auto;
  position: relative;
  box-shadow: 0 0 20px rgba(0,0,0,0.1);
}

.modal-content .close {
  position: absolute;
  top: 10px;
  right: 14px;
  font-size: 24px;
  color: #666;
  cursor: pointer;
}

.modal-footer {
  margin-top: 1rem;
  text-align: right;
}

.modal-footer a {
  text-decoration: none;
  color: #444;
  font-weight: bold;
}


/* Fixed positions */
.intro  { top: 30px;  left: 30px; }
.intro2  { top: 30px;  left: 534px; max-width: 400px;}
.intro3 { top: 50px; left: 945px; max-width: 400px;}
.block-born { top: 250px; left: 130px;}
.block3 { top: 300px; left: 934px; max-width: 400px;}
.block5 { top: 300px; left: 534px; max-width: 400px;}
