:root {
    --main-grey-color: #9E9E9E;
    --bg-grey-color: #EBEBEB;
    --accent-grey-color: #737373;
    --btn-grey-color: #A6A6A6;
    --check-green-color: #06BD60;
}

body {
    font-family: 'Inter', sans-serif;
}

.uppercase {
    text-transform: uppercase;
}

#invoice-container {
    width: 100%;
    height: 100vh;
    display: flex;
    background-color: white;
}

#invoice-form {
    height: 100%;
    width: 100%;
    text-align: center;
    padding: 5%;
    font-weight: bold;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

#invoice-form h1 {
    color: black;
    font-weight: bolder;
}


#invoice-form input {
    border: none;
    border-bottom: 3px dotted black;
    font-size: 18px;
    width: 350px;
}

#search-input {
    width: 350px;
}

input:focus {
    outline: none;
}

#arrow {
    font-size: 40px;
    cursor: pointer;
}

#search {
    position: relative;
    display: inline-block;
    width: 350px;
    margin-left: auto;
    margin-right: auto;
}

.alert {
    width: 100%;
}

#search span {
    position: absolute;
    right: 10px;
    left: auto;
}

#search input {
    height: 65px;
    padding-right: 60px;
}

.mt-150 {
    margin-top: 150px;
}

#invoice-form-header div:first-child {
    display: flex;
    justify-content: space-between;
}

#invoice-sheet {
    height: 100%;
    width: 100%;
    background-image: url('../images/ondas.svg');
    background-position: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

#invoice-sheet-img {
 width: 100%;
 max-width: 300px;
}

.grey {
    color: var(--main-grey-color);
}


/* Modal */

.modal {
    display: none;
    position: fixed;
    z-index: 1;
    padding-top: 100px;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.4);
    color: black;
}
  
/* Modal Content */
#modal-content {
    background-color: #fefefe;
    margin: auto;
    padding: 20px;
    width: 60%;
    border-radius: 15px;
}

#modal-header h2 {
    padding-top: 10px;
    text-align: center;
    font-weight: bold;
}

#modal-details {
    display: flex;
    flex-direction: row;
}

#questions {
    padding: 20px 0px;
    width: 70%;
}

#questions p {
    margin-bottom: 0px;
}

.question {
    font-weight: bold;
}

#invoice {
    width: 30%;
    display: flex;
    justify-content: center;
    align-items: center;
}

  
/* The Close Button */
.close {
    color: #000;
    float: right;
    font-size: 48px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

#invoice-container-generate {
    width: 100%;
    height: 120vh;
    display: flex;
    background-color: var(--bg-grey-color);
}

#invoice-form-generate {
    height: 100%;
    width: 70%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 4%;
    font-weight: bold;
    background-color: white;
}

#invoice-details {
    width: 100%;
    padding: 20px 20px 20px 20px;
    background-color: var(--bg-grey-color);
    display: grid;
    justify-content: space-between;
    grid-template-columns: 1fr 1fr 1fr;
}

#invoice-details div {
    font-size: 14px;
}

#invoice-details div p:first-child {
    color: var(--accent-grey-color);
}

#inputs {
    margin-top: 20px;
    display: grid;
    justify-content: space-between;    
    grid-template-columns: 1fr 1fr;
    gap: 5rem;
    row-gap: 1rem;
}

#inputs div {
    text-align: left;
    display: flex;
    flex-direction: column;
}

#inputs input {
    border: 3px solid black;
    padding: 2px 4px;
    width: 250px;
}

#inputs select {
    background-color: white;
    border: 3px solid black;
    padding: 4px;
}

select {
    width: 250px;
}

#agreement {
    margin-top: 40px;
}

#agreement-label {
    cursor: pointer;
}

#submit {
    margin-top: 20px;
    margin-bottom: 40px;
    background-color: var(--btn-grey-color);
    border: none;
    border-radius: 12px;
    padding: 10px 50px;
    font-weight: bolder;
    font-size: 12px;
}

#invoice-terms {
    height: 80vh;
    margin-top: 40px;
    text-align: left;
    font-weight: 400;
    overflow: auto;
    scrollbar-color: white white;
}

#invoice-form-files {
    height: 100%;
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    padding: 5%;
    font-weight: bold;
    background-color: white;
}

#invoice-files {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

#check-container {
    margin-top: 50px;
    height: 70px;
    width: 70px;
    background-color: var(--check-green-color);
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    border-radius: 50px;
    font-size: 40px;
}

#invoice-files h1 {
    margin-top: 40px;
}

#invoice-files h2 {
    font-weight: 400;
}

#invoice-files h2, h3 {
    margin-top: 15px;
}

#actions {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
}

#invoice-files button {
    background: white;
    border: 2px solid black;
    padding: 6px 30px;
    font-weight: 900;
    margin: 0px 40px;
    cursor: pointer;
}

#invoice-files #other {
    background: black;
    border: none;
    color: white;
    padding: 10px 40px;
    font-weight: 900;
}

@media (max-width: 900px) {
    #invoice-sheet {
        display: none;
    }
    #invoice {
        display: none;
    }
    #questions {
        padding: 20px 0px;
        width: 100%;
    }
    #modal-content {
        margin: auto;
        width: 90%;
    }
    #modal-details {
        flex-direction: column;
    }
    #invoice-sheet-img {
        max-width: max-content;
    }
    #invoice-form-generate {
        width: 100%;
    }
    #inputs {
        grid-template-columns: 100%;
        gap: 1rem;
    }
    #invoice-details {
        grid-template-columns: 1fr 1fr;
    }
    select {
        width: 100%;
    }

    #inputs input {
        width: 100%;
    }
}

@media (max-width: 500px) {
    #invoice-details {
        padding: 10px 0px 0px 0px;
        grid-template-columns: 100%;
    }
    select {
        width: 100%;
    }

    #inputs input {
        width: 100%;
    }
}


/* Animation */

.circular {
    size:2em;
    display:none;
    width:2em;
    height:2em;
    border-radius:50%;
    border:4px solid silver;
    animation: circ-anim 0.7s linear infinite; 
    border-bottom-color: grey;
}

@keyframes circ-anim {
    from {
        transform: rotate(0);
    }
    to {
        transform: rotate(360deg);
    }
}