@import url("https://fonts.googleapis.com/css2?family=Caveat");

* {
  box-sizing: border-box;
  font-family: "Jua", sans-serif;
}

body {
  font-family: "Indie Flower";
  line-height: 1.618em;
  background-color: #fff4c8;
  background-image: repeating-radial-gradient(circle, #E3D3BC, #E5D6C7 50%, #E8DBC7 100%);
  background-size: 10px 10px;
}

img {
  max-width: 100%;
  height: auto;
}

.wrapper {
  width: 100%;
  padding: 0 2rem;
  text-align: center;
}

.polaroid {
  background: #fff;
  padding: 1rem;
  box-shadow: 0 0.25rem 1rem rgba(0, 0, 0, 0.2);
}

.caption {
  font-size: 2rem;
  text-align: center;
  line-height: 2em;
  font-family: "Jua", sans-serif;
}

.item {
  display: inline-block;
  margin-top: 2rem;
  filter: grayscale(100%);
}
.item .polaroid:before {
  content: "";
  position: absolute;
  z-index: -1;
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) {
  transform: scale(0.8, 0.8) rotate(5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+1) .polaroid:before {
  transform: rotate(6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}
.item:nth-of-type(4n+2) {
  transform: scale(0.8, 0.8) rotate(-5deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+2) .polaroid:before {
  transform: rotate(-6deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.4);
}
.item:nth-of-type(4n+4) {
  transform: scale(0.8, 0.8) rotate(3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+4) .polaroid:before {
  transform: rotate(4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  right: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}
.item:nth-of-type(4n+3) {
  transform: scale(0.8, 0.8) rotate(-3deg);
  transition: all 0.35s;
}
.item:nth-of-type(4n+3) .polaroid:before {
  transform: rotate(-4deg);
  height: 20%;
  width: 47%;
  bottom: 30px;
  left: 12px;
  box-shadow: 0 2.1rem 2rem rgba(0, 0, 0, 0.3);
}
.item:hover {
  filter: none;
  transform: scale(1, 1) rotate(0deg) !important;
  transition: all 0.35s;
}
.item:hover .polaroid:before {
  content: "";
  position: absolute;
  z-index: -1;
  transform: rotate(0deg);
  height: 90%;
  width: 90%;
  bottom: 0%;
  right: 5%;
  box-shadow: 0 1rem 3rem rgba(0, 0, 0, 0.2);
  transition: all 0.35s;
}

.Container {
  position: absolute;
  top: 50%;
  left: 50%;
}

.Picture {
  display: inline-block;
  position: absolute;
  top: 0;
  left: 0;
  border: 5px solid #fff;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  transform: translate(-50%, -50%);
  user-select: none;
  cursor: pointer;
}

.Picture-img {
  display: block;
  width: 300px;
  height: 300px;
  pointer-events: none;
}

.Picture-note {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 300px;
  height: 70px;
  padding: 12px 24px;
  font-size: 1.5rem;
  text-align: center;
}

.Page-container{
  display: flex;
  justify-content: space-between;
  padding: 20px;
  box-sizing: border-box;
  width: 100%;
  margin: auto;
  max-width: 1200px;
}

.photo-container {
  flex: 2 1 40%;
  padding: 10px;
  box-sizing: border-box;
  width: 47%;
}

.photo-container img {
  width: 100%;
  border-radius: 10px;
}

.text-container {
  flex: 3 1 60%;
  padding: 10px;
  box-sizing: border-box;
}

.text-box {
  background-color: #fff;
  padding: 20px;
  border-radius: 15px;
  box-shadow: 0 4px 8px rgba(0,0,0,0.1);
  margin-bottom: 10px;
  width: 47%;
}

.gradient-text {
  background: linear-gradient(45deg, #f3ec78, #af4261);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}


.map-link {
  display: inline-block;
  padding: 5px 5px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border-radius: 5px;
}

.map-link:hover {
  background-color: #0056b3;
}

@media (max-width: 768px) {
  .Page-container {
      flex-direction: column;
      align-items: center;
  }

  .photo-container, .text-box {
      width: 100%;
      margin-bottom: 20px;
  }
}

.Network {
  display: inline-block;
  padding: 0 5px;
}

.Network img {
  width: 1.5rem;
  aspect-ratio: 1 / 1;
  vertical-align: middle;
}

@keyframes rainbow-text {
  0% {color: red;}
  14% {color: orange;}
  28% {color: yellow;}
  42% {color: green;}
  57% {color: blue;}
  71% {color: indigo;}
  85% {color: violet;}
  100% {color: red;}
}

.rainbow {
  background: linear-gradient(100deg, red, orange, yellow, green, blue, indigo, violet);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.navbar {
  display: inline;
  padding: 5px 5px;
  background-color: white;
  color: red;
  text-decoration: none;
  border-radius: 5px;
  transition: background-color 0.35s, color 0.35s;
}

#stats-container {
  float: right;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  padding: 8px 12px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  font-family: 'Jua', sans-serif;
}

.stats-container {
  text-align: right; /* 부모 요소에서 오른쪽 정렬 */
  width: 100%; /* 전체 너비를 사용하여 오른쪽 정렬이 적용되도록 함 */
}

.stat-item {
  margin: 4px 0;
  font-size: 14px;
  white-space: nowrap;
}

.stat-label {
  color: #666;
  margin-right: 8px;
}

.stat-value {
  font-weight: bold;
  color: #333;
}

.navbar:hover {
  background-color: #ffaae7;
}
