
* {
    box-sizing: border-box;
}

html {
    font-family: sans-serif;
}

body {
    margin: 0;
}

header {
    background-color: white;
    border-radius: 4px;
    padding: 24px;
    margin: 0 auto;
    padding-bottom: 48px;
    margin-bottom: 48px;
}

h1 {
    text-align: center;
    font-size: 24px;
    color: #2F0C7A;
    animation: shadow-dance 2s infinite;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
}

form label {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: start;
    gap: 4px;
    width: 100%;
}

form label input[type="text"],
form label input[type="url"]{
    flex-grow: 1;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

input[type="file"] {
    padding: 12px 0;
}

input[type="text"],
input[type="url"],
input[type="file"] {
    width: 100%;
}

form label:has(input[type="radio"]) {
    cursor: pointer;
    flex-direction: row;
    align-items: center;
    justify-content: start;
    text-align: left;
    gap: 12px;
}

.custom-logo {
    /* made visible via javascript if you select the custom option */
    display: none;
}

input[type="radio"] {
    flex-grow: 0;
}

fieldset.logo {
    border: none;
    width: 100%;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

fieldset.logo legend {
    text-align: left;
}

main {
    text-align: center;
    display: none;
    margin-bottom: 120px;
}

body.generated main {
    display: block;
}

button {
    background-color: green;
    color: white;
    padding: 12px 24px;
    font-size: 24px;
    border: none;
    border-radius: 4px;
    cursor: pointer;

}

#result-container {
    margin: 24px;
    display: inline-block;
    box-shadow: 0px 0px 20px -10px #000;
    overflow: hidden;
    border-radius: 3px;
}

#result {
    background-color: white;
    font-family: sans-serif;
    width: 400px;
    height: 400px;
    text-align: center;
    padding: 12px;
}

#result p {
    margin: 6px 0;
    padding: 0;
    font-size: 20px;
}

.hint {
    font-style: italic;
    color: #333;
}

header .hint {
    text-align: center;
}

@keyframes shadow-dance {
    0%,
    100% {
        text-shadow: 0 0 12px #858AFA, 0 0 24px #858AFA, 0 0 48px #858AFA;
    }

    50% {
        text-shadow: 0 0 12px #858AFA;
    }
}

summary {
    text-align: center;
    cursor: pointer;
}

details > div {
    background-color: #858AFA44;
    padding: 4px 12px;
    border-radius: 4px;
    margin-top: 4px;

}
