

*{
    font-family: 'Roboto', sans-serif;
}

form {
    border: 3px solid #f1f1f1;
  }
  
/* Full-width inputs */
input[type=text], input[type=password], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border-radius: 5px;
    border: 2px solid #ccc;
    box-sizing: border-box;
}

/* Set a style for login button */
#login-button{
    background-color:#4e2a84;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    border-radius: 5px;
}
/* Add a hover effect for buttons */
#login-button:hover {
    opacity: 0.8;
}

/* Set a style for create-account button */
#createaccount-button{
    background-color:#4e2a84;
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    cursor: pointer;
    width: 100%;
    white-space: nowrap;
    border-radius: 5px;
}
/* Add a hover effect for buttons */
#createaccount-button:hover {
    opacity: 0.8;
}

#login-header {
    width: 100%;
    grid-area: login-header;
    display: grid;
    grid-template-columns: .25fr .75fr;
    grid-template-rows: 1fr;
    grid-template-areas: "login-image login-header-text";
}
/* Center the avatar image inside this container */
.imgcontainer {
    grid-area: login-image;
    padding: 10px;
}
/* Avatar image */
img.avatar {
    width: 90%;
    border-radius: 4%;
}
#login-header-text {
    grid-area:login-header-text;
    height: fit-content;
    align-self: end;
    font-size: 40px;
    padding-left: 5px;
    color: rgb(78,42,132);
    
}


#login-body {
    grid-area: login-body;
}
/* Add padding to containers */
.container {
    padding-top: 8px;
    padding-left: 16px;
    padding-right: 16px;
    padding-bottom: 16px;
}
#login-body p{
    width: 100%;
    text-align: center;
    padding-top: 0px;
    color: #606060;
    font-size: 10pt;
}
#login-body p:hover{
    color: black;
    cursor: pointer;
    text-decoration: underline;
}


/* Change styles for span on extra small screens */
@media screen and (max-width: 300px) {
span.psw {
    display: block;
    float: none;
}
}

/* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}

/* Modal Content/Box */
form.modal-content {
    background-color: #fefefe;
    margin: 10vh auto; /* 30% from the top and centered */
    border: 1px solid #888;
    width: 400px;
    display: grid;
    grid-template-areas: 
        "login-header"
        "login-body";
        border-radius: 5px;
}

/* The Close Button */
#login-modal-close {
/* Position it in the top right corner outside of the modal */
    position: fixed;
    margin-top: -15px;
    margin-left: 375px;
    border-radius: 50%;
    line-height: 35px;
    width: 35px;
    height: 35px;
    text-align: center;
    background-color: #4e2a84;
    color: white;
    font-size: 35px;
    font-weight: bold;
}

/* Close button on hover */
#login-modal-close:hover, 
#login-modal-close:focus {
    color: red;
    cursor: pointer;
}

/* Add Zoom Animation */
.animate {
    -webkit-animation: animatezoom 0.6s;
    animation: animatezoom 0.6s
}

@-webkit-keyframes animatezoom {
    from {-webkit-transform: scale(0)}
    to {-webkit-transform: scale(1)}
}

@keyframes animatezoom {
    from {transform: scale(0)}
    to {transform: scale(1)}
}