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

* {
  margin: 0;
  padding: 0;
  box-sizing: inherit;
}

html {
  font-size: 62.5%;
  box-sizing: border-box;
}

body {
  font-family: sans-serif;
  color: rgb(0, 0, 0);
  line-height: 1.5;
  height: 100vh;
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background-image: url(images/bckg.jpg);
  background-position: cover;
  background-repeat: no-repeat;
  background-position: center;
}

.show-modal {
  font-size: 2rem;
  font-weight: 600;
  padding: 1.75rem 3.5rem;

  border: none;

  color: rgb(255, 255, 255);
  cursor: pointer;
}
p:hover {
  background-color: rgb(113, 171, 173, 0.2);
}
.show-modal.england {
  background-color: rgb(58, 75, 124);
  box-shadow: -4px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 10px;
}
.show-modal.england:hover {
  background-color: rgb(86, 105, 163);
}

.show-modal.germany {
  background-color: rgb(243, 210, 64);
  margin-left: -7px;
  box-shadow: -4px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 10px;
}
.show-modal.germany:hover {
  background-color: rgb(255, 230, 119);
}
.show-modal.usa {
  background-color: rgb(187, 53, 64);
  margin-left: -7px;
  box-shadow: -4px 2px 4px rgba(0, 0, 0, 0.3);
  border-bottom-left-radius: 10px;
  border-bottom-right-radius: 10px;
}
.show-modal.usa:hover {
  background-color: rgb(248, 83, 96);
}

.close-modal,
.close-modal2,
.close-modal3 {
  position: absolute;
  top: 0;
  right: 1rem;
  font-size: 5rem;
  color: rgb(0, 0, 0);
  text-shadow: 1px 1px 3px white;
  background: none;
  cursor: pointer;
  border: none;
}
.close-modal:hover,
.close-modal2:hover,
.close-modal3:hover {
  color: rgb(160, 36, 36);
}
h1 {
  font-size: 6rem;
  margin-bottom: 2rem;
  color: black;
  font-family: 'Patrick Hand SC', cursive;
}
strong {
  font-size: 2.5rem;
  color: black;
  font-family: 'Patrick Hand SC', cursive;
}

p {
  font-size: 1.8rem;
}

/* -------------------------- */
/* CLASSES TO MAKE MODAL WORK */
.hidden {
  display: none;
}

.modal {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 70%;

  background-color: rgb(255, 255, 255);
  padding: 6rem;

  border-bottom-right-radius: 130px;

  box-shadow: 0 3rem 5rem rgba(0, 0, 0, 0.3);
  z-index: 10;
}

.modal.england img,
.modal.germany img,
.modal.usa img {
  position: absolute;
  top: 80%;
  left: 80%;
  width: 200px;
  border: 5px solid white;
  border-radius: 6px;
  box-shadow: -3px -3px 5px rgba(0, 0, 0, 0.2);
}

.overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(0.5px);
  z-index: 5;
}
