 body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  min-width: 100vw;
  box-sizing: border-box;
  background: url('Background.jpg') no-repeat center center fixed;
  background-size: cover;
  font-family: 'Segoe UI', Arial, sans-serif;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.message-container {
  position: absolute;
  top: 0;
  right: 0;
  left: 50vw;
  width: calc(50vw - 2vw);
  min-width: 120px;
  max-width: 100vw;
  background: none;
  border-radius: 0;
  padding: 0;
  box-sizing: border-box;
  box-shadow: none;
  font-size: clamp(1.2rem, 3vw, 2.5rem);
  color: #fff;
  line-height: 1.2;
  text-align: center;
  font-weight: bold;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  overflow: visible;
  text-overflow: unset;
  word-break: break-word;
  white-space: normal;
  z-index: 10;
}

.message-container p {
  margin: 0 0 1.2em 0;
  font-weight: bold;
  color: #171747;
  text-align: center;
  font-size: inherit;
  word-break: break-word;
  width: 100%;
}

#pong-container {
  flex: 0 0 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  margin-right: 2vw;
}

#pong {
  background: rgba(0,0,0,0.18);
  border-radius: 18px;
  box-shadow: 0 4px 24px rgba(0,0,0,0.18);
  display: block;
}

@media (max-width: 900px) {
  body {
    flex-direction: row !important;
    align-items: stretch;
  }
  #pong-container {
    flex: 0 0 80px;
    margin-right: 0.5vw;
    min-height: unset;
    width: 80px;
    justify-content: flex-start;
  }
  .message-container {
    position: absolute;
    top: 50%;
    right: 0;
    left: 50vw;
    width: 50vw;
    min-width: 120px;
    max-width: 100vw;
    font-size: 1.2rem;
    padding: 0.3rem 0.1rem;
    margin: 0;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    display: flex;
    flex-direction: column;
    background: rgba(0,0,0,0.18);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    border-radius: 18px;
    z-index: 10;
    min-height: unset;
    height: auto;
    transform: translateY(-50%);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
  }
  .message-container p {
    color: #fff;
  }
  body {
    background-image: url('Background_mobile.jpg');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    position: relative;
  }
  body::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1;
    pointer-events: none;
    left: 50vw;
    width: 50vw;
    min-width: 120px;
    max-width: 100vw;
    font-size: 0.92rem;
    padding: 0.3rem 0.1rem;
    margin: 0;
    align-items: flex-end;
    justify-content: flex-start;
    text-align: right;
    display: flex;
    flex-direction: column;
    background: none;
    box-shadow: none;
    border-radius: 0;
    z-index: 10;
    min-height: unset;
    height: auto;
  }
}


@media (max-width: 560px) {
  .message-container {
    font-size: 0.9rem;
  }
}
