* {
    color: rgb(221, 27, 27);
    font-family: 'LastChristmas', sans-serif;
    font-size: 16px;
    background-color: rgb(221, 184, 142);
    /*Fixed input fields properly shrinking */
    box-sizing: border-box;       
    border-radius: 5px;
}

dialog {
    scale: 0;
    display: block;
    transition: all .5s;
    margin:auto;
    z-index: 2;

    &[open] {
        opacity: 1;
        scale: 2;
    }
}

body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border: 8px solid;
    border-image: repeating-linear-gradient(45deg, red, red 10px, white 10px, white 20px);
    border-image-slice: 7;
    margin: 40px 180px; /* Default margins for desktop */
    padding-bottom: 20px;
    position: relative;
}

/* Better margins for mobile users */ 
@media (max-width: 768px) {
    body {
        margin: 20px;
    }
}


#fname, #lname, .wishes_input {
    /* This helped box shadow get ontop of title containers */
    position:relative;
    z-index: 1;

    color: rgb(39, 182, 39);
    margin: 0px 1px 1px 0px;
    border: 1px solid green;
    margin-top: 2px;
    font-size: xx-large;
    box-shadow: 0px 2px 2px rgba(0, 0, 0, 0.2);

    &:hover {
        border: 1px solid salmon;
        box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
        text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    }

    &:focus {
        box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        text-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
        outline: chocolate;
    }
}

input[type="text"]:-webkit-autofill {
    /* how does this control autofill box color? */
    box-shadow: 0px 0px 0px 1000px rgb(221, 184, 142) inset !important;
    /* How does this control autofill text color?!? */
    transition: background-color 5000s ease-in-out, color 5000s ease-in-out;
}

/* Input styles for normal states */
input[type="text"] {
    width: 100%;
    padding: 12px 20px;
}

h1 {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    margin-bottom: 2px;
    /* snow effect with text shadow?*/
    text-shadow: 0px 4px 8px rgba(250, 250, 250 , 12);
}

label {
    font-size: 24px;
    font-weight: bold;
    display: inline-block;
    margin-bottom: 10px;
}

@font-face {
    font-family: 'LastChristmas';
    src: url('LastChristmas_PERSONAL_USE_ONLY.otf') format('opentype');
    font-size: 16px
}

#submitBtn {
    background-color: rgb(7, 155, 7);
    color: rgb(221, 208, 208);
    border-radius: 10px;
    border-color: red;
    border-width: 2px;
    width: 30%;
    margin-top: 10px;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}

#submitBtn:hover {
    background-color: blue;
    border-color: green;

}

#openDialog:hover {
    background-color:rgb(29, 29, 231);
    border-color: rgb(11, 141, 11);   
    color:white;
    box-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
    text-shadow: 0px 4px 8px rgba(0, 0, 0, 0.2);
}