@import url('https://fonts.googleapis.com/css2?family=Poppins&display=swap');

*{
    font-family: "Poppins", serif;
    font-weight: 400;
    font-style: normal;
    margin: 0;
    color: white;
}

body{
    background-color: #0B0B0E;
}

header {
  height: 10vh;
  width: 100vw;
  display: flex;
  align-items: center;
  justify-content: center;
}

.logo {
  animation: slideToLeft 1.5s ease-in-out forwards;
}

main{
    width: 100vw;
    background-color:#0a0a0c;
    height: 90vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.pulsando {
  animation: pulseRed 1s infinite;
}

.shake {
  animation: shake 0.4s ease-in-out;
  overflow: hidden;
}

.header-code-box{
    width: 100%;
    max-width: 600px;
    display: flex;
    gap: 2px;
}

.playerinfo{
    background-color: #1a1a22;
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    z-index: 2; 
    -webkit-box-shadow: 0px -4px 0px 0px #3700FF;
    -moz-box-shadow: 0px -4px 0px 0px #3700FF;
    box-shadow: 0px -4px 0px 0px #3700FF;
}

.life-player{
    background-color: #16161b;
    display: flex;
    gap: 10px;
    padding: 10px 15px;
    -webkit-box-shadow: 0px -4px 0px 0px #FF0000;
    -moz-box-shadow: 0px -4px 0px 0px #FF0000;
    box-shadow: 0px -4px 0px 0px #FF0000;
    left: 0; 
    opacity: 0; 
    transform: translateX(-50px); 
    animation: slide-in 1s ease-out forwards;
}

.life-player :hover{
  transform: scale(1.2);
  transition: 1s;
  filter: drop-shadow( 0px 0px 20px rgb(255, 0, 0));
}

.life-player:nth-child(4) {
  animation-delay: 0.5s; 
}

.life-player:nth-child(3) {
  animation-delay: 1s; 
}

.life-player:nth-child(2) {
  animation-delay: 1.5s; 
}

.pulsando-heart {
  animation: pulseHeart 1s infinite;
}

.pulsando-soft {
  animation: pulseSoft 1s infinite;
}

.code-box{
    background-color: #1a1a22;
    width: 100%;
    max-width: 600px;
    height: 50vh;
    -webkit-box-shadow: 0px -1px 9px 0px rgba(0, 0, 0, 0.363);
    -moz-box-shadow: 0px -1px 9px 0px rgba(0, 0, 0, 0.363);
    box-shadow: 0px -1px 9px 0px rgba(0, 0, 0, 0.363);
    z-index: 4; 
    display: flex;
    flex-direction: column;
    justify-content: left;
}

.code-box p{
    padding: 10px 20px 0px;
    color: rgb(224, 231, 223);
}

.header-terminal{
  display: flex;
  padding: 10px 20px 0px;
  gap: 10px;
}

.header-terminal p {
  padding: 0;
  font-size: 12px;
  color: rgb(168, 166, 166);
}

.header-terminal p:hover{
  color: rgb(255, 255, 255);
  transform: scale(1.05);
}

@keyframes typing {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

@keyframes blink {
  50% {
    border-color: transparent;
  }
}

.selection-box{
    background-color: #1a1a22;
    width: 100%;
    max-width: 600px;
    display: flex;
    flex-direction: column;
}

.selection-info{
    display: flex;
    gap: 20px;
    padding: 15px 20px;
}

.input-container {
  display: flex;
  align-items: center;
  padding: 10px 15px;
  gap: 5px;
  border-radius: 20px;
}
  
.input-container .bash-text {
  font-size: .8rem;
  color: white;
}
  
.input-container .bash-text .usuario {
  color: #E879F9;
}
  
.input-container .bash-text .maquina {
  color: #2DD4BF;
}
  
.input-container .bash-text .caractere {
  color: #A78BFA;
}
  
.input-container input[type="text"].input {
  background-color: transparent;
  border: none;
  outline: none;
  color: white;
  width: 200px;
}
  
#listaSugestoes {
  list-style: none;
  margin-top: 80px;
  padding: 0;
  background-color: #0F172A;
  border: 1px solid #ccc;
  display: none;
  position: absolute;
  width: 200px;
  z-index: 10;
}
  
#listaSugestoes li {
  padding: 8px;
  cursor: pointer;
  color: white;
}
  
#listaSugestoes li:hover {
  background-color: #444;
}

.buttons{
  padding-left: 15px;
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.buttons button{
  background-color: rgb(20, 51, 228);
  border: none;
  padding: 5px 10px;
  cursor: pointer;
}

.buttons button:hover{
  transform: scale(1.05);
  transition: 0.9s;
  border-radius: 5px;
  background-color: rgb(25, 45, 160);
}


.modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.726);
}

.modal-center{
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-content {
  background-color: #1a1a22;
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  padding: 20px;
  width: 100%;
  max-width: 300px;
  text-align: center;
  border-radius: 8px 8px 0 0;
}

.cover-language,
.modal-language-info {
  flex: 1 1 100%;
}

.cover-language{
  width: 35%;
  aspect-ratio: 1/1;
  background-color: #ffffff00;
  background-position: center;
  background-size: contain;
  background-repeat: no-repeat;
  border: 4px solid #fafafa00;
}

.modal-language-info{
  display: flex;
  flex-direction: column;
  align-items: start;
}

.modal-content button {
  background: linear-gradient(90deg, #3230cc, #2668a5, #310adb);
  background-size: 300% 100%;
  animation: gradientMove 3s linear infinite;
  transition: transform 0.3s ease;
  color: white;
  padding: 10px 20px;
  margin-top: 15px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
  width: 100%;
}

.modal-content button:hover {
  background-color: #19269c;
}

.modal-points{
  background-color: gold;
  width: 100%;
  max-width: 300px;
  padding: 20px;
  background: linear-gradient(120deg, rgb(238, 203, 4) 30%, rgb(248, 232, 2) 38%, rgb(251, 255, 0) 
  40%,  rgb(238, 203, 4) 48%);
  box-shadow: 0px 0px 19px 0px rgba(251, 255, 6, 0.75);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: load89234 2s infinite;
  text-align: center;
}

.modal-points p {
  font-weight: bolder;
}

/*Modal de fim*/

.modal-fim {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow: auto;
  background-color: rgba(0, 0, 0, 0.726);
}

.modal-center{
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.modal-fim-content {
  background: linear-gradient(120deg, rgb(255, 255, 255) 30%, rgb(236, 236, 236) 38%, rgb(231, 231, 231) 
  40%,  rgb(255, 255, 255) 48%);
  box-shadow: 0px 0px 9px 0px rgba(255, 255, 255, 0.247);
  background-size: 200% 100%;
  background-position: 100% 0;
  animation: load89234 2s infinite;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80%;
  max-width: 400px;
  min-width: 300px;
  text-align: center;
}

.modal-fim-content p {
  margin-top: 15px;
  color: #0E22FF;
  font-size: clamp(10px, 3vw, 14px);
}

.modal-fim-content h2{
  color: #141414;
  font-size: clamp(20px, 3vw, 28px);
}

.profile-ranking-content{
  background-color: #20202C;
  width: 100%;
  max-width: 500px;
  min-width: 300px;
  margin-bottom: 5px;
  padding: 20px;
  display: flex;
  border-radius: 10px;
  margin-top: 15px;
  box-shadow: 0 0px 8px rgba(0, 0, 0, 0.699);
}

.color-profile{
  width: 1.1vw;
  min-width: 13px;
  background-color: #0E22FF;
}

.avatar-profile{
  width: 100%;
  max-width: 10px;
  min-width: 50px;
  background-color: #e9e9ee;
  aspect-ratio: 1/1;
  margin-left: 10px;
  border-radius: 50%;
  background-position: center;
  background-size: cover;
}

.profile-player-info{
  display: flex;
  flex-direction: column;
  width: 100%;
  margin-left: 10px;
}

.name-score{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.name-score p {
  color: #b1b1b1;
  margin: 0px;
  font-size: clamp(11px, 3vw, 10px);
}

.player-score{
  display: flex;
  flex-direction: row;
  justify-content: space-between;
}

.player-score h1 {
  font-size: clamp(10px, 6vw, 20px);
  
}

.player-score h1:first-child{
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-score h1:last-child{
  color: gold;
  text-shadow: 0px 0px 10px gold;
}

.modal-fim-content button{
  color: white;
  font-weight: bold;
  padding: 20px 0px;
  width: 92%;
  margin-top: 15px;
  margin-bottom: 15px;
  border-radius: 10px;
  cursor: pointer;
  border: none;
  background: linear-gradient(90deg, #3230cc, #2668a5, #310adb);
  background-size: 300% 100%;
  animation: gradientMove 3s linear infinite;
  transition: transform 0.3s ease;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}