/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 2; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgba(0,0,0,0.9); /* Black w/ opacity */
    padding-top: 60px;
}

/* Modal Content/Box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */
    border: 4px solid rgba(var(--primary_colour), 1);
    border-radius: 1rem;
    width: 400px; /* This figure will get adjusted with @media statements, below. */
}

/* Add Zoom Animation */
.animate {
    animation: animatezoom 0.6s
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}

/* The Close Button (x) */
.close {
    position: absolute;
    height: 1rem;
    line-height: 1rem;
    right: 2rem;
    color: rgba(var(--primary_colour), 1);;
    font-size: 3rem;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: rgba(var(--secondary_colour_dark), 1);
    cursor: pointer;
}

/* Center the image and position the close button */
.img_container {
    text-align: center;
    margin: 24px 0 12px 0;
    position: relative;
}

.avatar {max-height: 6rem;}

.details_container {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 1rem;
}


/* Full-width input fields */
.details_container input[type=text], input[type=password] {
    padding: 0.5rem 0.7rem;
    border-radius: 1rem;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid rgba(var(--primary_colour), 1);
    color: rgba(var(--primary_colour), 1);
    box-sizing: border-box;
    outline: none;
}

input[type=checkbox]
{
    outline: 1px solid rgba(var(--primary_colour), 1);
}

.input_area {
    font-size: 12px;
    font-style: italic;
    font-weight: normal;
    color: rgba(var(--primary_colour), 1);
    cursor: pointer;
}

.admin_name_logo{
    content: url(/images/assoc/member.png);
    padding: 16px 10px 0 0;
}

#admin_name {
    background: rgba(var(--primary_colour_light), 1);
    margin-right: 24px;
    padding: 8px 0 6px 10px;
}

.psw_logo{
    content: url(/images/assoc/padlock.png);
    padding: 16px 10px 0 0;
}

#psw, #repeat_psw {
    background: rgba(var(--primary_colour_light), 1);
    margin-right: 24px;
    padding: 8px 0 6px 10px;
}

input:focus::placeholder {
    color: transparent;
}

::placeholder {
    color: rgba(var(--primary_colour), 1);
    font-style: italic;
}

input[type=text]:focus, input[type=password]:focus {
    border: 1px solid rgba(var(--secondary_colour_dark), 1);
}

/* Set a style for all buttons */
.submit_button {
    background-color: rgba(var(--primary_colour), 1);
    color: rgba(var(--secondary_colour), 1);
    border-radius: 1rem;
    padding: 0.5rem 0;
    margin: 2rem 0;
    border: none;
    width: 15rem;
    cursor:  pointer;
    font-weight: bold;
    text-align: center;
    text-transform: uppercase;
    transition: all 0.2s ease 0.2s;
}

.submit_button:hover {
    background-color: rgba(var(--secondary_colour), 1);
    color: rgba(var(--primary_colour), 1);
    transition: all 0.2s ease 0.2s;
}

/* Changing the text box background colour from the default light-blue to it's original colour before it got the focus */
input:-webkit-autofill,
input:-webkit-autofill:active {
    transition: background-color 5000s ease-in-out 0s;
    -webkit-text-fill-color: forestgreen;
}

.forgotten {
    margin-top: 1rem;
    padding: 0 1rem 1rem 0;
}

.forgotten a{
    color: rgba(var(--primary_colour), 1);
    font-size: 1rem;
    font-style: italic;
    font-weight: normal;
}

.forgotten a:hover{
    color: rgba(var(--secondary_colour_dark), 1);
}

.forgotten_input{
    background: rgba(var(--primary_colour_light), 1);
}

.description{
    color: rgba(var(--primary_colour), 1);
    font-size: 0.7rem;
    font-weight: bold;
    font-style: italic;
}

#login_warning{
    display: none;
    background-color: rgba(var(--warning), 1);
    color: rgba(var(--warning_dark), 1);
    border: 1px solid rgba(var(--warning_dark), 1);
    border-radius: 1rem;
    padding: 0.5rem;
    margin: 0.5rem 0;
    width: 80%;
    font-weight: normal;
    text-align: center;
    transition: all 0.2s ease 0.2s;
}