*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    user-select: none;
    -webkit-user-drag: none;
    -moz-window-dragging: none;
}
body{
    background-color: rgb(237, 235, 235);
    font-family:"Press Start 2P", system-ui;
    padding-top: 80px; 
    text-decoration: none;
   
    
}

#container{
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    width: 100%;
    max-width: 40rem;
    margin: auto;
    padding: 0 1rem;
    filter: grayscale(100%);
  }

  p{
     line-height: 20px;
  }

a {
  text-decoration: none;
  color: #c02020;
  font: inherit;
  display: inline-block;
  cursor: pointer;
  animation: final 2s ease-in-out infinite;
  transform-origin: center;
}

@keyframes final {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.02);
  }
  100%{    transform: scale(1);
}
}

#welcome p {
    text-align: start;
}

#welcome h1{
    margin-bottom: 100px;
    font-size: 40px;
    margin-top: 20px;
}

#welcome{
  width: 100vw;
  height: 70vh;

}

.flag {
  cursor: pointer;
  user-select: none;
  display: inline-block;
  transition: transform 0.2s ease;
}

.flag:hover {
  transform: scale(1.1);
}






#manual ul {
    width: 100%;
    list-style: none;
    padding-left: 0;
    text-align: left; 
    background-color: gray;
    border-radius: 20px;
    padding: 1rem;
}

.topic {
    width: 100%;
    max-width: 35rem;
    margin: 2rem auto; 
    border-radius: 20px;
    padding: 1.5rem;
    margin-bottom: 200px;
}

.text {
    width: 100%;
    padding-left: 0;
    text-align: left; 
    background-color: gray;
    border-radius: 20px;
    padding: 1rem;
    z-index: 2;
}

#topMenu {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #111;
  padding: 0.5rem 1rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  z-index: 9999;
  box-shadow: 0 2px 10px rgba(0,0,0,0.5);
}

#topMenu button {
  background-color: #5c5b5b;
  color: white;
  border: none;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s;
  flex: 1 1 auto;
  max-width: 150px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#topMenu button:hover {
  background-color: #c02020;
}

#language {
    width: 100vw;
    height: 100vh;
    background-color: #272525;
    position: fixed; /* para cobrir a tela toda e fixar na viewport */
    top: 0;
    left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
}
#bandeiras{
    display: flex;
    margin-top: 20px;
    margin-bottom: 20px;
    gap: 30px;
    margin-bottom: 50px;
    margin-top: 50px;
}

#brasil{
    width: 100px;
    height: 100px;
    background-image: url(./assets/brazil.png);
    background-size: cover;
    cursor: pointer;
}
#spain{
    width: 100px;
    height: 100px;
    background-image: url(./assets/spain.png);
    background-size: cover;
    cursor: pointer;
}
#usa{
    width: 100px;
    height: 100px;
    background-image: url(./assets/usa.png);
    background-size: cover;
    cursor: pointer;
}


#finalSection h1{
    margin-bottom: 100px;
}

a:hover{
    color: white;
    
}




#soundsSection img{
  margin-left: -30px;
  transform: scale(1.10);
  margin-top: 28px;
  z-index:1;
 
 
}



#soundText{
  position: relative;
  z-index: 5;
  margin-top: 0px;
}

#status img{
  margin-left: 20px;
  margin-top: 15px;

}

#searchSection img{
  margin-top: 15px;
  margin-left: 15px;
}

img{z-index: 1;}

#ligando img{
   margin-top: 5px;
  margin-left: 15px;
}

header, #container, #instructions {
  display: none;
}
/* === MEDIA QUERIES === */

@media (max-width: 600px) {
  #welcome {
    height: auto;
    padding: 1rem;
  }

  .topic {
    padding: 1rem;
    margin: 1rem auto;
  }

  #topMenu button {
    max-width: 100px;
    padding: 0.3rem 0.6rem;
    font-size: 0.7rem;
  }
}

@media (max-width: 400px) {
  #topMenu button {
    max-width: 80px;
    padding: 0.25rem 0.5rem;
    font-size: 0.6rem;
  }

  #container {
    padding: 0 0.5rem;
  }
}
