/* Modal window */
.modal-window {
    /* Existing styles */
    position: fixed;
    background-color: rgba(255, 255, 255, 0.25);
    top: 0;
    bottom: 0;
    left: 0;
    z-index: 999;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: all 0.3s;
    /* New styles */
    width: 60%;
    /* Adjust width for desktop */
    transform: translateX(-100%);
    /* Slide out from left */
}

/* Modal window on target */
.modal-window:target {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
    /* Slide in from left */
}

/* Mobile styles */
@media (max-width: 768px) {
    .modal-window {
        width: 100%;
        /* Full width on mobile */
    }
}

/* Modal content styles */
.modal-window>div {
    /* Existing styles */
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    padding: 2em;
    left: 50%;
    overflow: auto;
    background: white;
    color: black;
    /* New styles */
    width: 100%;
    /* Full width */
    height: 100%;
    /* Full height */
    display: flex;

    flex-direction: column;
    align-items: center;
    /*
    justify-content: center;
    */
}

.modal-close {
    color: #aaa;
    line-height: 50px;
    font-size: 80%;
    right: 0;
    text-align: center;
    top: 0;
    width: 200px;
    border: 1px solid lightgray;
    text-decoration: none;
}


.r-side {
   /* border: 1px solid; */
  position: sticky;
  top: 20px;
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.r-side.is-active {
  transform: translateX(-12px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.hidden {
  display: none;
}
