/* ------------------- */
/* Reset               */
/* ------------------- */

/* Box sizing */
*,
*::before,
*::after {
    box-sizing: border-box;
}

/* Reset margins */
body,
h1,
h2,
h3,
h4,
h5,
p,
figure,
picture {
    margin: 0; 
}

/* set up the body */
body {
    line-height: 1.5;
    min-height: 100vh;
}

/* make images easier to work with */
img,
picture {
    max-width: 100%;
    display: block;
}

/* make form elements easier to work with */
input,
button,
textarea,
select {
    font: inherit;
}

/* Fix font-weight on headings */
h1, h2, h3, h4, h5, h6 {
    font-weight: 400;
}

/* remove animations for people who've turned them off */
@media (prefers-reduced-motion: reduce) {  
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
    background-image: url(https://res.cloudinary.com/dhgghbt3s/image/upload/v1714665567/roman-empire-img-for-roman-numerals-converter-projects.jpg);
    background-position: center top;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: sans-serif;
    letter-spacing: 1px;
    padding: 2rem;
}

main {
    width: 90vw;
    max-width: 634px;
    background-color: white;
    padding: 2rem;
    border-radius: .5rem;
}

form {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

input {
    display: block;
    background-color: #EEEEEE;
    border: 0;
    border-radius: .5rem;
    padding-inline: .7rem;
    padding-block: .2rem;
    font-size: 24px;
    outline: 0;
    letter-spacing: .5px;
}

button {
    background-color: #323232;
    color: white;
    border: 0;
    outline: 0;
    border-radius: .5rem;
    padding: .5rem 1rem;
    font-size: 24px;
    letter-spacing: .5px;
}

#output {
    font-size: 36px;
    text-align: center;
    letter-spacing: 2px;
}

#signature {
    position: absolute;
    bottom: 0;
    right: 0;
    padding: .5rem;
    background-color: white;
}

@media (max-width: 700px) {
    h1 {
        font-size: 30px;
    }

    input {
        font-size: 24px;
    }
}