@import url('https://fonts.googleapis.com/css2?family=Bebas+Neue&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Tiro+Bangla&display=swap');



.image-container {
    text-align: center;
    margin: 1vw auto auto auto;
}

#warning {
  width: 60%;
  justify-content: center;
  text-align: center;
  align-items: center;
  user-select: none;
  margin-top: 5vh;
}

#warningsvg {
  width: 15%;
  opacity: 40%;
}

#warningmsg {
  color:rgba(0, 0, 0, 0.4);
}

.logo-image {
    width: 50vw;
    user-select: none;
    -webkit-user-drag: none;
    -moz-user-select: none;
    -webkit-user-select: none;
    -ms-user-select: none;
  }

form {
  display: flex;
  align-items: center;
  justify-content: center;
}

input[type=text] {
  flex-grow: 0.4;
  padding: 12px;
  border: none;
  border-radius: 5px;
  font-size: 16px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
  caret-color: rgb(141, 141, 141);
}

input:focus {
    outline: none;
}

::selection {
  color: white;
  background: rgb(100, 100, 100);
}

button[type=submit] {
  padding: 12px 20px;
  background-color: #004f58;
  border: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  margin-left: 10px;
  box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
  cursor: pointer;
  transition: all 0.2s ease-in-out;
  user-select: none;
  -webkit-user-drag: none;
  -moz-user-select: none;
  -webkit-user-select: none;
  -ms-user-select: none;
}

button[type="submit"]:hover {
    background-color: #002c31;
  }
  
  button[type="submit"]:active {
    transform: scale(0.95);
  }

  /* Settings */

  #settingsButton {
    display:inline;
    position: absolute;
    right: 2vw;
    top: 3vh;
    margin: 0px;
    padding: 0px;
    z-index: 2;
  }
  
  #settingsSVG {
    width: 4vw;
    height: 4vw;
    margin: 0px;
    padding: 0px;
  }
  
  #settingsButton:hover{
    cursor: pointer;
  }
  
  #settingsMenu {
    width: 100px;
    height: 88px;
    background-color: rgba(255, 255, 255, 0.692);
    position: fixed;
    right: 2vw;
    top: calc(25px + 3vh + 4vw);
    border-radius: 10px;
    text-align: center;
    backdrop-filter: blur(5px);
    box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.1);
    display: none;
  } 

  /* switch */

.switchLabel {
  display: inline;
  font-size: 16px;
  color: rgb(128, 128, 128);
}


  input[type=checkbox]{
    height: 0;
    width: 0;
    visibility: hidden;
  }
  
  label {
    cursor: pointer;
    width: 40px;
    height: 20px;
    background: rgb(128, 128, 128);
    display: block;
    border-radius: 20px;
    position: relative;
    margin-left: 30%;
  }
  
  label:after {
    content: '';
    position: absolute;
    top: 1px;
    left: 1px;
    width: 18px;
    height: 18px;
    background: #fff;
    border-radius: 18px;
    transition: 0.3s;
  }
  
  input:checked + label {
    background: #004f58;
  }
  
  input:checked + label:after {
    left: calc(100% - 1px);
    transform: translateX(-100%);
  }
  
  label:active:after {
    width: 26px;
  }

/* chat */
  
div {
    margin: 1vw auto auto auto;
}

#chat-log {
    width: 80%;
    margin: 50px auto auto auto;
}

pre {
  white-space: pre-wrap;
  line-height: 1.5;
  font-family: 'Roboto', sans-serif;
  margin: 0px;
}

div + div {
    margin-top: -1vw;
      animation: scale-in-top 0.5s cubic-bezier(0.250, 0.460, 0.450, 0.940) both;
  }
  
  @keyframes scale-in-top {
    0% {
      transform: scale(0);
      transform-origin: 50% 0%;
      opacity: 1;
    }
    100% {
      transform: scale(1);
      transform-origin: 50% 0%;
      opacity: 1;
    }
  }

  body {
    background-color: #e6e6e6;
    line-height: 1.5;
    font-family: 'Roboto', sans-serif;
    margin: 0px;
  }


  .message__sent {
    padding: 1vw 1vw 0.8vw 1vw;
    margin-top: 20px;
    font-weight: bold;
    background-color:#fafafa;
    border-radius: 5px;
    margin-bottom: -1.2vw;
    color: #494949;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
  }

  .message__text {
    background-color: #ffffff;
    padding: 1vw 1vw 1vw 1vw;
    border-radius: 0px 0px 5px 5px;
    border-top: 1px solid #e6e6e6;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);
  }




#loader{
  margin-top: 5vh;
  height: 20px;
  width: 20px;
  border: 6px solid;
  border-color: #002c31 transparent #002c31 transparent;
  border-radius: 50%;
  animation: spin 1.4s linear infinite;
  display: none;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

#error-message {
  text-align: center;
}



@keyframes rainbow {
  0% {
    color: #1ff0ff80;
  }
  25% {
    color: #b22cff80;
  }
  50% {
    color: #ff262680;
  }
  75% {
    color: #ffc81280;
  }
  100% {
    color: #52ff1d80;
  }
}

::placeholder { /* Chrome, Firefox, Opera, Safari 10.1+ */ 
  color: rgb(199, 199, 199);
  user-select: none;
 }

::-ms-input-placeholder { /* Microsoft Edge */
  color: rgb(199, 199, 199);
  user-select: none;
}

/* footer */
#footerBox {
  position: fixed;
  text-align: center;
  left:0px;
  bottom:0px;
  height:40px;
  width:100%;
  background:rgb(255, 255, 255, 0.2);
  padding: 0px;
  backdrop-filter: blur(5px);
  box-shadow: 0px -2px 5px rgba(0, 0, 0, 0.058);
}

.PP {
  display: inline;
  position: relative;
  top: 8px;
  margin: 0px;
  padding: 0px;
}

.footerLinks {
  color:rgba(0, 0, 0, 0.486);
  text-decoration: none;
  font-family: Bebas Neue;
  font-size: 15px;
  letter-spacing: 0.1rem;
  padding: 0px;
}

.footerLinks:hover {
	-webkit-animation: color-change 0.5s linear infinite alternate both;
	    animation: color-change 0.5s linear infinite alternate both;
}

@-webkit-keyframes color-change {
  0% {
    color: rgb(38, 177, 130);
  }
  100% {
    color: rgb(11, 90, 64);
  }
}
@keyframes color-change {
  0% {
    color: rgb(38, 177, 130);
  }
  100% {
    color: rgb(11, 90, 64);
  }
}


@media only screen and (max-width: 1200px) {


  #settingsSVG {
    width: 40px;
    height: 40px;
  }

}

  @media only screen and (max-width: 800px) {
    
      #chat-log {
       width: 95%;}

       .message__sent {
        padding: 1.5vw 2vw 2vw 2vw;
        margin-top: 0px;
      }
    
      .message__text {
        padding: 1vw 2vw 2vw 2vw;
        margin-top: -5px;
      }

      .logo-image {
        width: 80vw;
      }

      #warningsvg {
        width: 30%;
      }
  }