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

body{
  font-family: 'Inter', sans-serif;
  background-color: #1a1a1a;
  color: #ffffff;
}

#header, #footer{
  text-align: center;
}

#tree-container{
  max-width: 60rem;
  display: flex;
  margin: auto auto;
  justify-content: center;
  transform: translateX(250px);
}

#tree-image{
  width: 60rem;
  height: auto;
  display: block;
  margin: 2rem 0;
  border-radius: 0.5rem;
  max-height: 90rem;
  object-fit: contain;
}

.important-text{
  color:#5bc0de;
}

#ornament-selector {
  margin: 2rem auto;
  max-width: 20rem;
  text-align: center;
}

#tabs {
  display: flex;
  justify-content: center;
  margin-bottom: 1rem;
}

.tab-button {
  background-color: #333;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s;
}

.tab-button:hover {
  background-color: #555;
}

.tab-button.active {
  background-color: #5bc0de;
  color: #1a1a1a;
}

.action-button {
  background-color: #333;
  color: #ffffff;
  border: none;
  padding: 0.5rem 1rem;
  margin: 0 0.25rem;
  cursor: pointer;
  border-radius: 0.25rem;
  font-family: 'Inter', sans-serif;
  transition: background-color 0.3s;
}

.action-button:hover {
  background-color: #555;
}

.dropdown {
  position: relative;
  display: inline-block;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #333;
  min-width: 120px;
  box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
  z-index: 1;
  border-radius: 0.25rem;
  top: 100%;
  margin-top: 0.25rem;
}

.dropdown-content button {
  color: #ffffff;
  padding: 0.5rem 1rem;
  text-decoration: none;
  display: block;
  width: 100%;
  border: none;
  background: none;
  text-align: left;
  cursor: pointer;
  font-family: 'Inter', sans-serif;
  border-radius: 0;
}

.dropdown-content button:hover {
  background-color: #555;
}

.dropdown.show .dropdown-content {
  display: block;
}

#ornament-gallery {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.ornament-option {
  width: 3rem;
  height: 3rem;
  object-fit: contain;
  cursor: pointer;
  border-radius: 0.25rem;
  background-color: #333;
  padding: 0.25rem;
  -webkit-user-drag: none;
  user-select: none;
}


.ornament {
  position: absolute;
  border-radius: 0.25rem;
  z-index: 10;
  border: 2px solid transparent;
  transition: border-color 0.2s ease;
  min-width: 30px;
  min-height: 30px;
  max-width: 200px;
  max-height: 200px;
}

.ornament:hover {
  border-color: rgba(91, 192, 222, 0.5);
}

.ornament.resizing {
  border-color: #5bc0de;
  box-shadow: 0 0 8px rgba(91, 192, 222, 0.3);
}

.ornament.snapped {
  border-color: rgba(91, 192, 222, 0.8);
}