@import 'template.scss';

.container {
  position: relative;
  display: inline-block;
}

.popup {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1;
  background-color: $white;
  box-shadow: 0 0 21px 0 rgba(0,0,0,0.4);
  border-radius: 7px;
  min-width: 200px;
  overflow: auto;
}

.popupTitle {
  font-weight: bold;
  font-size: 16px;
  text-align: center;
  padding: 10px 0;
  border-bottom: 1px solid $border-color-light;
}

.link {
  color: inherit;
  text-decoration: none;
  padding: 5px 15px;
  display: block;
  font-size: 16px;
  transition: background-color 0.2s ease-in;
}

.link:hover {
  background-color: $border-color-light;
}

.closeButton {
  position: absolute;
  top: 10px;
  right: 5px;
  border: none;
  background: $white;
  color: inherit;
  cursor: pointer;
  font-size: 16px;
  font-weight: bold;
  line-height: 1;
  padding: 4px;
  width: 30px;
  height: 30px;
  border-radius: 15px;
}

.closeButton:hover,
.closeButton:focus-visible {
  background-color: $light-grey;
  outline: none;
}