@font-face {
  font-family: 'JetBrains Mono';
  src: url('font.ttf');
}

html, body {
  background-image: url("background.jpg");
  background-size: cover;
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

* {
  font-family: 'JetBrains Mono', monospace;
  color: #ddd;
}

main {
  display: flex;
  width: 100vw;
  height: 100vh;
  backdrop-filter: blur(20px);
}

main>canvas {
  margin: auto;
  border: 15px solid gray;
  border-top-color: #555;
  border-left-color: #444;
  border-right-color: #333;
  border-bottom-color: #222;
  border-radius: 8px;
}

canvas {
  display: block;
  width: 90vw;
  height: 90vh;
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  
}

h1 {
  position: absolute;
  inset: 0;
  text-align: center;
  color: #f40;

  font-weight: 500;
  font-style: normal;
}

h2 {
  color: #f90;
  margin: 0;
  font-size: 24px;
  text-align: center;
}

p {
  font-size: 16px;
  text-align: center;
}

/* Modal/Popup Container */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 999;
  pointer-events: all;
}

/* Popup Box */
.modal-content {
  background-color: #111;
  border: 2px solid #444;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  max-width: 400px;
  width: 90%;
}

.modal-close {
  width: 50%;
  margin: 10px 25% 0;
  padding: 4px;
  background: #080808;
  border: 2px solid #222;
  font-size: 16px;
}

.modal-close:hover {
  background: #0c0c0c;
}

.modal-overlay.visible {
  display: flex;
}