:root {
  --bg-color: #101217;
  --sec-color: #1a1d24;
  --green: rgb(86, 222, 147);
  --white: #ffffff;
}

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

body {
  font-family: Arial, sans-serif;
  background-color: var(--bg-color);
  color: var(--white);
}

header {
  padding: 1rem;
  text-align: center;
}

h1 {
  color: var(--green);
  font-size: 2rem;
}

.subtitle {
  margin-top: 0.5rem;
  font-size: 1.2rem;
  cursor: pointer;
}

.modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  z-index: 999;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background: var(--sec-color);
  padding: 1rem;
  border-radius: 6px;
}

select {
  font-size: 2rem;
  font-family: Arial;
  padding: 0.5rem;
  background: var(--bg-color);
  color: var(--white);
  border-radius: 4px;
}

/* Social Bar */
.social-bar {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 2rem;
  margin-bottom: 1rem;
}

.social-icon {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-block;
  transition: filter 0.3s ease;
  cursor: pointer;
}

.social-icon svg {
  width: 100%;
  height: 100%;
  fill: var(--white);
  transition: fill 0.3s ease;
}

.social-icon:hover svg {
  fill: var(--green);
}

/* Art Section */
.artwork-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  padding: 1rem;
}

.art-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 12px;
  overflow: hidden;
  background-color: var(--sec-color);
  transition: transform 0.3s ease;
}

.art-item:hover {
  transform: scale(1.02);
}

.art-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  z-index: 1;
}

.art-text {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 0.5rem 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(3px);
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 2rem;
  color: var(--white);
  z-index: 2;
}

.art-rank {
  font-weight: bold;
  color: var(--green);
}

.art-title {
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Responsive Layout */
@media (min-width: 600px) {
  .artwork-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 900px) {
  .artwork-list {
    grid-template-columns: repeat(3, 1fr);
  }
}
