html, body {
    margin: 0;
    padding: 0;
}

.chat-wrapper {
    flex: 1 1 auto;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.hidden{
    pointer-events: none;
    opacity: 0 !important;
    display: none !important;
}

.notification{
    display: none;
    align-items: center;
    background-color: #dc5166;
    border-radius: 50%;
    font-weight: 700;
    height: 1.6rem;
    justify-content: center;
    position: absolute;
    width: 1.6rem;
    bottom: 8rem;
    right: 10px;
    z-index: 20;
    font-size: 1rem;
    font-size: min(max(.875rem,2vw),1rem);
    font-size: clamp(.875rem,2vw,1rem);
}

.chat-wrapper #chat .content{
    background-color: rgba(121, 121, 121, 0.565);

    margin-bottom: 0.5rem;
    padding: 0.3rem;
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.chat-wrapper #chat .content-other{
    background-color: rgba(113, 113, 113, 0.3);
    margin-bottom: 0.5rem;
    padding: 0.3rem;
    display: block;
    padding: 1rem;
    margin-bottom: 0.5rem;
}

.chat-wrapper #chat .content .username{
    font-family: 'Fira Sans';
    font-size: 1.0rem;
    margin-bottom: 0.3rem;
    color: #34bcd7;
}

.chat-wrapper #chat .content-other .otherplayer{
    font-family: 'Fira Sans';
    font-size: 1.0rem;
    margin-bottom: 0.3rem;
    color: #78c37d;
}

.chat-wrapper #chat .content .text-chat{
    font-family: 'Fira Sans';
    font-size: 0.9rem;
}

.chat-wrapper #chat .content-other .text-chat{
    font-family: 'Fira Sans';
    font-size: 0.9rem;
}

.notification .value{
    font-family: 'Fira Sans';
    font-size: 0.875rem;
    filter: invert(89%) sepia(100%) saturate(0%) hue-rotate(253deg) brightness(102%) contrast(104%);
}

::-webkit-scrollbar {
    width: 5px;
  }
  
  ::-webkit-scrollbar-track {
    background: #484848; 
  }
   
  ::-webkit-scrollbar-thumb {
    background: #888; 
  }
  
  ::-webkit-scrollbar-thumb:hover { 
    background: #555; 
  }

  @font-face {
    font-family:'Fira Sans';
    src: url('/assets/fonts/FiraSans-Bold.ttf');
    font-weight: bold;
  }

  @font-face {
    font-family:'Fira Sans Regular';
    src: url('/assets/fonts/FiraSans-Regular.ttf');
    font-weight: 300;
  }

  @font-face {
    font-family:'Poppins SemiBold';
    src: url('/assets/fonts/Poppins-SemiBold.ttf');
    font-weight: 300;
  }

.chat-button{
    position: absolute;
    right: 10px;
    bottom: 5.5rem;
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    overflow: hidden;
    padding: 1rem;
    background-color: #34bcd7;
    user-select: none;
    border: 0;
    cursor: pointer;
}

.chat-button img{
    width: 100%;
    filter: invert(100%) sepia(0%) saturate(18%) hue-rotate(21deg) brightness(103%) contrast(101%);
    margin-left: 0.1rem;
    margin-top: 0.1rem;
}

.soundButton{
    outline:none;
    position: absolute;
    right: 10px;
    bottom: 10.5rem;
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    overflow: hidden;
    padding: 1rem;
    background-color: #dc5166;
    user-select: none;
    border: 0;
    cursor: pointer;
}

.soundButton img{
    width: 120%;
    filter: invert(100%) sepia(0%) saturate(18%) hue-rotate(21deg) brightness(103%) contrast(101%);
    margin-left: -0.1rem;
    margin-top: -0.1rem;
}

.soundButton.move{
    right: 0.65rem;
    bottom: 0.65rem;
}

.closeChat{
    position: absolute;
    right: -0.9375rem;
    top: -0.9375rem;
    border-radius: 50%;
    height: 2rem;
    width: 2rem;
    overflow: hidden;
    background-color: #00d5ff;
    user-select: none;
    border: 0;
    transition: 0.5s;
    cursor: pointer;
    position: absolute;
}

.closeChat img{
    filter: invert(100%) sepia(0%) saturate(18%) hue-rotate(21deg) brightness(103%) contrast(101%);
    display: block;
    margin-left: auto;
    margin-right: auto;
    width: 100%;
}

#chat {
    background: rgba(0,0,0,0.7);
    color: white;
    padding: 1rem;
    overflow-y: auto;
    word-wrap: break-word;
    height: 100%;
}
.chat-wrapper #text-input {
    width: calc(100% - 1rem - 3rem);
    font-family: 'Fira Sans Regular';
    background: #404152;
    color: white;
    padding: 0.5rem;
    border: 0.1rem;
    display: inline-block;
    outline: 0.1rem solid #8e8e8e;
    outline-offset: -0.1rem;
}

.chat-wrapper #text-input:focus {
    outline: 0.1rem solid rgb(255, 255, 255);
    outline-offset: -0.1rem;
}

.chat-wrapper #send {
    width: 3rem;
    border: 0;
    background: #0073ff;
    color: white;
    float: right;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.input{
    display: flex;
    height: 2rem;
}

.chat-wrapper #send img{
    height: 1.7rem;
    width: 1.2rem;
    margin: 0%;
    filter: invert(100%) sepia(12%) saturate(7497%) hue-rotate(272deg) brightness(115%) contrast(114%);
}
#phaser-canvas{
    width: 0;
    height: 0;
    padding: 0%;
}

#playerIndicator{

    background-color: white;
    position: relative;
    left: -6px;
    border: 6px solid #0073ff;
    padding: 0px 15px;
    height: 55px;
    font-size: 30px;
    width: 10px;
    height: 40px;
    display: flex !important;
    font-family: 'Poppins SemiBold';
    color: #0073ff;
    font-weight: 700;
    border-radius: 50%;
    top: -90px;
    align-items: center;
    justify-content: center;
}

#playerIndicator::after{
    content: "";
    position: absolute;
    bottom:-15px;
    left: 24%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #0073ff;
    transform: rotate(180deg);
}

#externalIndicator{
    background-color: white;
    position: relative;
    left: -6px;
    border: 6px solid #e84747;
    padding: 0px 15px;
    height: 55px;
    font-size: 30px;
    width: 10px;
    height: 40px;
    display: flex !important;
    font-family: 'Poppins SemiBold';
    color: #e84747;
    font-weight: 700;
    border-radius: 50%;
    top: -90px;
    align-items: center;
    justify-content: center;
}

#externalIndicator::after{
    content: "";
    position: absolute;
    bottom:-15px;
    left: 24%;
    width: 0;
    height: 0;
    border-left: 10px solid transparent;
    border-right: 10px solid transparent;
    border-bottom: 15px solid #e84747;
    transform: rotate(180deg);
}

.side-wrapper{
    position: absolute;
    right: 2rem;
    height: 85vh;
    opacity: 1;
    transition: 0.5s;
    width: 300px;
    display: flex;
    flex-direction: column;
    max-height: 55vh;
    bottom: 2rem;
    z-index: 2;
}

.tabs-wrapper{
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.tab{
    font-family: 'Fira Sans';
    font-size: 0.9rem;
    padding: 0.8rem 0.5rem;
    background: rgb(34 34 34);
    color: white;
    font-weight: bold;
    text-transform: uppercase;
    user-select: none;
    border: 0;
    cursor: pointer;
}
.tab:hover{
    background: rgb(45 45 45);
}

.tab:first-of-type{
    border-right: 0.5px solid #bebebe33;
}

.tab:last-of-type{
    border-left: 0.5px solid #bebebe33;
}

.tab--active {
    box-shadow: inset 0em -0.2rem #00d7fc;
    color: #00d7fc;
}

.users-wrapper{
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 1rem;
    overflow-y: auto;
    word-wrap: break-word;
    height: 100%;
    font-family: 'Fira Sans';
    font-size: 1rem;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.users__title{
    margin: 0;
}

.user__card{ 
    padding: 1rem;
    display: block;
}

.user__name {
    color: white;
    margin: 0;
    position: relative;
    padding-left: 1.5rem;
}

.user__name::before{
    content: '';
    width: 0.8rem;
    height: 0.8rem;
    position: absolute;
    background: #78c37d;
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    left: 0;
}

.call-button{
    outline:none;
    position: absolute;
    right: 10px;
    bottom: 15.5rem;
    border-radius: 50%;
    height: 4rem;
    width: 4rem;
    overflow: hidden;
    padding: 1rem;
    background-color: #34bcd7;
    user-select: none;
    border: 0;
    cursor: pointer;
    display: none;
}

.call-button img{
    width: 120%;
    filter: invert(100%) sepia(0%) saturate(18%) hue-rotate(21deg) brightness(103%) contrast(101%);
    margin-left: -0.1rem;
    margin-top: -0.1rem;
}

    .call-banner {
        padding: 1rem 2rem;
        border-radius: 1rem;
        width: fit-content;
        gap: 1.5rem;
        background-color: #041f3c;
        border: 2px solid #17b2d1;
        color: #ededed;
        align-items: center;
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        bottom: -5rem; /* Inicialmente fuera de la vista */
        box-shadow: 1px 4px 7px 1px #00000052;
        font-family: 'Fira Sans';
        display: flex;
    }

  .call-time {
    margin: 0;
    font-size: 12px;
    color: #17b2d1;
  }
    
  .call-banner h1 {
      margin: 0;
      font-size: 1rem;
  }
  
  .call-banner button {
    margin: 0 auto;
    display: block;
    padding: 0.8rem 1.3rem;
    user-select: none;
    border: 0;
    border-radius: 2rem;
    background-color: #17b2d1;
    color: white;
    font-weight: bold;
    cursor: pointer;
  }

  .show-call-banner-animation {
    animation: key-ShowCallBanner 1s ease-out forwards;
}

@keyframes key-ShowCallBanner {
    0% { bottom: -5rem; }
    80% { bottom: 1.5rem; }
    100% { bottom: 2rem; }
}

.hide-call-banner-animation {
    animation: key-HiddenCallBanner 1s ease-out forwards;
}

  @keyframes key-HiddenCallBanner {
    0% { bottom: 2rem; }
    80% { bottom: 1.5rem; }
    100% { bottom: -5rem; }
}

#container {
    position: relative;
    font-family: 'Poppins SemiBold';
    top: -100px;
    text-align: center;
    font-family: Arial, sans-serif;
    color: #ffffff;
}

.titleArrow {
    font-family: 'Poppins SemiBold';
    color: #f5deb3;
    margin: 0;
    font-weight: bold;
    font-size: 0.8rem;
}

.button {
    display: inline-block;
    width: 50px;
    height: 50px;
    font-family: 'Poppins SemiBold';
    color: #f5deb3;
    font-size: 24px;
    font-weight: bold;
    line-height: 50px;
    text-align: center;
    border: 2px solid #000;
    border-radius: 4px;
    background-color: #2d8caf;
    padding: 5px;
    box-sizing: border-box;
    box-shadow: none;

}

.button p{
    margin: 0;
    background: #236a8f;
    width: 100%;
    height: 100%;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}

.arrow {
    width: 0;
    height: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 15px solid #e63946;
    margin: 8px auto 0;
    position: relative;
    box-sizing: border-box;
    filter: drop-shadow(0px 1px 2px #000);
}

.arrow::after {
    content: "";
    display: block;
    width: 0;
    height: 0;
    border-left: 8px solid transparent;
    border-right: 8px solid transparent;
    border-top: 8px solid #f1a208;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: -12px;
}