/* Summary of Classes:
.kpt-login-register-container - Container for the button, popup, or welcome message.
.kpt-login-register-btn - Styles the login/register button.
.kpt-popup-overlay - Background overlay for the popup.
.kpt-popup-content - Content container for the popup.
.kpt-close-btn - Close button for the popup.
.kpt-welcome-text - Styles the welcome message for logged-in users.
*/

/* General styling */
.kpt-login-register-container {
    text-align: center;
    margin-top: 20px;
}

.kpt-login-register-btn {
    width: 100vw;
    height: 10vh;
    background-color: var(--colour04, #ffa500);
    color: var(--colour01, #FFFFFF);
    font-size: 1.5rem;
    border: none;
    cursor: pointer;
    display: inline-block;
    margin: 20px 0;
}

.kpt-login-register-btn:hover {
    background-color: #ff8c00;
}

/* Popup styling */
.kpt-popup-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow: auto; /* Allows scrolling for content overflow */
}

.kpt-popup-content {
    position: absolute;
    top: 15vh; /* Position content 15vh from the top */
    left: 50%;
    transform: translateX(-50%);
    background-color: var(--colour01, #FFFFFF);
    padding: 20px;
    width: 80%;
    max-width: 500px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    overflow: auto; /* Enables internal scrolling for content overflow */
    max-height: calc(100vh - 30vh); /* Ensures the popup content does not exceed screen height */
}

.kpt-close-btn {
    background: none;
    border: none;
    color: var(--colour02, #000000);
    font-size: 1.5rem;
    font-weight: bold;
    float: right;
    cursor: pointer;
}

/* Welcome message styling */
.kpt-welcome-text {
    font-size: 1.5rem;
    color: var(--colour02, #000000);
    margin: 20px auto;
    padding: 10px;
    background-color: var(--colour01, #FFFFFF);
    display: inline-block;
    text-align: center;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
}
