html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
    margin-bottom: 60px;
    background-color: #ffffff;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

/* ---------------------- progress bar ------------------------- */
progress {
    width: 20%;
    height: 1rem;
    appearance: none; /* Removes default browser styling */
    border: none;
    border-radius: 10px;
    background-color: #e0e0e0; /* Background of the track */
    overflow: hidden;
}

/* Styles the filled bar for Chrome, Safari, and Edge */
progress::-webkit-progress-value {
    background-color: #007bff;
    transition: width 0.3s ease; /* Smooth transition when value changes */
}

/* Styles the track for Chrome, Safari, and Edge */
progress::-webkit-progress-bar {
    background-color: #e0e0e0;
}

/* Styles the filled bar for Firefox */
progress::-moz-progress-bar {
    background-color: #007bff;
}
.progressTextDiv {
    width: 20%;
    display: flex;
    justify-content: space-between;
    align-items: center; /* Optional: Centers them vertically relative to each other */
}

.progressTextDiv > * {
    flex-shrink: 0;
}

/* ---------------------- upload views css ------------------------- */
.rounded-box-container {
    display: flex;
    justify-content: center;
    align-items: center;

}

.index-rounded-box {
    /* Rounded Corners */
    border-radius: 12px;
    /* Box Shadow Syntax: h-offset v-offset blur spread color */
    box-shadow: 0px 4px 10px 0px rgba(0, 0, 0, 0.15);
    /* Required base styles for visualization */
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: stretch;
    max-width: 900px;
    min-width: 60%;
}

.rounded-box-header {
    background-color: #EBEFF5;
    min-height: 8rem;
    position: static;
    top: 0;
    z-index: 10;
    border-top-left-radius: 12px;
    border-top-right-radius: 12px;
}

.rounded-box-header > a > img {
    padding: 2rem;
    max-height: 8rem;
}

.form-group {
    width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
    padding-bottom: 1rem;
}

.form-group-upload {
    width: 100%;
    padding-left: 2rem;
    padding-right:2rem;
    padding-bottom: 1rem;
}

.form-check {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-right: 3rem;
    padding: 1rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.form-check-upload {
    font-weight: bold;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 1rem;
    padding-top: 0rem;
    padding-bottom: 0rem;
}

.upload-heading {
    margin-top: 2rem;
    padding: 3rem;
    padding-top: 0;
    padding-bottom: 1rem;
}

.email-link-button > button {
    background-color: #0081D1;
    min-width: 5rem;
    margin-left: 3rem;
    margin-bottom: 2rem;
}

#submitBtn {
    background-color: #0081D1;
    width: 20%;
}

    #submitBtn:hover {
        background-color: #005A90;
    }

.drag-and-drop-container {
    width: 100%;
    min-height: 18rem;
    border-radius: 12px;
    border: 1px dashed #005A90;
    background-color: #F8F9FB;
    padding: .5rem 1rem .5rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.upload-input {
    display: none;
}

.upload-button {
    display: inline-block;
    padding: 10px 20px;
    font-weight: bold;
    background-color: #F8F9FB;
    border-radius: 25px;
    border: solid;
    border-width: 1px;
    border-color: #005A90;
    color: #005A90;
    cursor: pointer;
    margin-bottom: 1rem;
}

    .upload-button:hover {
        background-color: #005A90;
        color: #ffffff;
    }

.cloud-svg {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

    .cloud-svg > :first-child {
        margin-bottom: -45px;
    }

    .cloud-svg > :last-child {
        margin-bottom: -20px;
    }

    .cloud-svg > svg path {
        stroke: #005A90;
        stroke-width: .3px !important;
    }

    .cloud-svg > svg polygon {
        stroke: #005A90;
        stroke-width: .3px !important;
    }

    .cloud-svg > svg circle {
        stroke: #005A90;
        stroke-width: .3px !important;
    }

.drag-and-drop-container > p {
    margin-top: -10px;
    font-weight: 400;
    color: #005A90;
}
/* drag and drop */
.drag-and-drop-container--over > .upload-button {
    display: none;
}

.removeFileBtn {
    all: unset;
    cursor: pointer;
}

#addAnotherFileBtn {
    background-color: #ffffff;
    border-color: #0081D1;
    color: #0081D1;
    min-width: 9rem;
    flex: 0 0 25%;    
}

#addAnotherFileBtn:hover {
    background-color: #EBEFF5;

}

.submit-and-add-buttons {
    display: flex;
    justify-content: space-between;
    width: 100%;
    
}

.submit-and-add-buttons button {
    min-width: 9rem;
}


#file-list {
    list-style: none;
    padding: 0;
    margin: 0;
    width: 100%;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
}


#file-list > li {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px solid #ccc;
    padding: .5rem 0;
}

#file-list > li > span {
    width: auto;
    flex-grow: 0;
    flex-shrink: 0;
}

#file-list li:last-child {
    border-bottom: none; /* Removes line after the last item */
}

.removeFileBtn {
    font-family: "Arial Round MT Bold", "Helvetica Neue", sans-serif;
    font-size: 2rem;
    font-weight: 200;
    color: grey;
    line-height: 1;
    /* Gives a softer, rounded appearance */
    text-shadow: 0 0 2px currentcolor;
}

.progressBarContainer {
    display: flex;
    align-items: center;
    justify-content: flex-start;
}

.progressBarWrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.progressBar {
    min-width: 6rem;
}

.progressBarTime {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%); /*  center time  */
    font-size: 0.75rem;
    font-weight: bold;
    color: #919191;
    pointer-events: none;
}

.file-size-span {
    width: 4rem;
    text-align: right;
}

/* ---------  repeating bg text -----------*/

.repeating-text-bg {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='500' height='300'%3E%3Cdefs%3E%3Cpattern id='p' width='500' height='300' patternUnits='userSpaceOnUse'%3E%3Cg transform='rotate(-30 250 150)'%3E%3Ctext x='0' y='100' font-size='32' font-family='Times' fill='%23cc0000' opacity='0.15'%3ETest Test Test Test Test%3C/text%3E%3Ctext x='0' y='200' font-size='32' font-family='Times' fill='%23cc0000' opacity='0.15'%3ETest Test Test Test%3C/text%3E%3C/g%3E%3C/pattern%3E%3C/defs%3E%3Crect width='100%25' height='100%25' fill='url(%23p)'/%3E%3C/svg%3E");
    background-repeat: repeat;
}
