body {
    font-family: sans-serif;
    background-color: #101a23;
    color: #cbd5e0;
    margin: 0;
    padding: 0;
}

header {
    background-color: #101a23;
    padding: 1rem 2rem;
    border-bottom: 1px solid #4a5568;
    position: sticky;
    top: 0;
    z-index: 100;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo a {
    font-size: 1.5rem;
    line-height: 1.5rem;
    font-weight: bold;
    display: flex;
    justify-content: end;
    align-items: end;
}

.logo img {
    width: 1.5rem;
    margin-right: 0.25rem;
    animation: spin 2s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(-360deg);
    }
}

.logo span {
    color: #4299e1;
}

nav ul {
    list-style: none;
    display: flex;
    gap: 1.5rem;
    margin: 0;
    padding: 0;
}

a {
    text-decoration: none;
    color: #cbd5e0;
    font-weight: 500;
}

.button {
    background-color: #0d80f2;
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
}

.button:hover {
  background-color: #3182ce;
}

.button.active {
  background-color: #3182ce;
}

.button.danger {
    background-color: #2e4763;
}

.button.danger:hover {
  background-color: #223649;
}

.button.danger.active {
  background-color: #223649;
}

main {
    max-width: 800px;
    margin: 2rem auto;
    padding: 2rem;
    border-radius: 0.5rem;
}

h1 {
    text-align: center;
    margin-bottom: 2rem;
    margin-top: 0;
}

.drop-zone {
    border: 2px dashed #4a5568;
    border-radius: 0.5rem;
    padding: 2rem;
    text-align: center;
    cursor: pointer;
    position: relative;
}

.drop-zone__input {
    display: none;
}

.drop-zone__prompt {
    color: #a0aec0;
}

.drop-zone--over {
    border-color: #4299e1;
}

.max-size {
    font-size: 0.8rem;
    color: #a0aec0;
    margin-top: 0.5rem;
}

.form-group {
    margin-top: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
}

.form-group input {
    width: 100%;
    padding: 0.75rem;
    background-color: #1a202c;
    border: 1px solid #4a5568;
    border-radius: 0.25rem;
    color: #cbd5e0;
    box-sizing: border-box;
}

.upload-button {
    display: block;
    width: 100%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    margin-top: 1.5rem;
    text-align: center;
}

.main-button {
    display: block;
    width: 60%;
    padding: 0.75rem;
    border: none;
    border-radius: 0.5rem;
    font-size: 1rem;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    margin: 0.75rem auto auto auto;
}

.image-code-section {
    margin-top: 2rem;
    text-align: center;
}

.code-container {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 1rem;
}

.code-container input {
    background-color: #1a202c;
    border: 1px solid #4a5568;
    color: #cbd5e0;
    padding: 0.5rem;
    text-align: center;
    font-size: 1.2rem;
    border-radius: 0.25rem;
}

.code-container button {
    background-color: #4a5568;
    color: #cbd5e0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.code-container .button {
    color: #cbd5e0;
    border: none;
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    cursor: pointer;
}

.drop-zone__thumb {
  max-width: 100%;
  max-height: 30rem;
  margin-top: 1rem;
  overflow: hidden;
  background-color: #cccccc;
  background-size: cover;
  position: relative;
}

.drop-zone__thumb::after {
  content: attr(data-label);
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 5px 0;
  color: #ffffff;
  background: rgba(0, 0, 0, 0.75);
  font-size: 14px;
  text-align: center;
}


input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
    /* display: none; <- Crashes Chrome on hover */
    -webkit-appearance: none;
    margin: 0; /* <-- Apparently some margin are still there even though it's hidden */
}

input[type=number] {
    -moz-appearance:textfield; /* Firefox */
}

#result-image {
    max-width: 100%;
    max-height: 40rem;
    margin: auto;
}