body {
  margin: 0;
  padding: 0;
  height: 100vh;
  font-family: 'Arial', sans-serif;
  overflow: hidden;
  background: #222;
  color: #fff;
}

#background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}
nav button {
  background: none;
  color: red;
  border: none;
  cursor: point;
}

.player {
  text-align: center;
  background: rgba(0,0,0,0.5);
  padding: 20px 40px;
  border-radius: 15px;
}

.buttons button {
  font-size: 1.5em;
  margin: 10px;
  background: transparent;
  border: none;
  color: #fff;
  cursor: pointer;
}

.buttons button:hover {
  color: #ffb347;
}

/* Модальное окно */
.modal {
  display: none;
  position: fixed;
  z-index: 100;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background: rgba(0,0,0,0.8);
  backdrop-filter: blur(5px);
  font-family: 'Arial', sans-serif;
}

.modal-content {
  background: #1a1a1a;
  margin: 5% auto;
  padding: 20px;
  border-radius: 15px;
  width: 80%;
  max-width: 1200px;
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.close {
  color: #fff;
  float: right;
  font-size: 28px;
  cursor: pointer;
}

.editors {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 25px;
}

textarea {
  width: 100%;
  height: 300px;
  background: #111;
  color: #4dc3ff;
  border: 1px solid #444;
  border-radius: 10px;
  padding: 10px;
  font-family: monospace;
  resize: none;
}

#runCode {
  padding: 10px 20px;
  border: none;
  border-radius: 10px;
  border-color: red;
  background-color: transparent;
  cursor: pointer;
  font-weight: bold;
  color: red;
  transition: 0.3s;
}

#runCode:hover {
  background: grey;
}

#iframeContainer {
  width: 100%;
  height: 300px;
}

#iframeContainer iframe, #output {
  width: 100%;
  height: 300px;
  border: 1px solid #444;
  border-radius: 10px;
  background: #333;
}
footer {
  display: flex;
  justify-content: flex-end;
}
