body {
  margin: 0;
  padding: 0;
  background: #F5F5F5;
  font-family: "Futura", Helvetica, Arial, sans-serif;
  overflow: hidden;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

input, button, select {
    font-family: "Futura", Helvetica, Arial, sans-serif;
}

.container {
  display: grid;
  height: 100vh;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr 1fr 1fr;
}

.tile {
  background: #FFF;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  color: #000;
  font-size: 16px;
  font-weight: bold;
  overflow: hidden;
  transition: transform 0.2s;
  cursor: pointer;
}
.tile:hover {
  transform: scale(1.05);
}
.red { background: #D40920; color: #FFF; }
.blue { background: #003399; color: #FFF;}
.yellow { background: #FFD200; }
.black { background: #000; color: #FFF; }
.white { background: #FFF; }

.search-tile {
  background: #FFF;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px;
}

.search-form {
  display: flex;
  width: 100%;
  max-width: 500px;
}

.search-input {
  flex: 1;
  padding: 8px;
  font-size: 14px;
  border: 2px solid #000;
  border-right: none;
  outline: none;
  min-width: 0;
}

.search-button {
  padding: 8px 12px;
  font-size: 14px;
  font-weight: bold;
  background: #000;
  color: #FFF;
  border: 2px solid #000;
  cursor: pointer;
}
.search-button:hover {
  background: #333;
}

.settings-tile {
  background: #FFF;
  border: 2px solid #000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
}
.settings-tile:hover {
  background: #E0E0E0;
}

.modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0; top: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: #FFF;
  border: 2px solid #000;
  padding: 0;
  width: 90%;
  max-width: 500px;
  max-height: 90vh;
  overflow-y: auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
}

.modal-header {
  position: sticky;
  top: 0;
  background: #FFF;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  z-index: 1;
}

.modal-header h2 {
  margin: 0;
  font-size: 18px;
}

.close {
  font-size: 24px;
  font-weight: bold;
  cursor: pointer;
}

.tile-input-group {
  margin: 10px 20px;
}
.tile-input-group label {
  display: block;
  margin: 5px 0 2px;
}
.tile-input-group input,
.tile-input-group select {
  width: 100%;
  padding: 4px;
  box-sizing: border-box;
}

.save-button, .reset-button {
  display: block;
  width: calc(100% - 40px);
  margin: 10px 20px;
  padding: 10px;
  font-weight: bold;
  background: #000;
  color: #FFF;
  border: none;
  cursor: pointer;
  text-transform: uppercase;
}
.save-button:hover, .reset-button:hover {
  background: #333;
}

.modal-buttons {
  background: #FFF;
  position: sticky;
  bottom: 0;
  display: flex;
  gap: 10px;
  width: calc(100% - 40px);
  margin: 10px 20px;
}
