.register-form {
    max-width: 500px;
    margin: 20px auto;
    padding: 2em;
    background: #c0e7bc;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    box-sizing: border-box; /* Prevents form from expanding past screen width */
}
.form-group {
    margin-bottom: 1.5em;
}

.form-group label {
    display: block;
    font-weight: bold;
    margin-bottom: 0.5em;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 0.6em;
    border: 1px solid #ccc;
    border-radius: 5px;
}

.form-error {
    color: #c00;
    font-size: 0.9em;
    margin-top: 0.3em;
}

.button-container {
    display: flex; /* Enable Flexbox */
    justify-content: center; /* Center horizontally */
    align-items: center; /* Center vertically (if needed) */
   
}
.registerbutton {
    display: flex; /* Allows padding and margin to work */
    padding: 12px 24px; /* Vertical and horizontal padding */
    font-size: 16px; /* Font size */
    color: rgb(0, 0, 0); /* Text color */
    background-color: #8be69a; /* Button background color */
    border: none; /* No border */
    border-radius: 5px; /* Rounded corners */
    text-align: center; /* Center text */
    text-decoration: none; /* Remove underline from links */
    transition: background-color 0.3s, transform 0.2s; /* Smooth transition for hover effects */
    cursor: pointer;
    border: 1px solid green
}
.registerbutton:hover {
    background-color: #77ca68; /* Darker shade on hover */
   
}

.text-center {
    display: flex;
    justify-content: space-between; 
    align-items: center;
    gap: 15px;
    
    width: 60%;
    padding: 1px 5px;
    margin: 0 auto;
    box-sizing: border-box;
    
    color: rgb(76, 21, 80);
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, sans-serif;
}

/* Force the spans to stack on the left */
.text-center span {
   
    display:inline;
    font-size: 32px;
    line-height: 1.2;
    white-space: nowrap;
}

.avatar {
    grid-column: 2;
    grid-row: 1 / span 4; /* Spans across all text rows to stay centered vertically on the right */
    width: 120px;
    height: auto;
    border-radius: 0; /* Square as requested */
    justify-self: end; /* Pins to the far right */
    display: flex;
}

.subscription-link {
    margin-top: 2em;
}

.subscription-link .btn {
    padding: 10px 18px;
    font-size: 1rem;
    background-color: #ffffff;
    border: 2px solid #6abf69;
    color: #317b3d;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease;
}

.subscription-link .btn:hover {
    background-color: #bef2bc;
}

#overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); 
    display: none; 
}

#verify-popup {
    display: none;
    position: absolute;
    min-width: 320px;
    max-width: 90%;
    padding: 30px 25px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  
    flex-direction: column;
    justify-content: center;
    align-items: center;

    background: #ffffff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
    border: 1px solid #e3e3e3;
    z-index: 999;
}

#verify-popup p {
    color: #343433;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-weight: 500;
    font-size: 18px;
    text-align: center;
    margin: 1 1 6px;
    line-height: .60;
}

#verify-popup p:last-child {
    margin-bottom: 0;
}

#overlay {
    position: fixed; 
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.4);
    display: none;
    z-index: 888;
}

@media (max-width: 600px) {
    .text-center {
        /* Adjust column for narrower screens */
        grid-template-columns: 1fr 80px; 
        padding: 10px 15px;
    }

    .text-center span {
        font-size: 22px; /* Prevent text from cutting off */
    }

    .avatar {
        width: 80px; /* Smaller for mobile to save space */
        position: static;
    }

    .register-form {
        width: 95%;
        padding: 1.5em;
        margin: 10px auto;
    }
}

