body {
    margin: 0;
    width: 100%;
    font-family: "Lora";
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

header {
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    padding-left: 2em;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    cursor: default;
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

header .logo {
    height: 2.5em;
    display: inline-block;
    margin-right: .7em;
}

header h1 {
    display: inline-block;
    margin: 0;
}

header h1 > a {
    color: black;
    text-decoration: none;
}

main {
    padding: 3em;
    font-size: 1.2em;
    max-width: 600px;
    margin: 0 auto;
    margin-top: 2em;
    margin-bottom: 2em;
    background-color: rgba(255, 255, 255, 0.9);
    border: 5px solid rgba(255, 255, 255, 1);
    border-radius: 1em;
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.6);
}

main h1 {
    font-size: 1.8em;
    text-align: center;
}

main p {
    text-align: justify;
}

main > :first-child {
    margin-top: 0;
}

main form {
    width: 100%;
    box-sizing: border-box;
}

main input,
main button,
a.linkbutton {
    width: 100%;
    box-sizing: border-box;
    display: block;
    margin-bottom: .5em;
    border: 1px solid #ccc;
    padding: .5em;
    border-radius: 5px;
    background-color: white;
    font-size: 1.1em;
    font-family: "Quicksand";
    font-weight: bold;
    box-shadow: 0 0 5px rgba(0,0,0,0.1);
}

a.linkbutton {
    text-decoration: none;
    color: black;
    text-align: center;
}

main input[type="submit"],
main button,
a.linkbutton {
    cursor: pointer;
}

main input[type="submit"]:hover,
main button:hover,
a.linkbutton:hover {
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
}

footer {
    width: 100%;
    box-sizing: border-box;
    padding: 1em;
    background-color: rgba(255, 255, 255, 0.8);
    box-shadow: 0 0 10px rgba(0,0,0,0.3);
    margin-top: auto;
}

footer > p {
    margin: 0;
}

.error {
    color: red;
    margin-top: .5em;
    margin-bottom: .5em;
}

.success {
    color: rgb(29, 190, 29);
    margin-top: .5em;
    margin-bottom: .5em;
}

/* custom css for hr-code */

#output-canvas {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: red;
    box-shadow: 0 0 5px rgba(0,0,0,0.5);
    display: none;
    max-width: min(90vh, 90vw);
}

body {
    background-image: url("assets/background.png");
    background-size: 100%;
}

.background {
    position: fixed;
    width: 100%;
    height: 100%;
    z-index: -1;
    backdrop-filter: blur(10px);
    background-color: rgba(255, 255, 255, 0.5);
}

.download-buttons-container {
    margin-top: 1em;
    display: grid;
    gap: 1em;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.download-buttons-container > button {
    margin: 0;
}

@media screen and (max-width: 1000px) {
    main {
        padding: 1em;
    }
}

.input-container {
    display: grid;
    grid-template-columns: 2.5em 1fr;
    gap: .5em;
}

.input-type-switch {
    width: 2.5em;
    height: 2.5em;
    background-size: 80%;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    border-radius: 5px;
}

.input-type-switch:hover {
    box-shadow: 0 0 5px rgba(0,0,0,0.3);
}

.input-type-switch[data-type="url"] {
    background-image: url("assets/url-logo.svg");
}

.input-type-switch[data-type="tel"] {
    background-image: url("assets/tel-logo.svg");
}

.input-type-switch[data-type="mail"] {
    background-image: url("assets/mailto.svg");
}