@font-face {
  font-family: 'Chaumont Script';
  src: url('assets/Chaumont_scriptBeta-Regular.otf') format('opentype');
  font-weight: normal;
  font-style: normal;
}

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

body {
  font-family: 'Podkova', serif;
  text-align: center;
}

.background {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images9/send_back.jpeg');
  background-size: cover;
  background-repeat: no-repeat;
  background-position: top;
  z-index: -1;
}

.logo-wrapper {
  margin-top: 20px;
}

.upload-container {
  margin-top: 30px;
  margin-bottom: 20px;
  padding: 0 20px;
}

.upload-title {
  font-size: 30px;
  font-weight: bold;
  margin-bottom: 5px;
  color: white;
}

.upload-description {
  font-size: 18px;
  margin-bottom: 50px;
  color: rgba(255, 255, 255, 0.7);
}

.nickname-input {
  padding: 10px 15px;
  font-size: 16px;
  width: 250px;
  border-radius: 50px;
  background-color: rgba(253, 241, 212, 0.25);
  border: 2px solid #444;
  color: #3a3223;
  margin-right: 10px;
}

input[type="file"] {
  display: none;
}

.custom-upload-button {
  background-color: #3a3223;
  color: white;
  font-size: 17px;
  padding: 10px 20px;
  border-radius: 50px;
  cursor: pointer;
  margin-right: 10px;
}

.send-btn {
  background-color: #4CAF50;
  color: white;
  font-size: 17px;
  padding: 10px 25px;
  border: none;
  border-radius: 20px;
  cursor: pointer; /* ✅ 손모양 커서 추가 */
  transition: background-color 0.3s ease;
}

.send-btn:hover {
  background-color: #45a049; /* ✅ hover 효과 추가 */
}

.upload-instruction {
  margin-top: 20px;
  color: rgb(75, 54, 33);
}

.reset-wrapper {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 100px;
}

.reset-button {
  background-color: transparent;
  border: none;
  cursor: pointer;
  padding: 0;
  margin-top: -30px;
  display: flex;
  justify-content: center;
  align-items: center;
  opacity: 70%;
}

.reset-button:hover {
  opacity: 100%;
}

.reset-icon {
  width: 30px;
  height: 30px;
  object-fit: contain;
}

.image-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
  margin-top: 60px;
  padding-bottom: 100px;
  position: relative;
  min-height: 800px;
}

.draggable {
  width: 25vw;
  max-width: 600px;
  height: auto;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.15);
  position: absolute;
  transition: transform 0.1s ease;
}

@media (max-width: 768px) {
  .nickname-input,
  .custom-upload-button,
  .send-btn {
    font-size: 14px;
    padding: 8px 12px;
  }

  .upload-title {
    font-size: 24px;
  }

  .upload-description {
    font-size: 16px;
  }

  .draggable {
    width: 40vw;
    max-width: 200px;
  }
}

@media (max-width: 480px) {
  .draggable {
    width: 60vw;
    max-width: 180px;
  }
}

figure.draggable {
  position: absolute;
  max-width: 500px;
  height: auto;
  border-radius: 16px;
  cursor: grab;
  user-select: none;
  box-shadow: 1px -10px 3px 2px rgba(0, 0, 0, 0.15);
  text-align: center;
  margin: 0;
}

figure.draggable img {
  width: 100%;
  border-radius: 16px;
  display: block;
}

figure.draggable figcaption {
  margin-top: 8px;
  font-size: 14px;
  color: #3a3223;
}

