body {
    margin: 0;
    padding: 0;
    background-image: url('main.jpg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    font-family: 'Courier New', monospace;
    color: #00ff00;
    text-align: center;
}

.main-black-container {
    background-color: black;
    margin: 20px auto;
    padding: 30px;
    width: 90%;
    max-width: 1200px;
    border: 2px solid #00ff00;
}

.tape-grid {
    display: flex;
    flex-direction: row; 
    flex-wrap: wrap; 
    gap: 20px; 
    justify-content: center; 
    padding: 20px;
}

.tape-item {
    width: calc(25%-20px);
    min-height: 300px;
    padding: 15px;
    border: 2px solid #00ff00;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.tape-image {
    max-width: 90%;
    height: auto;
    margin-bottom: 15px;
}

.tape-name, .tape-description {
    margin-bottom: 10px;
    word-wrap: break-word;
    width: 100%;
}

.tape-status[data-status="published"] {
    color: gray;
    margin-bottom: 10px;
}

.tape-status[data-status="placed"] {
    color: white;
    margin-bottom: 10px;
}

.tape-status[data-status="taken away"] {
    color: red;
    margin-bottom: 10px;
}

.tape-button {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    font-size: 16px;
}

.tape-button:hover {
    background-color: #00ff00;
    color: black;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
}

.modal-content {
    background-color: black;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #00ff00;
    width: 80%;
    max-width: 400px;
    position: relative;
}

.close {
    color: #00ff00;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover {
    color: red;
}

.modal-input {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px;
    width: 80%;
    margin: 10px 0;
    font-family: 'Courier New', monospace;
}

.modal-download {
    background-color: black;
    color: #00ff00;
    border: 1px solid #00ff00;
    padding: 8px 20px;
    cursor: pointer;
    font-family: 'Courier New', monospace;
    margin-top: 10px;
}

.modal-download:hover {
    background-color: #00ff00;
    color: black;
}

.invisible-text {
    color: rgba(0, 255, 0, 0.1);
    margin-top: 50px;
    margin-bottom: 20px;
}

@media (max-width: 1200px) {
    .tape-item {
        width: calc(33.333% - 20px);
    }
}

@media (max-width: 900px) {
    .tape-item {
        width: calc(50% - 20px);
    }
}

@media (max-width: 600px) {
    .tape-item {
        width: 100%;
    }
}

@media (max-width: 768px) {
    .tape-grid {
        flex-direction: column;
        align-items: center;
    }
    .tape-item {
        width: 90%; 
    }
}

#quest-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background-color: rgba(0, 0, 0, 0.9);
  border: 2px solid #00ff00;
  padding: 20px;
  z-index: 1000;
  max-width: 80%;
  text-align: center;
}

#quest-hint h2 {
  color: #00ff00;
  margin-top: 0;
}

#quest-hint p {
  color: white;
}


#night-hint {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  border-top: 2px solid 00ff00;
  padding: 15px 0;
  text-align: center;
  z-index: 999;
}

.hint-content {
  max-width: 1200px;
  margin: 0 auto;
}

#blinking-hint {
  color: #00ff00;
  font-size: 20px;
  text-decoration: none;
  font-weight: bold;
  animation: blink 1.5s infinite;
  text-shadow: 0 0 5px currentColor;
}

@keyframes blink {
  0% { color: #00ff00; }
  25% { color: #ff00ff; }
  50% { color: #00ffff; }
  75% { color: #ffff00; }
  100% { color: #00ff00; }
}

#blinking-hint:hover {
  animation: none;
  color: #ffffff;
  text-shadow: 0 0 10px #ff00ff;
}