/* draggable-modal.css */

/* The Modal Background Overlay */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 2000; /* Sit on top (higher than other elements like chat) */
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
}

/* Modal Content (the draggable box) */
.modal-content {
    background-color: #819067; /* Pure white background */
    padding-top: 20px;
    border-radius: 15px;
    width: auto;
    max-width: 500px;
    min-height: 150px; /* Ensure content box has a minimum height */

    /* Positioning for Centering and Draggability */
    position: fixed; /* Crucial for dragging relative to the viewport */
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%); /* Centers the element using transform */

    cursor: grab; /* Changes cursor to indicate it's draggable */
}

/* The Close Button */
.close-button {
    color: #aaa;
    padding-right: 20px;
    padding-bottom: 10px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.close-button:hover,
.close-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.open-button {
    color: #aaa;
    margin-top: -2px;
    padding-right: 20px;
    padding-bottom: 10px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.open-button:hover,
.open-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

.journal-button {
    color: #aaa;
    margin-top: -2px;
    padding-right: 20px;
    padding-bottom: 10px;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 20px;
}

.journal-button:hover,
.journal-button:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}

/* Specific styling for the Tumblr iframe INSIDE the modal */
.modal-content .tumblr-blog-modal-iframe {
    width: 100%; /* Fill the width of its modal-content parent */
    height: 400px; /* Example fixed height for the widget */
    max-height: 50vh; /* Make its max height 50% of viewport */
    background-color: transparent; /* Let Commoninja handle its own background */
    box-shadow: none !important;
}

.modal-content .opgg-profile-iframe {
    width: 100%;
    height: 500px; /* Adjust height as needed */
    border: none;
    background-color: transparent;
}

.modal-content .journal-modal-iframe {
    width: 100%;
    height: 500px; /* Adjust height as needed */
    border: none;
    background-color: transparent;
}

.close-button:focus,
.open-button:focus {
    outline: 2px solid #0A400C;
    outline-offset: 2px;
}

@media (max-width: 600px) {
  .modal-content {
    max-width: 95vw;
    min-width: 0;
    max-height: 90vh;
    overflow: auto;
  }
}