* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
}

body {
    width: 100%;
    height: 100%;
    background-color: rgb(255, 250, 250);
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    gap: 20px;
    padding: 20px;
}

h1 {
    font-size: 4vmax;
    background: rgb(138, 43, 226);
    background-clip: text;
    -webkit-text-fill-color: transparent;
    text-align: center;
}

.upload-image {
    max-width: 600px;
    width: 90%;
    height: 300px;
    background: rgb(138,43,226); /* Gradasi warna */
    border-radius: 15px;  /* Sudut yang lebih halus */
    box-shadow: 4px 4px 20px rgba(0, 0, 0, 0.3); /* Bayangan lebih halus */
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-direction: column;
    transition: all 0.3s ease-in-out;
}

.upload-image:hover {
    transform: scale(1.05); /* Efek zoom saat hover */
    box-shadow: 6px 6px 30px rgba(0, 0, 0, 0.5);
}

.inner-upload-image {
    width: 100%;
    height: 80%;
    background-color: rgb(21, 26, 32);
    border-radius: 10px;  /* Sudut lebih halus */
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 20px;
    color: white;
    font-size: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.inner-upload-image:hover {
    box-shadow: inset 2px 2px 10px rgba(0, 0, 0, 0.7); /* Efek inset lebih menarik */
    background-color: rgb(42, 51, 62);
}

button {
    background-color: black;
    padding: 10px 20px;
    font-size: 20px;
    border: none;
    border-radius: 25px;  /* Sudut tombol yang lebih melengkung */
    color: white;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

button:hover {
    background-color: rgb(42, 51, 62); /* Warna lebih gelap saat hover */
}

#image {
    width: 100%;
    height: 100%;
    display: none;
    border-radius: 15px; /* Sudut lebih halus */
}

.output {
    width: 100%;
    max-width: 90%;
    background-color: rgb(138,43,226);
    color: white;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.5);
    border-radius: 10px; /* Sudut lebih halus */
    display: none;
    padding: 20px;
    font-size: 20px;
    overflow: auto;
}

#text {
    width: 100%;
    white-space: normal;
    word-wrap: break-word;
    word-break: break-word;
    overflow-wrap: break-word;
    line-height: 1.5;
    word-spacing: 0.5px;
    display: block;
    margin-top: 10px;
}

#loading {
    margin-top: 30px;
    filter: drop-shadow(2px 2px 10px black);
    display: none;
}
