/* =====================
   Global Base Styles
   ===================== */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #0073c6;
  color: white;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

/* =====================
   Page Border and Layout
   ===================== */
.page-border {
  width: 100vw;
  height: 100vh;
  border: calc(1.5vh + 1.5vw) solid #111;
  border-radius: calc(2vh + 2vw);
  box-shadow: inset 0 0 5px #000, 0 0 20px rgba(0, 0, 0, 0.5);
  margin: auto;
  padding: calc(0.5vh + 0.5vw);
  background-clip: padding-box;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-border::before {
  content: "Site Under Construction";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 3em;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* =====================
   Top Bar
   ===================== */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #005fa3;
  color: white;
  padding: 10px;
  font-size: 1.2em;
  z-index: 1;
}

.top-bar .banner {
  font-size: 1.25em;
}

.banner {
  font-family: 'Georgia', serif;
  font-size: 54px;
  font-weight: bold;
  color: #3399ff;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#time {
  color: #3399ff;
}

/* =====================
   Header
   ===================== */
.profile-header {
  display: flex;
  text-align: left;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background-color: #004080;
}

.profile-name {
  font-size: 1.2em;
  font-weight: bold;
  color: white;
}

.profile-picture {
  height: 40px;
  max-height: 40px !important;
  width: auto;
  border-radius: 12px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

/* =====================
   Main Content
   ===================== */
.content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
  z-index: 1;
}

.content-area {
  padding-bottom: 80px;
}

/* =====================
   Message Bubbles
   ===================== */
.message-container {
  display: flex;
  flex-direction: column;
  gap: 4px;
  overflow-y: auto;
  padding: 1em;
  max-height: calc(100vh - 250px);
  box-sizing: border-box;
}

.message-bubble {
  background-color: white;
  color: black;
  padding: 10px 15px;
  border-radius: 20px;
  max-width: 60%;
  align-self: flex-start;
  position: relative;
  transition: background 0.3s ease;
  margin-top: 5px;
}

.message-timestamp {
  font-size: 0.75em;
  color: white;
  margin: 5px 0 0px 35px;
  padding: 0;
  text-align: left !important;
  align-self: flex-start;
}

.message-timestamp + .message-bubble {
  margin-top: 0px !important;
}

.timestamp {
  font-size: 0.75em;
  color: white;
  margin: 4px 0 0 10px;
  display: block;
}

/* =====================
   Typing Indicator
   ===================== */
    .typing-indicator {
      display: flex;
      align-items: flex-start;
      gap: 5px;
      margin-left: 10px;
      margin-top: 25px;
}

    .typing-indicator img {
      height: 40px;
      width: auto;
      border-radius: 50%;
      object-fit: cover;
      margin-top: -20px;
    }

    .typing-bubble {
      background-color: white;
      display: flex;
      padding: 10px 15px;
      border-radius: 20px;
      font-size: 1.2em;
      align-items: center;
      justify-content: center;
      padding: 10px;
      width: auto;
      height: auto;
      gap: 2px;
    }

    .typing-bubble span {
      width: 6px;
      height: 6px;
      background-color: #444;
      border-radius: 50%;
      animation: blink 1.4s infinite both;
    }

    .typing-bubble span:nth-child(2) {
      animation-delay: 0.2s;
    }

    .typing-bubble span:nth-child(3) {
      animation-delay: 0.4s;
    }

    @keyframes blink {
      0%, 80%, 100% { opacity: 0; }
      40% { opacity: 1; }
    }

/* =====================
   Controls
   ===================== */
.bottom-controls {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 100;
}

.slider {
  width: 200px;
}

.play-pause {
  font-size: 24px;
  cursor: pointer;
}

.slider-value {
  font-size: 14px;
  min-width: 30px;
  text-align: center;
}

/* =====================
   Navigation Arrows
   ===================== */
.nav-arrow-global {
  position: absolute;
  bottom: 10px;
  font-size: 2.25em;
  color: black;
  z-index: 100;
  cursor: pointer;
}

.nav-arrow-global.left {
  left: 20px;
}

.nav-arrow-global.right {
  right: 20px;
}

/* =====================
   Responsive Media Queries
   ===================== */
@media screen and (orientation: portrait) {
  .page-border {
    max-height: 1280px;
    max-width: 100vw;
  }
}

@media screen and (max-height: 768px) and (orientation: landscape),
       screen and (max-width: 768px) and (orientation: portrait) {
  .bezel-frame, .page-border {
    background: none !important;
    overflow: visible !important;
    padding: 0 !important;
    border: none !important;
    box-shadow: none !important;
  }
}

/* =====================
   Utility & Misc
   ===================== */
.contact-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.contact-card {
  display: flex;
  align-items: center;
  background: #e0f7fa;
  border-radius: 20px;
  padding: 15px 20px;
  margin-bottom: 15px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
  max-width: 700px;
}

.contact-avatar {
  height: 60px;
  width: 60px;
  border-radius: 50%;
  object-fit: cover;
  margin-right: 20px;
  flex-shrink: 0;
}

.contact-text {
  display: flex;
  flex-direction: column;
}

.contact-name {
  font-weight: bold;
  font-size: 1.2em;
  margin-bottom: 4px;
  color: black;
}

.contact-description {
  font-style: italic;
  color: #555;
  margin-left: 10px;
}

.folder {}
.icon-label {}
.left {}
.right {}
.message-log {}
#Jane_Doe {}
#contacts-container {}
#message-container {}
#playPauseBtn {}
#speedSlider {}
#speedValue {}
.profile-columns {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-top: 20px;
}
.profile-column {
  flex: 1;
  min-width: 200px;
}
.profile-column h3 {
  margin-bottom: 10px;
  color: #3399ff;
}
.profile-column a {
  display: block;
  margin-bottom: 5px;
  color: #ffffff;
  text-decoration: underline;
}
.profile-picture-large {
  height: 150px;
  width: auto;
  object-fit: contain;
  border-radius: 12px;
  display: inline-block;
  margin-right: 10px;
  vertical-align: middle;
}
.icon-picture {
  height: 85px;
  max-height: 85px !important;
  width: auto;
  border-radius: 12px;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}
/* === General Layout and Structure === */
html, body {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  background: #0073c6;
  color: white;
  width: 100vw;
  height: 100vh;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-border {
  width: 100vw;
  height: 100vh;
  max-width: 1280px;
  max-height: 100vh;
  border: calc(1.5vh + 1.5vw) solid #111;
  border-radius: calc(2vh + 2vw);
  box-shadow: inset 0 0 5px #000, 0 0 20px rgba(0, 0, 0, 0.5);
  margin: auto;
  padding: calc(0.5vh + 0.5vw);
  background-clip: padding-box;
  box-sizing: border-box;
  position: relative;
  display: flex;
  flex-direction: column;
}

.page-border::before {
  content: "Site Under Construction";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) rotate(-45deg);
  font-size: 3em;
  color: rgba(255, 255, 255, 0.1);
  white-space: nowrap;
  pointer-events: none;
  z-index: 0;
}

/* === Top Bar === */
.top-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #005fa3;
  color: white;
  padding: 10px;
  font-size: 1.2em;
  z-index: 1;
}

.banner {
  font-family: 'Georgia', serif;
  font-size: 54px;
  font-weight: bold;
  color: #3399ff;
  letter-spacing: 0.05em;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

#time {
  color: #3399ff;
}

/* === Icon Grid Layout === */
.icon-grid {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  justify-content: flex-start;
  padding: 20px;
  gap: 20px;
}

.icon {
  text-align: center;
  min-width: 80px;
  padding: 10px;
  flex: 0 0 auto;
}

.icon-picture {
  height: 85px;
  max-height: 85px;
  width: auto;
  border-radius: 12px;
  display: inline-block;
  margin-bottom: 5px;
  vertical-align: middle;
}

.icon-label {
  color: white;
}

/* === Navigation Arrows === */
.nav-arrow-global {
  position: absolute;
  bottom: 10px;
  font-size: 2.25em;
  color: black;
  z-index: 100;
  cursor: pointer;
}

.nav-arrow-global.left {
  left: 20px;
}

.nav-arrow-global.right {
  right: 20px;
}

    .highlight {
      animation: highlightFlash 1s ease-in-out;
    }
    @keyframes highlightFlash {
      0% { background-color: yellow; }
      100% { background-color: white; }
    }
    .countdown {
      font-size: 1.2em;
      color: #d36ca5;
      margin-left: auto;
      padding-left: 20px;
      margin-right: 8px; /* Adjusted to move countdown 25px to the right */
    }
    .header-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      width: 100%;
      background-color: #004080;
      padding: 10px;
      box-sizing: border-box;
    }
    .header-title {
      display: flex;
      align-items: center;
      gap: 10px;
    }
    #time {
      margin-left: -100px;
    }

    .bottom-controls {
      position: absolute;
      bottom: 10px;
      left: 50%;
      transform: translateX(-50%);
      display: flex;
      align-items: center;
      gap: 10px;
      z-index: 100;
      height: 60px;
    }

    .slider {
      width: 200px;
      height: 60px;
    }

    .play-pause {
      font-size: 45px;
      cursor: pointer;
      height: 50px;
      line-height: 50px;
      margin-top: -10;
    }

    .slider-value {
      font-size: 24px;
      min-width: 30px;
      text-align: center;
      height: 60px;
      line-height: 60px;
    }

    .contact-bubble {
      background-color: #e0f7fa;
      border-radius: 20px;
      padding: 15px 20px;
      margin-bottom: 15px;
      box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
      max-width: 500px;
      display: flex;
      flex-direction: row;
      gap: 10px;
      align-items: center;
      cursor: pointer;
    }

    .contact-info {
      display: flex;
      flex-direction: column;
      justify-content: center;
      flex-grow: 1;
    }

    .contact-avatar-vertical {
      height: 60px;
      width: 60px;
      border-radius: 50%;
      object-fit: cover;
      flex-shrink: 0;
      cursor: pointer;
    }

    .contact-name {
      font-weight: bold;
      font-size: 1.2em;
      color: black;
    }

    .contact-description {
      font-style: italic;
      color: #555;
      display: flex;
      justify-content: space-between;
      align-items: center;
    }

    .arrow {
      margin-left: 10px;
      transition: transform 0.3s ease;
    }

    .arrow.expanded {
      transform: rotate(90deg);
    }

    .dropdown-bubble {
      background-color: #f0f0f0;
      border-radius: 15px;
      margin: 10px 0 20px 0;
      padding: 10px 15px;
      display: none;
      max-width: 500px;
      flex-direction: column;
      width: fit-content;
    }

    .dropdown-bubble a {
      display: block;
      padding: 6px 0;
      text-decoration: none;
      color: #0073c6;
    }
