body {
    background-color: white;
    overflow: hidden;
    margin: 0;
}

::-webkit-scrollbar {
    display: none;
}

.fix-size {
    background-color: rgb(0, 0, 0);
    background-image: url('/frontend/assets/background.jpg');
    height: 100dvh;
    width: 100dvw;
    position: absolute;
    display: flex;
    flex-direction: row;
    overflow-x: hidden;
    overflow-y: auto;
}

.fit-background {
    object-fit: cover;
    background-size: cover;
    background-position: left;
}

@media screen and (max-width: 500px) {

/* Plot Fix Layar */

.full-size {
    width: 100%;
    height: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow: hidden;
}

/* Keyframes Animation */

@keyframes slide-up-1 {
    0% {height: 0%;}
    100% {height: 100%;}
}

@keyframes fade-in {
    0% {opacity: 0;}
    100% {opacity: 1;}
}

@keyframes pop-form {
    0% {
        transform: scale(0.5);
        translate: -50% 0;
    }
    65% {
        transform: scale(1.1);
        translate: -50% 0;
    }
    100% {
        transform: scale(1);
        translate: -50% 0;
    }
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Headers Judul Dan Deskripsi */

.headers-duwur {
    text-align: center;
    width: 100%;
    position: relative;
    box-sizing: border-box;
    padding-bottom: 15%;
    z-index: 3;
}

.headers-duwur h1 {
    margin: 6% 0 4% 0;
    color: rgb(151, 14, 255);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 8dvw;
}

.headers-duwur p {
    margin: 2% 0 8% 0;
    color: rgb(130, 5, 225);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 4dvw;
}

/* Tempat Form Input */

.form-section {
    width: 100%;
    height: 100%;
    position: relative;
}

.form-container {
    background-image: linear-gradient(to top, rgb(255, 255, 255), rgb(228, 198, 255));
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 86%;
    height: 34%;
    position: absolute;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 12px 12px 12px 12px;
    bottom: -9%;
    left: 50%;
    translate: -50% 0;
    z-index: 1;
}

.form-container.pop-up {
    animation: pop-form 0.6s ease-out forwards;
}

.background-slide-up {
    background-image: linear-gradient(to top, #ffffff00, #ffffff);
    box-shadow: 0px 0px 10px 1px rgba(0, 0, 0, 0.2);
    width: 100%;
    height: 100%;
    position: absolute;
    border: none;
    border-radius: 12px 12px 0 0;
    bottom: 0;
    z-index: 0;
}

.background-slide-up.slide-up {
    animation: slide-up-1 0.4s ease-out forwards, fade-in 0.6s ease-out forwards;
}

/* Form Input */

.form-box {
    width: 90%;
    height: 50%;
    border: none;
    border-radius: 6px;
    display: flex;
    flex-direction: row;
    position: relative;
}

.input-text-box {
    height: 100%;
    width: 10%;
    flex-grow: 1;
    display: flex;
    justify-content: left;
    border: none;
    border-radius: 6px;
    margin-right: 7px;
    margin-left: 3px;
    box-shadow:
      0px -1.5px 1px rgba(0, 0, 0, 0.4),
      0px 2px 3px rgb(255, 255, 255);
}

.input-text-box input {
    background-color: transparent;
    outline: none;
    border: none;
    text-decoration: none;
    width: 100%;
    height: 95%;
    box-sizing: border-box;
    padding-left: 10px;
    padding-right: 10px;
    color: rgb(130, 5, 225);
    opacity: 0.7;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.input-text-box input::placeholder {
    color: rgb(130, 5, 225);
    opacity: 0.8;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.submit-box {
    height: 100%;
    aspect-ratio: 1;
    position: relative;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    
}

.submit-box i {
    color: white;
    margin-top: -3px;
    margin-right: -3px;
    font-size: 25px;
    text-shadow:
      0px -1px 1px rgba(0,0,0,0.7),
      0px 2px 3px rgba(255,255,255,0.5);
}

/* Result Section */

.result-section {
    width: 100%;
    height: 70%;
    position: absolute;
    top: 40px;
    left: 50%;
    translate: -50% 0;
    position: relative;
}

.result-section.pop-up {
    animation: pop-form 0.6s ease-out forwards;
}

.scroller-result {
    width: 100%;
    height: 49dvh;
    border: none;
    border-radius: 12px;
    display: flexbox;
    flex-direction: column;
    flex-shrink: 0;
    overflow-x: hidden;
    overflow-y: auto;
    box-sizing: border-box;
    padding-top: 10px;
    padding-bottom: 5px;
    text-align: center;
}

.file-container {
    background-image: linear-gradient(to top left, rgb(255, 255, 255), rgb(245, 234, 255));
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    width: 86%;
    height: 120px;
    margin-bottom: 4px;
    border: none;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    vertical-align: top;
}

/* File Container */

.inner-file-container {
    width: calc(100% - 25px);
    height: calc(100% - 25px);
    border: none;
    border-radius: 9px;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: row;
}

.thumbnail-container {
    box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.2);
    height: 100%;
    flex: 0 0 30%;
    border: none;
    border-radius: 9px 9px 9px 9px;
    display: flex;
    margin-left: 4px;
    overflow: hidden;
    position: relative;
}

.thumbnail-overlay-section {
    background-image: linear-gradient(to top, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0));
    position: absolute;
    width: 100%;
    height: 25px;
    bottom: 0;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 9px;
    margin: 0;
    display: grid;
    place-items: center;
    pointer-events: none;
}

.thumbnail-container img {
    border: none;
    border-radius: 9px 9px 9px 9px;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    background-size: cover;
    overflow: hidden;
}

.file-info-container {
    height: 100%;
    flex: 1;
    border: none;
    border-radius: 0 9px 9px 0;
    margin-left: 12px;
    position: relative;
}

.file-info-container h3 {
    height: 39%;
    margin: 0;
    color: rgba(151, 14, 255, 0.6);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2.5dvh;
    text-align: left;
    line-height: 1.1;
    overflow-x: hidden;
    overflow-y: auto;
    word-break: break-word;
    overflow-wrap: break-word;
    white-space: normal;
}

.file-info-container p {
    height: 20%;
    width: 43%;
    margin: 0;
    margin-top: 2px;
    color: rgba(151, 14, 255, 0.8);
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 2dvh;
    text-align: left;
    line-height: 1.1;
    overflow-x: hidden;
    overflow-y: hidden;
}

.file-button-container {
    width: 100%;
    height: 30%;
    position: absolute;
    bottom: 0;
}

.file-button-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    bottom: 0;
    gap: 5px;
}

.action-button {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    outline: none;
    border: none;
    border-radius: 3px;
    font-size: 1.7dvh;
    box-sizing: border-box;
    padding: 5px;
    flex: 1;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.action-button:hover {
    background-color: rgba(151, 14, 255, 0.8);
}

.action-button.download {
    background-color: rgba(151, 14, 255, 0.5);
}

.action-button.stream {
    background-color: rgba(99, 99, 99, 0.5);
}

/* Loading Spinner */

.spinner-container.inactive {
    display: none;
}

.spinner-container.active {
    width: 30px;
    height: 30px;
    position: absolute;
    bottom: -75px;
    left: 50%;
    translate: -50% 0;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.spinner {
    border: 2px solid rgba(151, 14, 255, 0.1);
    border-top: 2px solid rgba(151, 14, 255, 0.8);
    border-radius: 50%;
    width: 100%;
    height: 100%;
    animation: spin 2s linear infinite;
    box-sizing: border-box;
    pointer-events: none;
}

/* Error Handling */

.error-container {
    background-image: linear-gradient(to top, rgb(179, 159, 197), rgb(160, 134, 182));
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 86%;
    height: 35px;
    border: none;
    border-radius: 12px;
    display: inline-block;
    position: relative;
    vertical-align: top;
    text-align: center;
    color: white;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    font-size: 0.8rem;
}

.error-container a {
    position: absolute;
    width: 100%;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: inline-block;
}

/* Overlay Section */

.overlay-section.active {
    background-color: rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(10px);
    width: 100dvw;
    height: 100dvh;
    position: absolute;
    z-index: 4;
    pointer-events: all;
}

.overlay-section.inactive {
    display: none;
    pointer-events: none;
}

.image-overlay {
    position: absolute;
    width: 70%;
    height: auto;
    top: 5%;
    left: 50%;
    translate: -50% 0;
}

.image-overlay.pop-up {
    animation: pop-form 0.6s ease-out forwards;
}

.close-overlay-button {
    background-color: transparent;
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    width: 40px;
    height: 40px;
    border: none;
    outline: none;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.7);
    position: absolute;
    bottom: 15%;
    left: 50%;
    translate: -50% 0;
    pointer-events: all;
}

.close-overlay-button.pop-up {
    animation: pop-form 0.6s ease-out forwards;
}

/* Made With Love */

.made-by-dyrteaststar {
    position: absolute;
    left: 50%;
    translate: -50% 0;
    bottom: 30px;
    color:rgb(255, 255, 255);
    font-size: 80%;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

}