
/* use absolute (ish?) sizing so that the magnets "growing" doesnt look so weird */

* {
  --magnet-width: 25px;
  --magnet-padding: 0px;
}

#alphabet-defs {
  display: none;
}

.magnet {
    cursor: grab;
    width: var(--magnet-width);
    padding: var(--magnet-padding);
}

#alphabet {
  display: flex;
  flex-wrap: wrap;
  width: calc(var(--magnet-width) * 26);
}

.magnet.cursordown {
  cursor: grabbing;
  transition: none; /* Disable transitions while dragging */
}

#closePopup {
  margin: 1em;
  font-size: 0.9em; 
  padding: 0.5% 1.5%;
  border-radius: 3px;
  font-family: serif;
  border-width: 1px;
}

#closePopup:active {
  background-color: grey;
}

.popup-content p {
  margin: 0;
  margin-bottom: 1%;
  
}

.popup-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.274);
    z-index: 1;
  }

  .popup-content {
    position: fixed;
    width: 50%;
    left: 25%;
    top: 12.5%;
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    border-width: 10px;
    border: solid 1.5px black;
    text-align: center;
  }

  .popup-content ul {
    text-align: left;
    margin: auto;
    width: fit-content;
    display: block;
  }