body, html 
{
    height: 100%;
    margin: 0;
}

body
{
    height: calc(100% - 15px);
}

.uploaded-pic
{
    width: 100% !important;
    max-width: 500px !important;
    height: auto !important;
    border-radius: 2px !important;
}

.bg-image {
    /* The image used */
    background-image: url("https://papers.co/wallpaper/papers.co-ni98-aurora-star-night-sky-space-blue-mountain-flare-29-wallpaper.jpg");
    
    /* Add the blur effect */
    filter: blur(0px);
    -webkit-filter: blur(0px);
    
    /* Full height */
    height: 100%; 
    min-height: 100%;
    
    /* Center and scale the image nicely */
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Position text in the middle of the page/image */
.bg-text {
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0, 0.4); /* Black w/opacity/see-through */
    color: white;
    font-weight: bold;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 80%;
    padding: 20px;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%) inset, 0 5px 10px 5px rgb(0 0 0 / 50%);
}

#pin
{
    padding: 10px;
    width: 100%;
    max-width: 350px;
    font-size: 20px;
    text-align: center;
    background-color: rgba(250,250,250, 0.4);
    border: none;
    border-bottom: 3px solid transparent;
    margin: 15px 0;
    outline: none;
    color: white;
    transition: all ease-in-out 150ms;
}

#pin:hover, #pin:focus
{
    border-color: #c8070796;
    background-color: rgba(50,25,0, 0.4);
}

#pin::placeholder
{
    color: white;
}

#submit
{
    border-radius: 25px;
    padding: 10px;
    width: 100%;
    max-width: 200px;
    font-size: 20px;
    text-align: center;
    background-color: rgba(159, 12, 103, 0.4);
    margin: 15px 0;
    outline: none;
    border: none;
    color: white;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 50%) inset, 0 5px 10px 5px rgb(0 0 0 / 50%);
    transition: all ease-in-out 150ms;
}

#submit:hover, #submit:focus
{
    background-color: rgba(14, 205, 142, 0.4);
}

#submit::placeholder
{
    color: white;
}

/* chat */

.container {
    background: rgba(250,250,250,0.72);
    border-radius: 25px;
    padding: 10px;
    margin: 10px 0;
    max-width: 85%;
    width: -moz-fit-content;
    width: fit-content;
    box-shadow: 0 0 5px 0 rgb(0 0 0 / 25%) inset, 0 5px 10px 5px rgb(0 0 0 / 25%);
  }
  
  .darker {
    color: white;
    margin-left: auto;
    margin-right: 0;
    background: rgba(0,0,0,0.75);
  }
  
  .container::after {
    content: "";
    clear: both;
    display: table;
  }
  
  .container img {
    float: left;
    max-width: 60px;
    width: 50px;
    height: 50px;
    margin-right: 10px;
    border-radius: 50%;
  }
  
  .container .right {
    float: right;
    margin-left: 10px;
    max-width: 50px;
    border-radius: 50%;
    margin-right:0;
  }
  
  .time-right {
    float: right;
    color: #665;
    font-size: 12px; 
    margin-left: 20px; 
    margin-top:3px;
}
  
  .time-left {
    float: left;
    font-size: 12px;
    color: #999;
    margin-right: 20px; 
    margin-top:3px;
  }

@media only screen and (max-width: 500px)
{
  .container img
  {
    width: 30px;
    height: 30px;
    max-width: 30px;
    margin-right: 10px;
  }
  .container .right 
  {
    max-width: 30px;
    margin-left: 10px;
  }
   
  .container p
  {
    margin: 0 !important;
  }
  
  .container p.left_message
  {
    margin-left: 40px !important;
  }
  .container p.right_message
  {
    margin-right: 40px !important;
  }

}