@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Parisienne&display=swap');

*,
*::before,
*::after {
    padding: 0;
    border: 0;
    margin: 0;
    box-sizing: border-box;
}

img
{
    width: 100%;
}


body {
    background-color: #efefef;
    font-family: "Roboto", sans-serif;
    font-weight: 400;
    font-style: normal;
}

nav {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 5vh;
    background-color: #AECECA;
    color: white;
}

main {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 50vh;
}

header {
    padding: 1rem;
    padding-top: 5rem;
    position: relative;
}

.policy-header
{
    height: 300px;
}

.hero {
    font-size: 3rem;
    font-family: "Parisienne", serif;
    font-weight: bold;
    font-style: normal;
    z-index: 2;
    position: relative;
}

.hero-policy
{
    margin-top: 6rem;
}

.hero-image {
    position: absolute;
    opacity: 90%;
    top: 0;
    right: 0;
    border-radius: 10px;
    z-index: 1;
    background-image: linear-gradient(0deg, rgba(239, 239, 239, 1) 5%, rgba(239, 239, 239, 0) 50%), url('./leaf.png');
    background-size: cover;
    width: 240px;
    height: 248px;
}

.hero-image img {
    border-radius: 10px;
}

.information {
    margin-block: 2rem;
    padding: 1rem 1.5rem;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

form {
    display: flex;
    flex-flow: column;
    gap: 1rem;
    margin-bottom: 5rem;
}

.file-uploader {
    width: 380px;
    background-color: white;
    border-radius: 5px;
}

.uploader-header {
    display: grid;
    height: 120px;
    grid-template-areas:
        "title . number"
        ". . ."
        "memory . button";
    padding: 1.2rem;
    background-color: #6E967F;
    color: white;
    border-radius: 5px 5px 0 0;
}

.add-files-button {
    background-color: #364A3F;
    color: white;
    grid-area: button;
    display: flex;
    align-items: center;
    justify-content:space-evenly;
    border-radius: 5px;
    border: 2px solid #364A3F;
    cursor: pointer;
}

.add-files-button img
{
    flex-basis: 20%;
}

.add-files-button:hover {
    border: 2px solid white;
}

.files-memory
{
    padding-top: 1rem;
    display: flex;
    align-items: flex-end;
    justify-content: flex-start;
    grid-area: memory;
}

.uploader-title {
    font-size: 1.2rem;
    font-weight: 700;
    grid-area: title;
}

.file-completed-status {
    font-size: 1rem;
    font-weight: 500;
    color: white;
    grid-area: number;
    justify-self: end;
}

.file-list {
    list-style-type: none;
    width: 100%;
    max-height: 350px;
    min-height: 350px;
    overflow-y: auto;
    scrollbar-color: #999 transparent;
    scrollbar-width: thin;
    display: flex;
    flex-direction: column;
    gap: 4px 0;
    padding-top: 8px;
    padding-inline: 3px;
    background-color: #f3f6ff;
}

.file-item {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    grid-template-rows: repeat(2, 35px);
    background-color: #fefefe;
    border: 1px solid #bdc3c7;
    border-left: 5px solid #6E967F;
    border-radius: 5px;
    padding: 0.4rem;
}

.file-error
{
    border: 1px solid red;
    border-left: 5px solid red;
    background-color: #EAD7D7;
}


.file-image {
    grid-column: 1/2;
    grid-row: 1/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    padding: 0.5rem 0;
}


.file-image img {
    border-radius: 5px;
}

.file-details {
    grid-row: 1/2;
    grid-column: 2/6;
    margin-left: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.file-size-container {
    grid-row: 2/3;
    grid-column: 2/6;
    margin-left: 0.5rem;
    padding: 1rem;
    margin-top: 0.5rem;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-top: 1px solid rgb(206, 206, 206);
}

.file-name {
    font-size: 1rem;
    font-weight: 600;
    margin-left: 1rem;
}

.file-info {
    display: flex;
    gap: 5px;
}

.file-size {
    padding: 0.2rem;
    width: 68px;
}

.file-type
{
    margin-left: 1rem;
    width: 50px;
}

.file-status {
    color: lime;
}

.file-info small {
    color: #5c5c5c;
    margin-top: 5px;
    display: block;
    font-size: 0.9rem;
    font-weight: 500;
}

.cancel-button-container {
    grid-row: 1/3;
    grid-column: 6/7;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cancel-button {
    align-self: center;
    background: url("./x.svg");
    background-repeat: no-repeat;
    background-size: cover;
    border: none;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    padding: 2px;
    border: 2px solid transparent;
    width: 25px;
    height: 25px;
}


.cancel-button:hover {
    color: red;
    border-radius: 5px;
    border: 2px solid #ff0000;
    background: url("./red-x.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.cancel-button:focus
{
    color: red;
    border-radius: 5px;
    border: 2px solid #ff0000;
    background: url("./red-x.svg");
    background-repeat: no-repeat;
    background-size: cover;
}

.file-upload-box {
    margin: 20px;
    border-radius: 5px;
    min-height: 100px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed #b1add4;
    transition: all 0.2s ease;
}

.box-title {
    font-size: 1.05rem;
    font-weight: 500;
    color: #626161;
}

.file-browser-button {
    color: #5145ba;
    cursor: pointer;
    text-decoration: underline;
}

.file-browser-button:hover {
    text-decoration: underline;
}

.info
{
    border: 2px solid red;
    border-radius: 50px;
    background-color: #e45f5f;
    position: fixed;
    bottom: 20px;
    right: 20px;
    cursor: pointer;
    width: 100px;
    height: 100px;
}

.info img
{
    width: 100%;
    height: 100%;
}

.info:hover
{
    background-color: red;
}


.file-item-error
{
    border-left: 5px solid red;
    background-color: #F7E8E8;
}



.active {
    border: 2px solid #5145ba;
    background-color: #f3f6ff;
}


.notify, .notify-error {
    background-color: #F1F8F4;
    border: 2px solid #50dc6c;
    width: 320px;
    height: 100px;
    position: fixed;
    z-index: 10;
    top: 5px;
    left: 50%;
    transform: translate(-50%, 0);
    padding: 1rem;
    display: flex;
    font-weight: bold;
    align-items: center;
    justify-content:space-evenly;
    border-radius: 5px;
    text-align: center;
    gap: 0 1.5rem;
}

.notify-error
{
    background: "#FBEFEB";
    border: "2px solid #FC5758";
}

.notify button, .notify-error button
{
    align-self: center;
    outline: none;
    background-color: transparent;
    cursor: pointer;
    border: 2px solid black;
    border-radius: 5px;
    width: 25px;
    height: 25px;
}

.notify button:hover
{
    border: 2px solid #6E967F;
}

.notify-error button:hover
{
    border: 2px solid #ff0000;
}

.notify button img, .notify-error button img
{
    width: 100%;
    height: 100%;
}


.passkey-label {
    padding: 1rem;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: center;
    width: 60%;
    gap: 0.4rem;
    font-weight: bold;
    background-color: #6E967F;
    color: white;
    border-radius: 5px;
}

.passkey {
    border-radius: 5px;
    width: 80%;
    height: 25px;
    padding: 0.4rem;
    background-color: white;
    border: 1px solid #3B1E54;
}

.upload {
    cursor: pointer;
    padding: 1rem;
    background-color: #FF7367;
    font-weight: bold;
    color: rgb(40, 40, 40);
    width: 120px;
    align-self: flex-start;
    border-radius: 5px;
    border: 2px solid transparent;
}

.upload:focus,.upload:hover
{
    border: 2px solid black;
}

.loading {
    width: 100%;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 1rem;
}

.loading img
{
    margin-bottom: 5rem;
}

.loading-updater
{
    font-size: 1.6rem;
}

.loading-header
{
    background-color: #364A3F;
    padding: 1rem;
    font-size: 1.6rem;
    border-radius: 5px;
    border: 2px solid white;
}
.loading-bg,.error-bg {
    display: flex;
    align-items:flex-start;
    justify-content: center;
    padding-top: 10rem;
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-color: #000000c6;
    z-index: 10;
}

.loading-file
{
    display: flex;
    justify-content: center;
    height: 50px;
    width: 100%;
    column-gap: 0.5rem;
}

.loading-img-container
{
    padding-top: 0.3rem;
}

.progress-bar-container
{
    height: 20px;
    width: 100%;
    border-radius: 5px;
    border: 2px solid white;
}

.progress-bar
{
    height: 100%;
    width: 0%;
    border-radius: 5px;
    background-color: #364A3F;
    transition: all 0.3s linear;
}

.error-list-container
{
    background-color: #efefef;
    padding: 1rem;
    border-radius: 5px;
    width: 90%;
    max-height: 80%;
    overflow-y: scroll;
}

.error-list-container-button
{
    border-radius: 5px;
    border: 1px solid black;
    cursor: pointer;
    padding: 0.1rem 0.2rem;
}

.error-list-container-button:hover
{
    border: 1px solid #ff0000;
}

.error-header
{
    padding: 1rem 0;
    display: flex;
    justify-content: flex-end;
    align-items: center;
}

.error-list-container ul
{
    list-style-type: none;
    display: flex;
    gap: 0.5rem 0;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
}

.error-list-container li
{
    margin-bottom: 5px;
    width: 100%;
}

.error-card
{
    display: flex;
    flex-flow: column;
    justify-content: center;
    align-items: flex-start;
    gap: 0.4rem;
    padding: 1rem;
    border: 2px solid red;
    background-color: #FBEFEB;
    border-radius: 5px;
    width: 100%;
    min-width: 100%;
}

.error-card h3
{
    border-bottom: 1px solid #ff0000;
    width: 98%;
    padding-block: 0.2rem;
}

.notify-hide, .not-list{
    display: none;
}

footer {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content:space-between;
    height: 5vh;
    background-color: #AECECA;
    color: black;
}

footer a
{
    color: black;
}

.footer-text {
    font-family: "Parisienne", serif;
    font-weight: bold;
    font-style: normal;
}

.main-policy
{
    width: 90%;
    margin: 0 auto ;
    margin-bottom: 2rem;
}

.main-policy h2
{
    margin-block: 1rem;
}

.main-policy p{
    line-height: 2;
}

.policy-padding
{
    padding-bottom: 1rem;
}

@media only screen and (max-width: 400px) {
    .upload,.passkey-label
    {
        margin-left: 1rem;
    }
}

@media only screen and (min-width: 600px) {
    .file-uploader {
        width: 550px;
    }


    header,
    .information {
        padding-inline: 3rem;
        width: 80%;
        margin: auto;
    }

    .passkey-label {
        width: 50%;
    }

    .add-files-button {
    width: 70%;
    justify-self: flex-end;
    }
}

@media only screen and (min-width: 900px) {
    header,
    .information {
        width: 64%;
    }
}

@media only screen and (min-width: 1200px)
{
     header,
    .information {
        padding-inline: 1rem;
        width: 54%;
        margin: auto;
    }

    .notify, .notify-error {
    width: 400px;
}

    .uploader-header {
    height: 150px;
    }

     .add-files-button {
    width: 50%;
    justify-self: flex-end;
    }

    .file-list {
    max-height: 500px;
    min-height: 400px; 
    }

    .file-uploader {
        width: 800px;
    }

    .file-upload-box {
        min-height: 280px;
    }

    .file-item
    {
        height: 105px;
        grid-template-rows: repeat(2, 45px);
    }

    .cancel-button
    {
        padding: 2px;
        width: 35px;
        height: 35px;
    }

    .passkey-label
    {
        width: 30%;
    }

    .passkey
    {
        width: 70%;
    }

    .upload
    {
        align-self: flex-start;
    }

    .error-list-container
    {
        width: 50%;
    }

    .main-policy
    {
        width: 60%;
    }

    .hero-policy
    {
        margin-top: 3rem;
    }
}


@media only screen and (min-width: 1800px) {


    header,
    .information {
        padding-inline: 1rem;
        width: 52%;
        margin: auto;
    }

    .hero {
    font-size: 4rem;
    }

    .add-files-button {
        width: 40%;
    }

    .file-uploader {
        width: 1000px;
    }

    .file-upload-box {
        min-height: 350px;
    }

    .uploader-header {
        grid-template-areas:
            "title . number"
            ". . ."
            "memory . button";
    }

   

    .file-name
    {
        font-size: 1.6rem;
    }

    .file-item {

        grid-template-columns: repeat(8, 1fr);
        grid-template-rows: repeat(2, 50px);
    }

    .file-details,
    .file-size-container {
        grid-column: 2/8;
    }

    .passkey-label {
        width: 25%;
    }

    .upload {
        align-self: flex-start;
    }

    .cancel-button-container {
        grid-column: 8/9;
    }

    .cancel-button {
        width: 35px;
        height: 35px;
    }


    .progress-bar-container
    {
        height: 25px;
        width: 60%;
        border-radius: 5px;
        border: 2px solid white;
    }

    .error-list-container
    {
        width: 50%;
    }

    

}