* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@700&display=swap');

html, body {
  height: 100%;
  margin: 0;
}

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  transition: background-color 0.5s ease;
}

main {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.sunny {
  background-color: #ffeb3b;
}

.night {
  background-color: #0d1b2a;
  color: white;
}

#grille {
  border: 2px solid #B22222 ;
  width: 30vmin;
  height: 30vmin;
  margin: auto;
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  position: relative;
  z-index: 1;
}

#grille .case {
  border: 2px solid #B22222;
  display: grid;
  place-items: center;
  height: 10vmin;
  width: 10vmin;
  font-size: 6vmin;
  cursor: pointer;
  user-select: none;
}

h1 {
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  text-align: center;
  color: #B22222;
  font-weight: 700;
  font-size: 2.5rem;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.2);
}

p {
  padding: 10px;
  font-family: 'Lucida Sans', sans-serif;
  text-align: center;
  color: #B22222;
  font-size: 25px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

header {
  padding: 20px;
  background-color: transparent;
}

nav {
  padding: 20px;
  text-align: center;
}

#replay {
  display: block;
  margin: 15px auto 0;
  height: 45px;
  width: 160px;
  background-color: transparent;
  border: 2px solid #B22222;
  border-radius: 40px;
  font-size: 18px;
  color: #B22222;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
}

#replay:hover {
  background-color: #B22222;
  color: white;
}

footer {
  text-align: center;
  padding: 15px;
  font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
  color: #B22222;
  background-color: transparent;
  font-size: 0.9rem;
  margin-top: auto;
}

.emoji {
  position: fixed;
  top: -50px;
  font-size: 2rem;
  pointer-events: none;
  animation: fall linear forwards;
  z-index: 0;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}
