* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    font-family: sans-serif;
    color:#fff;
}

html, body {
    height: 100%;
    margin: 0;
    padding: 0;
}

body {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #ecf0f1; /* Add background color for better visibility */
    overflow: hidden; /* Prevent scrolling */
}

.container {
    width: 40%;
    max-width: 650px;
    background: #2C3E50;
    padding: 20px;
    margin: 20px;
    border-radius: 10px;
    box-shadow: inset -2px 2px 2px white;
    overflow-y: auto;
    height:80%;
}

.g-recaptcha{
    margin-top: 20px;
}

.avatar-image {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
    box-sizing: border-box;
    transition: transform 0.2s ease;
}

.form-title {
    font-size: 26px;
    font-weight: 600;
    text-align: center;
    padding-bottom: 6px;
    color: white;
    text-shadow: 2px 2px 2px black;
    border-bottom: solid 1px white;
}

main-user-info {
  display: flex;
  flex-direction: column;
  padding: 20px 0;
  width: 400px;
  margin: 0 auto;
}

.user-input-box {
    width: 100%;
    margin-bottom: 20px;
}

.user-input-box label {
    width: 100%;
    color: white;
    font-size: 20px;
    font-weight: 400;
    margin: 5px 0;
}

.user-input-box input {
    height: 40px;
    width: 100%;
    border-radius: 7px;
    outline: none;
    border: 1px solid grey;
    padding: 0 10px;
    color:#000;
}

.form-submit-btn {
    margin: 20px 0;
}

.form-submit-btn input {
    display: block;
    width: 100%;
    margin-top: 10px;
    font-size: 20px;
    padding: 10px;
    border: none;
    border-radius: 3px;
    color: rgb(209, 209, 209);
    background: rgba(63, 114, 76, 0.7);
}

.form-submit-btn input:hover {
    background: rgba(56, 204, 93, 0.7);
    color: rgb(255, 255, 255);
}

.links-container {
    display: flex;
    justify-content: space-between;
    padding: 1rem 0;
}

.links-container a {
    color: #fff;
    text-decoration: none;
}

.home {
    color: #ffff;
    text-decoration: none;
}

@media (max-width: 600px) {
    .container {
        min-width: 280px;
        padding: 20px;
        margin: 10px;
    }

    .main-user-info {
        padding: 20px 0;
    }

    .user-input-box {
        width: 100%;
    }
}

.password-requirements {
    display: block;
    margin-top: 5px;
    font-size: 0.8em;
    color: #6c757d;
}

.error {
    color: red;
    font-size: 0.9em;
    display: block;
    margin-top: 5px;
}

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.modal-content {
    background-color: #505478;
    margin: 15% auto;
    border: 4px solid orange;
    width: 90%;
    max-width: 440px;
    padding: 20px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2);
    border-radius: 10px;
    max-height: 40vh;
    overflow-y: auto;
}

.close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.avatars-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(50px, 1fr));
    grid-gap: 10px;
    justify-content: center;
    padding: 10px;
}

.avatar-option {
    width: 50px;
    height: 50px;
}

.avatar-option input[type="radio"] {
    display: none;
}

.avatar-option .avatar-image {
    width: 100%;
    height: 100%;
    cursor: pointer;
    border: 1px solid transparent;
    box-sizing: border-box;
    transition: transform 0.2s ease, border-color 0.2s ease;
}

.avatar-option input[type="radio"]:checked + .avatar-image {
    border-color: #f0ad4e;
}

.avatar-option:hover .avatar-image {
    transform: scale(1.1);
    border-color: #f0ad4e;
}

#select-avatar-trigger {
    /*padding: 25px;*/
    color: orange;
    cursor: pointer;
}

.avatar-display {
    width: 50px;
    height: 50px;
    background-size: cover;
    background-position: center;
    border: 1px solid #ddd;
    box-sizing: border-box;
    margin: 0 auto;
    margin-top: 0px;
    /*margin-top: 25px;*/
}

.avatar-image.selected {
    border: 2px solid #f0ad4e;
}

.alert {
    padding: 20px;
    margin-bottom: 15px;
    border: 1px solid transparent;
    border-radius: 4px;
    text-align: center;
}

.alert-success {
    color: #3c763d;
    background-color: #dff0d8;
    border-color: #d6e9c6;
}