
html{
    height: 100%;
}

body{
    height: 100%;
    overflow-y: hidden;
  background: #063dfa;
  background-image: radial-gradient(50% 50%, #063dfa 50%, #68f1fe 66%, #063dfa 96%, transparent 99%), linear-gradient(rgba(0, 0, 0, .7) .1em, transparent .1em), linear-gradient(90deg, rgba(0, 0, 0, .7) .1em, transparent .1em);
  background-size: 11em 11em;



/*     background: rgb(131,234,241);
    background: linear-gradient(135deg, rgba(131,234,241,1) 9%, rgba(99,164,255,1) 99%);
  background: 063dfa;
  background-image: radial-gradient(50% 50%, #063dfa 50%, #68f1fe 66%, #063dfa 96%);
  background-size: 11em 11em;*/

    font-family: 'Arial', sans-serif;
    font-size: 1.25em;
    color: #afafb0;
    display: flex;
    align-items: center;
}

h1 {
    font-family: 'Arial Black', sans-serif;
}

h2 {
    font-family: 'Arial Black', sans-serif;
}

h3 {
    font-family: 'Arial Black', sans-serif;
}

.gridgradient{
  background-image: linear-gradient(rgba(0, 255, 0, .7) .1em, transparent .1em), linear-gradient(90deg, rgba(0, 255, 0, .7) .1em, transparent .1em);
  background-size: 3em 3em;
}

.container{
    margin: 0 auto;
    min-width: 60vw;
    max-width: 90vw;
    min-height: 60vh;
    max-height: 90vh;
    padding: 30px 0;
    background-color: rgba(11, 12, 19, .96);
    border-radius: 11px;
    box-shadow: rgba(50, 50, 93, .25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    overflow-y: auto;
}

.chaos a:link,
.chaos a:visited,
.chaos a:hover,
.chaos a:active {
  text-decoration: none !important;
  border: 0 !important;
  cursor: grab;
  color: #afafb0;
}

h1, h2, h3{
    margin: 0;
}

#intro{
    padding: 0 5%;
}

#outro{
    font-family: 'Arial', sans-serif;
    padding: 10% 5% 0 5%;
}

#outro a:link {
  color: white;
}

#outro a:visited {
  color: white;
}

#outro a:hover {
  color: white;
}

#outro a:active {
  color: white;
}

form section{
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    padding: 0 5%;
    margin-top: 20px;
}

.input-group {
    display: flex;
    flex-direction: column;
    margin: 10px;
}

.input-group label{
    padding-left: 10px;
}

.input-group input[type="text"] {
    height: 30px;
    width: 360px;
    border: 1px solid #01416b;
    border-radius: 6px;
    box-shadow: rgba(99, 99, 99, 0.1) 0px 2px 2px 0px;
    padding-left: 10px;
    margin: 3px 0 10px;
    color: #bbd3e6;
    font-size: 1.25em;
    background-color: #002b45;
}

.center{
    text-align: center;
}


#madlibs-submit button, 
#madlibs-reset {
    height: 40px;
    width: 250px;
    background-color: #6b423a;
    border: 3px solid #af6554;
    color: #f5e1d8;
    border-radius: 6px;
    padding: 10px;
    box-shadow: rgba(50, 50, 93, 0.25) 0px 13px 27px -5px, rgba(0, 0, 0, 0.3) 0px 8px 16px -8px;
    text-transform: uppercase;
    font-weight: 700;
    font-family: 'Arial Black', sans-serif;
}

.hide {
    display: none;
}

#completed-story{
    padding: 0 5%;
    margin-top: 15px;
    text-align: left;
    font-size: 1.5em;
    line-height: 2;
}

.inserted-text{
    border-bottom: 3px solid #977b43;
    font-weight: 700;
    background-color: #63522b;
    padding: 0 5px;
    margin: 0 5px;
    color: #f4eddf;
}


/* @media only screen and (max-width: 666px) {
    h2{
        font-size: 1em;
        margin-top: 5px;
    }
    .container{
        max-width: 100%;
        max-height: 85vh;
    }

    .input-group {
        margin: 5px;
    }

    #completed-story{
        font-size: 1em;
    }
} */


@media only screen and (max-width: 666px) {
    h2{
        font-size: 1em;
        margin-top: 5px;
    }
    .container{
        max-width: 100%;
        max-height: 85vh;
    }

    .input-group {
        margin: 5px;
    }

    #completed-story{
        font-size: 1em;
    }
} 

/*

#thegoodstuff { display: none; }
.img-responsive {
  display: inline-block;
  height: auto;
  max-width: 100%;
}



.className {
content:url('./spongeboblickchaos.gif');
position:fixed;
width: 250px;
height: 250px;
left:50%;
bottom:30px;
background-position:0px -178px;
z-index:1000;
} 
*/

/* From https://developer.mozilla.org/en-US/docs/Web/HTML/Reference/Elements/dialog 
   https://css-tricks.com/some-hands-on-with-the-html-dialog-element/ 
   https://stackoverflow.com/questions/16893804/css3-fallback-for-older-browsers
   https://developer.mozilla.org/en-US/docs/Web/CSS/Reference/Values/gradient/linear-gradient
   
     background: -moz-linear-gradient(
        center top,
        rgba(255, 255, 255, .2) 0%,
        rgba(255, 255, 255, .1) 100%
    );                                                                          */

dialog::backdrop {
  /* background: -moz-linear-gradient(
        center top,
        rgba(255, 255, 255, .2) 0%,
        rgba(255, 255, 255, .1) 100%
    ); 
    */
  background-image: linear-gradient(
    45deg,
    magenta,
    rebeccapurple,
    dodgerblue,
    green
  );
  background-image: -moz-linear-gradient(
    magenta,
    rebeccapurple,
    dodgerblue,
    green
  );    
  opacity: 0.75;
}