body {
  font-family: "Lobster", "Comic Sans MS", cursive;
  margin: 0;
  padding: 0;
  background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}
/* Ensure the container and other elements account for padding and border in their width */
*,
*::before,
*::after {
  box-sizing: border-box;
}
.container {
  text-align: center;
  padding: 30px;
  background: #fff;
  border-radius: 20px;
  border: 5px dashed #ff69b4;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  width: 90%;
  max-width: 600px;
  overflow: hidden;
  transition: height 0.3s ease;
}

h1 {
  color: #d63384;
  text-shadow: 2px 2px 0 #fff;
  margin-bottom: 20px;
}

button {
  margin: 10px;
  padding: 10px 20px;
  font-size: 16px;
  cursor: pointer;
  background: #ff69b4;
  color: #fff;
  border: none;
  border-radius: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s;
}
button:hover {
  transform: scale(1.05);
}

#friends {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 100px;
  gap: 10px;
  margin-top: 20px;
}

.friend {
  background: #ffe4e1;
  border: 2px solid #ffb6c1;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

video {
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

#videoOverlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

#videoOverlay video {
  width: 90%;
  max-height: 90%;
  border-radius: 10px;
}

#videoOverlay .close-button {
  position: absolute;
  top: 20px;
  right: 20px;
  background: transparent;
  color: #fff;
  font-size: 30px;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hidden {
  display: none !important;
}

#message img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

@media (max-width: 600px) {
  #friends {
    grid-template-columns: repeat(2, 1fr);
  }
}
