@font-face {
  font-family: 'new';
  src: url('/fonts/SIMSUN.ttf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

body {
  margin: 0;
  font-family: 'new', sans-serif;
  background: url('/media/abbeheir.svg') no-repeat center center fixed;
  background-size: cover;
  color: #222;
  padding: 2rem;
  text-align: left;
}

#start-screen {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  z-index: 999;
  text-align: center;
}

#main-content {
  display: none;
}

#start-button {
  font-size: 1.2rem;
  padding: 0.6rem 1.4rem;
  margin-top: 1rem;
  border: none;
  background: white;
  color: black;
  border-radius: 6px;
  cursor: pointer;
}

#start-button:hover {
  background: #ddd;
}

.matrix-box {
  max-width: 800px;
  margin: 0;
  background: transparent;
  padding: 0;
}

.main-header {
  font-size: 4rem;
  margin: 0 0 1rem 0;
  line-height: 1.1;
  text-align: left;
}

.grid-links {
  display: grid;
  gap: 0;
}

.grid-links.vertical {
  grid-template-columns: 1fr;
  margin-top: 2rem;
  text-align: left;
}

.grid-links.horizontal {
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  text-align: left;
}

.grid-links a {
  color: darkblue;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  height: 3rem;
  font-weight: 600;
  border-bottom: 2px solid rgba(0, 0, 0, 0.7);
  border-right: 2px solid rgba(0, 0, 0, 0.7);
  padding: 0 0.5rem;
  box-sizing: border-box;
  user-select: none;
  background-color: rgba(255, 255, 255, 0.8); /* visible background */
  transition: background-color 0.2s;
}

.grid-links a:last-child {
  border-right: none;
}

.grid-links.vertical a:last-child {
  border-bottom: none;
}

.grid-links a:hover {
  background-color: rgba(0, 0, 139, 0.1);
  text-decoration: underline;
}

/* draggable image styling */
#draggable-img {
  width: 200px;
  height: auto;
  position: absolute;
  top: 2rem;
  left: 2rem;
  cursor: grab;
  user-select: none;
  z-index: 500;
}
