@import url("https://fonts.googleapis.com/css2?family=Italianno&family=League+Script&family=Major+Mono+Display&display=swap");

hr {
  border-top: 2px solid rgba(245, 206, 69, 0.9);
  opacity: 1;
}

.lobby {
  margin-top: 10px;
  margin-bottom: 20px;
  padding-top: 20px;
  padding-bottom: 10px;
  margin-bottom: 0px;
  background-color: rgba(21, 11, 42, 0.5);
}


.chat-toggler,
.playmates-toggler,
.activities-toggler {
  font-family: "Major Mono Display";
}

.font-major-mono{
      font-family: "Major Mono Display";
}

h2.room-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-shadow: 0px 0px 20px black;
  color: #eb5497;
  font-family: monoton;
  width: 100%;
  padding: 0px 20px;
}

.room-time-limit {
  color: #6380f3;
}

.newby {
  display: flex;
  align-items: center;
  margin-bottom: 5px;
  width: 200px;
}

.newby a img {
  width: 30px;
  height: 30px;
}

.newbies-container {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}

.newby-name {
  display: inline-block;
  width: 160px;
  text-overflow: ellipsis; /* Add "..." to the end of overflowing text */
  white-space: nowrap; /* Prevent text from wrapping to the next line */
  overflow: hidden; /* Hide any content that overflows the container */
}

h3 {
  color: #f5ce45;
  font-size: 125%;
  text-align: center;
}
.newby-profile-pic {
  border-radius: 50% !important;
  box-sizing: content-box;
  display: inline-flex;
  height: 30px;
  width: 30px;
  overflow: hidden;
  border: 2px solid #33c15b;
  margin-right: 10px;
  transition: 0.3s ease;
}
.newby-profile-pic:hover {
  transform: scale(1.1); /* Scale up the image slightly */
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); /* Add a shadow for depth */
}

.room-playing {
  font-size: 50%;
  font-family: "Major Mono Display";
}

.room-card-container {
  font-family: "Major Mono Display";
  display: flex;
  justify-content: center;
}

.get-room-users {
  color: #febe38;
  font-weight: normal;
}

.room-details {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 100%;
  padding: 0px 20px;
}

.room-card {
  margin: 10px 20px 20px;
  border-radius: 20px;
  border: solid #f5ce45 2px;
  overflow: hidden;
  background-color: rgba(21, 11, 42, 0.5);
  width: 100%;
  padding: 20px;
  max-width: 500px;
}

/* Add bottom padding for custom rooms to make space for custom-room-info */
.custom-room-wrapper .room-card {
  padding-bottom: 60px;
}

.duration {
  display: inline;
  color: #71bbe9;
}

.room-users {
  font-size: 80%;
  color: #71bbe9;
}

.user-list {
  margin-left: 20px;
}

.user-item {
  padding-left: 5px;
  padding-right: 5px;
}

.room-users-occupied {
  color: #33c15b;
  font-weight: bold;
}

#playmates-header {
  color: #eb5497;
  font-weight: bold;
}

#wotd-container {
  padding: 0 20px;
}

#wotd-header {
  color: #33c15b;
  width: 100%;
  text-align: center;
  font-family: "McLaren", sans-serif;
  font-weight: bold;
  margin-bottom: 10px;
  font-size: 130%;
}

#word-of-the-day {
  color: #f5ce45;
  width: 100%;
  text-align: center;
}

#word-of-the-day-defintion {
  text-align: left;
  font-size: 80%;
}

.room-rules {
  color: white;
}

.green-button {
  border-radius: 50%;
  border: none;
  padding: 3px 3px;
  font-size: 100%;
  font-weight: 400;
  font-style: normal;
  color: #f5ce45;
  transition: 0.5s;
  width: fit-content;
  text-decoration: underline;
}

.green-button:hover {
  color: #33c15b;
}

.green {
  color: #33c15b;
}

.yellow {
  color: #febe38;
}

.blue {
  color: #71bbe9;
}

.mobile-view {
  display: none;
}

#chat-container-container {
  padding-bottom: 15px;
}

.lobby-mobile {
  display: none;
}

@media screen and (max-width: 576px) {
  .room-details {
    font-size: 70%;
  }

  .lobby-desktop {
    display: none;
  }

  .lobby-mobile {
    display: initial;
  }

  #wotd-mobile {
    display: flex;
  }

  h2.room-title {
    font-size: 120%;
  }
  .room-card {
    border: none;
    margin: 0 0 15px;
    margin: 5px 5px;
    padding: 5px;
  }

  .desktop-view {
    display: none;
  }
  .mobile-view {
    display: initial;
    text-align: center;
    padding-bottom: 40px;
  }
  .users-online-list {
    background-color: rgba(21, 11, 42, 0.5);
    padding-top: 10px;
    padding-bottom: 10px;
  }

  #playmates-header {
    font-size: 100%;
  }

  .newby-name {
    width: 100px;
  }

  .newby {
    width: 150px;
  }
}

.mobile-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.mobile-modal-backdrop.hidden {
  display: none;
}

.mobile-modal-window {
  position: relative;
  width: 90vw;
  height: 80vh;
  background: #1b1835;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.mobile-modal-close-btn {
  position: absolute;
  top: 8px;
  right: 12px;
  border: none;
  background: transparent;
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
  color: white;
}

.mobile-modal-content {
  margin-top: 0.5rem;
  overflow-y: auto; /* vertical scroll */
  height: 100%;
}

/* Utility class */
.hidden {
  display: none !important;
}

.open-mobile-modal-btn{
    padding:2px 10px;
    border-radius:4px;
    border-width: 1px !important;
    text-align: center;
    width: 80px;
    font-size:85%;
}

/* Custom Rooms Header */
.custom-rooms-header {
    width: 100%;
    margin-top: 30px;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #5e4cb0;
}

.custom-rooms-header h3 {
    color: #5e4cb0;
    font-size: 1.5em;
    margin: 0;
    text-shadow: 0 0 10px rgba(94, 76, 176, 0.5);
}

/* Custom Room Info */
.room-card-container {
    position: relative;
}

.custom-room-info {
    position: absolute;
    bottom: 10px;
    right: 10px;
    padding: 10px 15px;
    background-color: rgba(21, 11, 42, 0.9);
    border-radius: 5px;
    border: 1px solid rgba(94, 76, 176, 0.3);
    min-width: 200px;
    max-width: 300px;
    font-size: 0.85rem;
    color: #fff;
    z-index: 10;
    font-family: "Major Mono Display", monospace;
    pointer-events: none; /* Allow clicks to pass through to room card */
}

.custom-room-owner,
.custom-room-visibility {
    margin-bottom: 6px;
    color: #aaa;
}

.custom-room-owner strong,
.custom-room-visibility strong {
    color: #71bbe9;
    margin-right: 5px;
}

.custom-room-description {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid rgba(94, 76, 176, 0.3);
    color: #ccc;
    font-style: italic;
    line-height: 1.4;
    font-size: 0.85rem;
    text-align: left;
    width: 100%;
}

@media screen and (max-width: 576px) {
    .custom-room-info {
        position: static;
        margin-top: 10px;
        width: 100%;
        min-width: auto;
        max-width: 100%;
    }
}