@import url('https://fonts.googleapis.com/css2?family=Courier+Prime:wght@400;700&display=swap');

body {
  margin: 0;
  padding: 0;
  height: 100vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fbfbfe;
  transition: background 0.5s;
}

body.dark {
  background: #010104;
}

.rectangle {
  width: 1400px;
  height: 600px;
  background: #d8f3f2;
  border-radius: 10px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background 0.5s, box-shadow 0.5s;
  position: relative;
  overflow: hidden;
}

body.dark .rectangle {
  background: #4dc7c3;
  box-shadow: none;
}

.rectangle2 {
  width: 1400px;
  height: 50px;
  background: #38b2ae;
  display: flex;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  transition: background 0.5s, box-shadow 0.5s;
}

body.dark .rectangle2 {
  background: #123a39;
  box-shadow: none;
}

.content {
  position: absolute;
  left: 200px;
  top: 35%;
  display: flex;
  gap: 50px;
}

.button-icon {
  width: 200px;
  height: 200px;
  cursor: pointer;
  filter: invert(0);
  transition: transform 0.3s, filter 0.3s;
}

body.dark .button-icon {
  filter: invert(1);
}

.icon-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.icon-label {
  font-family: 'Courier Prime', monospace;
  font-size: 18px;
  font-weight: bold;
  color: #333;
  transition: color 0.3s;
}

body.dark .icon-label {
  color: #e6f6f6;
}

.button-icon:hover {
  transform: scale(1.1);
  filter: drop-shadow(0 0 8px rgba(0, 0, 0, 0.2));
}

/* Okienka popup */
.window.popup {
  top: 180px;
  left: 200px;
  width: 550px;
  height: 400px;
  display: none;
  position: fixed;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

body.dark .window.popup {
  background: #0b2b2a;
  color: #e6f6f6;
}

/* Żarówka */
.lamp {
  position: fixed;
  top: 20px;
  left: 20px;
  cursor: pointer;
}

.string {
  width: 2px;
  height: 30px;
  background: #555;
  margin: 0 auto;
  transition: height 0.3s;
}

body.dark .string {
  height: 60px;
}

.bulb {
  width: 45px;
  height: 45px;
  background: #ddd;
  border-radius: 50%;
  border: 3px solid #555;
  margin: 0 auto;
  transition: background 0.5s, box-shadow 0.5s;
}

body.dark .bulb {
  background: #ffeb3b;
  box-shadow: 0 0 40px 10px rgba(255, 235, 59, 0.6);
}

.footer {
  position: fixed;
  left: 0;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-size: 14px;
  color: #333;
  pointer-events: none;
  transition: color 0.3s;
}

body.dark .footer {
  color: #e6f6f6;
}

/* Nagłówek okna */
.window-header {
  height: 36px;
  background: #38b2ae;
  display: flex;
  align-items: center;
  padding: 0 8px;
  gap: 8px;
  cursor: move;
  user-select: none;
  transition: background 0.5s;
}

body.dark .window-header {
  background: #123a39;
}

.window-title {
  padding-top: 10px;
  flex: 1;
  color: black;
  font-family: 'Courier Prime', monospace;
  font-weight: medium;
  font-size: 30px;
  transition: color 0.3s;
  text-shadow: -1px -1px 0 #fff,
    1px -1px 0 #fff,
    -1px 1px 0 #fff,
    1px 1px 0 #fff;
}

body.dark .window-title {
  color: #e6f6f6;
  text-shadow: -1px -1px 0 #000,
    1px -1px 0 #000,
    -1px 1px 0 #000,
    1px 1px 0 #000;
}

.small-widnow-title {
  flex: 1;
  font-family: "Courier Prime", monospace;
  font-weight: bold;
  font-size: 20px;
}

.small-widnow-text {
  font-family: "Courier Prime", monospace;
  font-size: 12px;
  font-weight: bold;
}

.control-button {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-family: "Courier Prime", monospace;
  font-weight: bold;
  font-size: 20px;
  color: #333;
}

.window-content {
  padding: 12px;
  height: calc(100% - 36px);
  overflow: auto;
}

.window.active {
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
}

@keyframes windowOpen {
  from {
    transform: scale(.98);
    opacity: 0;
  }

  to {
    transform: scale(1);
    opacity: 1;
  }
}

/* Przełącznik języka */
.language-switch {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 10px;
}

.lang-icon {
  width: 45px;
  height: 45px;
  cursor: pointer;
  transition: transform 0.3s, opacity 0.3s;
  opacity: 0.5;
}

.lang-icon.active {
  opacity: 1;
  transform: scale(1.1);
}

.lang-icon:hover {
  transform: scale(1.2);
}
