/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    margin: 0 15px;
    font-family: "Poppins", sans-serif;
    background: #f3f4f8;
}

::selection {
    color: #fff;
    background: #6990F2;
}

.container {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    margin: 50px auto 0;
    max-width: 550px;
    width: 100%;
}

.banner-text-hero {
    text-align: center;
    margin-bottom: 40px;
}

.banner-text-hero h1 {
    color: #1a202c;
    font-size: 25px;
    font-weight: 600;
    line-height: normal;
    margin-bottom: 10px;
}

.banner-text-hero h1 span {
    color: #4c6fff;
}

.banner-text-hero p {
    color: #1a202c;
    font-size: 14px;
    font-weight: 500;
    line-height: normal;
}

.wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 100px auto 0;
    max-width: 550px;
    width: 100%;
}

.wrapper header {
    color: #6990F2;
    font-size: 27px;
    font-weight: 600;
    text-align: center;
}

.wrapper form {
    height: 200px;
    display: flex;
    cursor: pointer;
    margin: 20px 0;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-radius: 10px;
    border: 2px dashed #6990F2;
}

form :where(i, p) {
    color: #6990F2;
}

form i {
    font-size: 50px;
}

form p {
    margin: 0 20px;
    text-align: center;
    margin-top: 15px;
    font-size: 16px;
}

.upload-demo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 50vh;
}

.upload {
    background-color: #fff;
    border: 2px dashed #6990F2;
    border-radius: 10px;
    width: 360px;
    height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}

.upload.highlight {
    background-color: rgba(32, 159, 255, .06);
}

.upload-info .text {
    color: #606266;
    font-size: 14px;
    text-align: center;
}

.upload-info .text em {
    color: #409eff;
    font-style: normal;
}

.line {
    display: block;
    height: 1px;
    width: 100%;
    margin: 24px 0;
    background-color: #dcdfe6;
    position: relative;
}

.res-info {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.res-link {
    font-size: 20px;
    padding-bottom: 20px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    text-align: center;
    color: #c0c4cc;
    font-size: 16px;
}

.footer span {
    cursor: pointer;
}

.loading {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: #1413136b;
    display: grid;
    place-items: center;
    display: none;
}

.loading svg {
    width: 30px;
    animation: rotateAnimation 2s infinite linear;
}

.link-box {
    border: 2px solid #6990F2;
    border-radius: 8px;
    padding: 10px 15px;
    display: inline-block;
    background-color: #fff;
}

#resurl {
    color: #232935;
    font-size: 16px;
    font-weight: bold;
}

.banner-text-hero {
    text-align: center;
    margin-bottom: 40px;
}

.primary-font {
    font-size: 36px;
    font-weight: bold;
    color: #333;
}

.primary-font span {
    color: #6990F2;
}

.banner-text-hero p {
    font-size: 18px;
    color: #606266;
    max-width: 600px;
    margin: 20px auto 0;
}

.res-img {
    display: none; /* Ẩn khung viền khi không có hình ảnh */
}

.res-img img {
    border: 2px solid #6990F2; /* Màu sắc và độ dày của khung viền */
    padding: 10px; /* Khoảng cách giữa khung viền và hình ảnh */
    border-radius: 8px; /* Làm tròn các góc của khung viền (tuỳ chọn) */
    background-color: #f9f9f9; /* Màu nền cho khung viền (tuỳ chọn) */
}




@keyframes rotateAnimation {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Thêm các quy tắc CSS mới ở đây */
/* Các quy tắc CSS đã được cập nhật */
.uploaded-area {
    max-height: 300px;
    overflow-y: auto;
}

.uploaded-area .row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    border-bottom: 1px solid #e5e5e5;
}

.uploaded-area .row .content {
    display: flex;
    align-items: center;
}

.uploaded-area .row .details {
    display: flex;
    margin-left: 15px;
    flex-direction: column;
}

.uploaded-area .row .details .size {
    color: #404040;
    font-size: 11px;
}

.uploaded-area .row a {
    color: #4c6fff;
    text-decoration: none;
}

.uploaded-area .row a:hover {
    text-decoration: underline;
}


.info-box {
    margin: 15px auto 0;
    max-width: 500px;
    border-radius: 10px;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    display: none;
}

.info-box .file-name {
    word-break: break-word;
    white-space: normal;
}

.info-box h3 {
    margin: 0 0 10px;
}

.info-box p {
    margin: 5px 0;
}

.info-box a {
    color: #007bff;
    text-decoration: none;
    word-wrap: break-word;
    word-break: break-all;
}

.info-box a:hover {
    text-decoration: underline;
}

.file-preview {
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.15);
    max-width: 100%;
    margin-top: 10px;
    margin-bottom: 20px;
    display: none;
}

footer {
    padding: 20px 0;
    text-align: center;
    width: 100%;
}

.footer-list {
    list-style-type: none;
    padding: 0;
    margin: 0;
}

.footer-list li {
    margin: 0;
}

.link-footer {
    text-decoration: none;
    color: #333;
    font-size: 14px;
    font-weight: 500;
}

.highlight {
    text-decoration: none;
    color: #4c6bba;
}

.link-footer:hover .highlight {
    text-decoration: underline;
    color: #0056b3;
}


@media (min-width: 768px) {
    .container {
        margin: 80px auto 0;
    }

    .banner-text-hero h1 {
        font-size: 36px;
    }

    .banner-text-hero p {
        font-size: 18px;
    }

    .wrapper {
        padding: 30px 40px;
    }

    .wrapper header {
        font-size: 32px;
    }

    .upload {
        width: 480px;
        height: 240px;
    }

    .upload-info .text {
        font-size: 16px;
    }

    .res-link {
        font-size: 24px;
    }
}

/* Styles for mobile devices */
@media (max-width: 767px) {
    body {
      margin: 0;
    }
  
    .container {
      margin: 30px 15px 0;
    }
  
    .banner-text-hero {
      margin-bottom: 30px;
    }
  
    .banner-text-hero h1 {
      font-size: 20px;
    }
  
    .banner-text-hero p {
      font-size: 14px;
    }
  
    .wrapper {
      margin: 50px auto 0;
      padding: 20px;
    }
  
    .wrapper header {
      font-size: 24px;
    }
  
    .upload {
      width: 100%;
      height: 150px;
    }
  
    .upload-info .text {
      font-size: 14px;
    }
  
    .res-link {
      font-size: 18px;
    }
  
    .info-box {
      margin: 15px 15px 0;
    }
  
    .file-preview {
      max-width: 100%;
    }
  
    footer {
      padding: 15px 0;
    }
  
    .footer-list li {
      margin-bottom: 10px;
    }
  
    .link-footer {
      font-size: 12px;
    }
  }