/* WebBlox: A Web-Based 3D Creation & Gaming Platform - style.css */

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  box-sizing: border-box;
}

body {
  font-family: 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  background-color: #1a1a1a;
  color: #e0e0e0;
  display: flex;
  font-size: 14px;
  line-height: 1.6;
}

#ui-panel {
  width: 280px;
  background-color: #2a2a2a;
  border-right: 1px solid #3a3a3a;
  padding: 15px;
  box-sizing: border-box;
  overflow-y: auto;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

#ui-panel h2 {
  font-size: 1.4em;
  color: #f0f0f0;
  margin-top: 0;
  margin-bottom: 20px;
}

#toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #3a3a3a;
}

#properties-panel {
  flex-grow: 1;
}

#properties-panel h2 {
  margin-bottom: 10px;
}

#properties-panel p {
  color: #aaaaaa;
  font-style: italic;
  text-align: center;
}

#object-props {
  display: none;
}

#viewport-container {
  flex: 1;
  position: relative;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
}

#three-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.hidden {
  display: none !important;
}

button,
input[type="button"],
input[type="submit"] {
  background-color: #007bff;
  color: #ffffff;
  border: none;
  padding: 8px 15px;
  margin: 0;
  border-radius: 4px;
  cursor: pointer;
  font-size: 13px;
  transition: background-color 0.2s ease;
  flex-grow: 1;
  min-width: 100px;
}

button:hover,
input[type="button"]:hover,
input[type="submit"]:hover {
  background-color: #0056b3;
}

button:active,
input[type="button"]:active,
input[type="submit"]:active {
  background-color: #004085;
}

input[type="text"],
input[type="number"],
input[type="color"],
select {
  background-color: #3a3a3a;
  color: #e0e0e0;
  border: 1px solid #555555;
  padding: 8px;
  margin: 5px 0;
  border-radius: 4px;
  width: calc(100% - 18px);
  box-sizing: border-box;
  font-size: 13px;
}

input[type="color"] {
  padding: 4px;
  height: 30px;
  width: calc(100% - 10px);
  box-sizing: border-box;
  vertical-align: middle;
}

label {
  display: block;
  margin-top: 10px;
  margin-bottom: 5px;
  color: #bbbbbb;
  font-size: 13px;
}

@media (max-width: 768px) {
  body {
    flex-direction: column;
  }

  #ui-panel {
    width: 100%;
    height: 250px;
    border-right: none;
    border-bottom: 1px solid #3a3a3a;
    order: 2;
    padding: 10px;
  }

  #viewport-container {
    height: calc(100vh - 250px);
  }

  #toolbar {
    justify-content: center;
  }

  button {
    flex-basis: calc(50% - 4px);
    min-width: unset;
  }
}

h1,
p {
  display: none;
}