* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: Arial, sans-serif;
  background-color: #F4F4F9;
  padding: 20px;
  color: #333;
}

h1 {
  text-align: center;
  color: #000000;
  margin-bottom: 20px;
}

.top-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
  flex-wrap: wrap;
}

.top-buttons select,
.top-buttons button {
  font-size: 16px;
  padding: 10px 16px;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.top-buttons select {
  background-color: #e0e0e0;
  color: #000000;
  border: 1px solid #ccc;
}

.top-buttons button {
  background-color: #000000;
  color: white;
}

.top-buttons button:hover {
  background-color: #000000;
}

.editor-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.editor-box {
  flex: 1;
  border-radius: 10px;
  overflow: hidden;
  background-color: #f9f9f9;
  display: flex;
  flex-direction: column;
  width: 600px;    
  height: 400px;
  transition: box-shadow 0.3s, border 0.3s ease;
}

.editor-box:hover {
  border: 2px solid #000000; /* Black border on hover */
}

.editor-box:focus-within {
  border: 2px solid #000000; /* Keep border when focused */
  background-color: #fff0f7;
}

.editor-header {
  background-color: #000000;
  color: white;
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: bold;
}

.editor-tools i {
  margin-left: 10px;
  cursor: pointer;
  transition: transform 0.2s;
}

.editor-tools i:hover {
  color: #000000;
  transform: scale(1.2);
}

.ace-editor {
  height: 500px;
  width: 100%;
}

.stats {
  text-align: center;
  font-size: 14px;
  color: #333;
}

.fullscreen {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 9999;
  width: 100vw;
  height: 100vh;
  background: white;
  display: flex;
  flex-direction: column;
}

.fullscreen .ace-editor {
  flex: 1;
  height: 100%;
}