html {
  font-size: 10px;
  /* background: url(pictures/1.png) bottom center; */
  background-size: cover;
}

body,
html {
  margin: 0;
  padding: 0;
  font-family: sans-serif;
  min-height: 100vh;
}

.aref-ruqaa-regular {
  font-family: "Aref Ruqaa", serif;
  font-weight: 400;
  font-style: normal;
}

.aref-ruqaa-bold {
  font-family: "Aref Ruqaa", serif;
  font-weight: 700;
  font-style: normal;
}

.yusei-magic-regular {
  font-family: "Yusei Magic", serif;
  font-weight: 400;
  font-style: normal;
}

.ui-container{
  display: flex;
  flex-direction: column;
}

button {
  font-family: "Yusei Magic", serif;
  font-weight: 400;
  font-style: normal;
  border-radius: 200px;
  width: 150px;
  padding-bottom: 10px;
  margin-top: 10px ;
  margin-left: 10px;
  margin-right: 10px;
  margin-bottom: 10px;
  font-size: 2rem; /* Øg skriftstørrelsen */
  background-color: #000000; /* farve for en bedre visuel effekt */
  color: white;
}

button:hover {
  color: black;
  background-color: white;
}

@keyframes moveDown {
  0% {
    transform: translateY(-100%); /* Start above the container */
  }
  100% {
    transform: translateY(80vh); /* Ensure it doesn't go past the bottom */
  }
}

p{
  margin-left: 20px;
}

h1 {
  font-family: "Aref Ruqaa", serif;
  color: rgb(0, 0, 0);
  font-size: 20pt;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-left: 30px;
}

h2 {
  font-family: "Aref Ruqaa", serif;
  color: rgb(10, 48, 82);
  font-size: 20pt;
  display: flex;
  justify-content: center;
  margin-top: 10px;
  margin-left: 30px;
}


.playing-area {
  border-radius: 10px;
  position: relative; /* Allows child elements to be positioned absolutely */
  width: 80%; /* Takes full width of its container */
  height: 500px; /* Set a fixed height for the playing area */
  overflow: hidden; /* Prevents keys from overflowing outside the container */
  border: 0.2rem solid aliceblue;
  background: rgba(255, 255, 255, 0.4); /* Semi-transparent background */
  margin-top: 20px; /* Adds some space above the playing area */
  margin: auto; /* responsiv efter størrelse på vindue */
}


.appearing-keys {
  position: relative; /* Ensures keys are positioned relative to the playing area */
  width: 100%; /* Takes full width of the playing area */
  height: 100%; /* Takes full height of the playing area */
}





.animated-key {
  border: 0.1rem solid;
  position: absolute;
  font-size: 2rem;
  color: white;
  background-color:rgba(255, 0, 0, 0.4);
  padding: 10px;
  border-radius: 200px;
  animation: moveDown 2s linear forwards;
  text-align: center;
  width: 50px;
}







.player-name input {
  font-size: 1.6rem;
  padding: 0.5rem;
  margin: 1rem;
  border-radius: 5px;
  border: 2px solid #277b7e;
  background: rgba(255, 255, 255, 0.8);
  width: 200px;
}






.start-screen {
  text-align: center;
  padding: 2rem;
  background: rgba(255, 255, 255, 0.8);
  border-radius: 10px;
  width: 80%;
  max-width: 500px;
  margin: 100px auto;
}

.start-screen h1 {
  font-size: 4rem;
  margin-bottom: 2rem;
}








.time-indicator {
  position: absolute;
  top: -12px; /* Offset for at ramme omkring tasten */
  left: -0px;
  width: 70px; /* Større end .animated-key's 50px + padding */
  height: 70px; /* Justeret til at passe med padding */
  /* border: 1rem solid #fcf828;  */
  border: solid; 
  border-radius: 40%;
  box-sizing: border-box;
  pointer-events: none; /* Forhindrer interaktion med rammen */
}

@keyframes shrinkBorder {
  from {
    border-width: 0.1rem;
    transform: scale(2);
    border-color: rgba(255, 255, 255, 0);
  }
  to {
    border-width: 2.5rem;
    transform: scale(0.1);
    border-color: yellow;
  }
}







h3 {
  font-size: 50px;
}

.playing {
  transform: scale(0.5);
  border-color: #277b7e;
  box-shadow: 0 0 1rem #000000;
}

.kbd-keys {
  display: flex;
  justify-content: center;
  margin: auto;
  min-height: 10vh;
  margin-right: 2rem;
}

.kbd-key {
  color: rgb(255, 255, 255);
  border: .2rem solid aliceblue;
  border-radius: 200px;
  margin: 0.5rem;
  font-size: 1.5rem;
  padding: 1rem .5rem;
  transition: all .30s ease;
  width: 10rem;
  text-align: center;
  background: rgba(255, 0, 0, 0.4);
  text-shadow: 0 0 .5rem rgb(0, 0, 0);
}

kbd {
  font-family: "Yusei Magic", serif;
  font-weight: 400;
  font-style: normal;
  display: block;
  font-size: 3rem;
}

.kbd-soundname {
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .1rem;
  color: #000000;
}

.arrows {
  display: flex;
  justify-content: center;
  margin: auto;
  min-height: 10vh;
  margin-right: 2rem;
}

arrow {
  color: aliceblue;
  border: .2rem solid aliceblue;
  border-radius: 20px;
  margin: 0.5rem;
  font-size: 1.5rem;
  padding: 1rem .5rem;
  transition: all .30s ease;
  width: 10rem;
  text-align: center;
  background: rgba(0, 0, 0, 0.4);
  text-shadow: 0 0 .5rem black;
}

.start-screen {
    text-align: center;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 10px;
    width: 80%;
    max-width: 500px;
    margin: 100px auto;
}

.start-screen h1 {
    font-size: 4rem;
    margin-bottom: 2rem;
}

