.rwrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  box-sizing: border-box;
  padding: clamp(15px, 3vh, 50px);
  font-size: .75em;
}

.rwrapper h1 {
  margin: 0;
  padding: 0;
  font-size: 3em;
  text-align: center;
}

.rwrapper p {
  margin: 0;
  padding: 0;
  font-size: .65em;
  text-align: center;
}



#reset {
  margin: 20px;
  margin-top: auto;

  width: clamp(240px, 25%, 410px);
  padding: 1.5vw;
}



#readmore {
  display: block;
  text-align: center;
  width: 100%;
  color: var(--primary-color);
  font-size: .8em;
  text-decoration: underline;
}

#readmore:hover {
  cursor: pointer;
}



.gwrapper {
  width: 70%;
  display: grid;
  grid-template-columns: 50% 50%;
  position: relative;
  gap: 20px;
}

.roleresult-container {
  display: flex;
  align-items: center;
}

.roleresult {
  background-color: var(--primary-color);
  height: 1.6em;
  margin: 10px;
}


.role-container {
  position: relative;
}

.rolename {
  padding: calc(clamp(10px, 2.22vh - 2.02px, 50px)) 0px;
  line-height: 1em;
  font-size: 1em;
  cursor: pointer;
  border: 2px solid var(--primary-color);
  display: block;
  margin: 10px;
  /* width: fit-content; */
}

.role-description {
  background-color: var(--background-color);
  position: absolute;
  display: flex;
  padding: 0.5em;
  border-radius: 10px;
  box-shadow: 5px 5px 20px rgba(0, 0, 0, 0.6);
  left: -60px;
  right: -60px;
  z-index: 10;
  transition: opacity 0.3s ease-in-out;
  opacity: 0;
  align-items: center;
}

.role-description img {
  height: 6.5em;
  border-radius: 5px;
  -webkit-user-drag: none;
}

.role-description span {
  font-size: .6em;
  padding: 0 1.2em;
}




@media (max-width: 1440px) {
  .rwrapper {
    font-size: .8em;
  }


  .gwrapper {
    gap: 10px;
  }


  .role-description span {
    font-size: calc(.4em + .4vw);
  }
}




@media (max-width: 600px) {
  body {
    font-size: 1.5rem;
  }


  #reset {
    min-width: 50%;
    padding: 4vw;
    font-size: 6vw;
  }


  .rwrapper {
    padding-left: 0;
    padding-right: 0;
  }

  .gwrapper {
    position: relative;
    gap: 0px 15px;
    width: 90%;
  }

  .role-container {
    position: static;
  }

  .role-description {
    left: -10px;
    right: -10px;
  }

  .role-description span {
    padding: 0 15px;
    font-size: calc(.6em + .4vw);
  }

  .rwrapper p {
    font-size: .75em;
  }
}