
* { 
  margin: 0;
}

html {
  font-family: "Poppins";
}

#winner {
    color: white;
    font-size: 250px;
    z-index: 3;
    visibility: hidden;
    opacity: 0;
    position: fixed;
    transition: opacity 0.4s ease, visibility 0.4s ease;
    will-change: opacity;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    display: block;
    background-color: rgba(0,0,0,0.9);
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}
 
#winner.open {
  visibility: initial; 
  opacity: 1;
  transition: opacity 0.5s ease 0.5s, visibility 0.5s ease 0.5s;
}

#winner::before {
    content: 'Matchens spelare är nummer:';
    font-size: 16px;
    position: absolute;
    display: block;
    margin-top: -300px;
    font-family: 'Poppins';
}

#close {
  height: 25px;
  visibility: hidden;
  opacity: 0; 
  position: fixed;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: opacity;
  top: 40px;
  right: 40px;
  z-index: 4;
  cursor: pointer;
}

#close.open {
  visibility: initial; 
  opacity: 1;
  transition: opacity 0.5s ease 0.5s, visibility 0.5s ease 0.5s;
}

#world {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.95);
  position: fixed;
  z-index: 2;
  visibility: hidden;
  opacity: 0;
  transition: opacity 0.5s ease, visibility 0.5s ease;
  will-change: opacity, visibility;
}

#world.open {
  visibility: initial; 
  opacity: 1;
  transition: opacity 1.5s ease, visibility 0.5s ease;
}

.background {
  width: 100%;
  margin-bottom: 1000px;
 
}

nav {
  width: 100%;
  height: 100px;
}

.navWrapper {
  width: 85%;
  margin: auto;
  padding-top: 38px;
}

.navWrapper a {
  text-decoration: none;
  color: white;
  font-size: 24px;
  font-weight: 900;
}

header {
  width: 100%;
  display: grid;
  justify-content: center;
  align-items: center;
}

.namepicker {
  padding: 50px 35px 50px 35px;
  background-color: white;
  border-radius: 10px;
  display: block;
  text-align: center;
}

.namepicker h1 {
    font-size: 30px;
    font-family: 'Arvo';
    margin-bottom: 15px;
    line-height: 36px;
}

.namepicker p {
  color: #585858;
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 15px;
}

.namepicker input {
  width: 100%;
  color: #898989;
  font-size: 16px;
  font-weight: normal;
  background-color: white;
  border-radius: 5px;
  padding: 20px;
  border: 1px solid #efefef;
  margin-bottom: 25px;
  text-align: center;
}

.namepicker input::placeholder {
  color: #D9D9D9;
}

.namepicker input:focus {
  outline: none;
}

.namepicker h2 {
  color: #6E6E6E;
  font-size: 48px;
  font-weight: medium;
  letter-spacing: 1px;
  text-align: center;
  margin-bottom: 55px;
}

.namepicker a {
    color: black;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: 1px;
    text-decoration: none;
    padding: 20px 20px;
    background: #ffcc00;
    border-radius: 1000px;
    display: block;
    margin: auto;
    margin-top: 20px;
    width: 100%;
    border-bottom: 5px solid #a48819;
}

.description {
    font-size: 14px !important;
    font-weight: normal !important;
}

.winner-is {
    font-size: 14px;
    display: grid;
    margin-bottom: -60px;
    margin-top: 60px;
}

@keyframes fadeIn {
  0% {
    transform: scale(0.5);
    transform: skewY(25deg);
    opacity: 0;
    box-shadow: none;
  }
  100% {
    transform: scale(1);
    transform: skewY(0deg);
    opacity: 1;
    box-shadow: 0px 0px 40px rgba(0, 0, 0, 0.15);
  }
}