@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@1,600&family=UnifrakturMaguntia&display=swap');

html { min-height: 100%; }

body {
    background-color: #edeae5;
    background-image: url(/vine-ornament.svg);
    background-size: 125%;
    background-position: bottom right;
    background-repeat: no-repeat;
    background-attachment: fixed;
    color: #2f2f30;
    margin-left: 29rem;
    margin-right: auto;
    margin-top: 2rem;
    margin-bottom: 2rem;
    max-width: 40rem;
    font-family: "Cormorant Garamond", Garamond, Times, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
    min-height: 100%;
}

body.rsvp {
    max-width: auto;
}

*::selection {
    color: #2f2f30;
    background-color: #dbddbd;
    text-shadow: none;
}

@media only screen and (max-width: 80em) {
    body { 
        margin-left: 0; 
        padding: 1.667em; 
    }
    #border { 
        display: none; 
    }
    h1 { 
        position: static !important;
        display: block; 
        animation: none; 
        top: inherit; 
        left: inherit; 
    }
    h2 { 
        position: static !important;
        display: block; 
        top: inherit; 
        left: inherit; 
    }
}

body.rose-left:before {
    content: "";
    position: fixed;
    height: 20%;
    width: 20%;
    top: 70%;
    left: 5%;
    z-index: -1;
    background-image: url(/rose-ornament.svg);
    background-size: 100% 100%;
    background-position: 0 0;
    transform: rotate(180deg);
    background-repeat: no-repeat;
}
body.rose-left {
    background-color: #edeae5;
    background-image: none;
}

body.rose-right {
    background-color: #edeae5;
    background-image: url(/rose-ornament.svg);
    background-size: 10%;
    background-position: 90% 10%;
    background-repeat: no-repeat;
    background-attachment: fixed;
}

body.front-door {
    color: #2f2f30;
    margin-left: auto;
    margin-right: auto;
    max-width: 40rem;
    font-family: "Cormorant Garamond", Garamond, Times, serif;
    font-weight: 600;
    font-style: italic;
    font-size: 1.5rem;
    text-align: center;
}

@keyframes fade-in-1 {
    0% { opacity: 0; margin-top: 0; }
    20% { opacity: 0; margin-top: 0; }
    100% { opacity: 1; margin-top: 12.5rem; }
}

@keyframes fade-in-2 {
    0% { opacity: 0; }
    20% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes fade-in-photo {
    0% { opacity: 0; }
    20% { opacity: 0; }
    100% { opacity: 1; }
}

@keyframes arise {
    0% { margin-top: 100%; }
    100% { margin-top: 0; }
}

@keyframes arise-h1 {
    0% { top: 50%; left: 33%; opacity: 0; }
    100% { top: -2.333rem; left: 1rem; opacity: 100%; }
}

@keyframes border-fade-in {
    0% { opacity: 0; }
    33% { opacity: 0; }
    100% { opacity: 100%; }
}

@keyframes fade-out {
    0% { opacity: 100%; }
    100% { opacity: 0%; }
}

#all-the-roses {
    position: fixed;
    top: 0;
    left: 0;
    background-image: url(/rose-ornament.svg);
    background-size: 10%;
    background-position: 90% 10%;
    background-repeat: repeat;
    background-attachment: fixed;
    margin: -100%;

    z-index: -1000;
    min-height: 300vh;
    min-width: 300vw;

    animation: fade-out 5s;
    opacity: 0;
}

#border {
    animation: border-fade-in 3s;
    position: fixed;
    top: 0;
    left: 0;
    width: calc(100% - 1rem);
    height: calc(100% - 1rem);
    z-index: -1000;
}

#border>rect {
    display: inline;
    fill: #2f2f30;
    stroke: none;
}

body.front-door h2, body.front-door  h3, body.front-door  h4 { animation: fade-in-2 3s }
body.front-door p, body.front-door ul, body.front-door hr {animation: fade-in-2 5s }
body.front-door h2 {
    text-transform: none;
    color: #284a70;
    position: relative;
    top: 0; left: 0;
    width: 40rem;
}
body.front-door h1 {
    background: none;
    text-transform: lowercase;
    animation: fade-in-1 1s;
    margin-top: 12.5rem;
    margin-left: auto;
    margin-right: auto;
    position: relative;
}

h1 {
    text-transform: lowercase;
    position: fixed;
    animation: arise-h1 1s;
    top: -2.333rem; left: 1rem;
    color: #284a70;
}

h2 {
    text-transform: lowercase;
    position: fixed;
    top: 50vh; left: 2rem;
    width: 20rem;
    color: #cc617f;
}

h1>em {
    font-family: "UnifrakturMaguntia", "Zapf Chancery", Fraktur, fantasy;
    font-style: normal;
    color: #cc617f;
    text-shadow: -2px 0 #284a70, 0 2px #284a70, 2px 0 #284a70, 0 -2px #284a70;
}

h2>em {
    color: #cc617f;
    text-shadow: -2px 0 #284a70, 0 2px #284a70, 2px 0 #284a70, 0 -2px #284a70;
}

h1 { font-size: 5rem; }
h2 { font-size: 4rem; }
h3 { font-size: 3rem; }
h4 { font-size: 2rem; }
h5 { font-size: 1.5rem; }
h6 { font-size: 1.25rem; }

h1, h2, h3, h4, h5, h6 { clear: both }

p {
    text-align: justify;
    text-indent: 3rem;
    margin-right: 2rem;
}

ul {
    text-align: left;
}

li {
    text-align: left;
}

a:link, a:visited { color: #284a70; text-decoration: 1px underline #284a70; }
a:hover, a:active { color: #cc617f; text-decoration: 1px underline #284a70; }

i>a:link, i>a:visited { color: #cc617f; text-decoration: 1px underline #284a70; }
i>a:hover, i>a:active { color: #cc617f; text-decoration: 1px underline #284a70; }

table.invitations {
    font-family: Times, serif;
}

table.invitations th {
    text-decoration: underline;
    text-align: center;
    font-style: normal;
    font-weight: 100;
    font-size: 1rem;
}

table.invitations td {
    text-align: left;
    font-style: normal;
    font-weight: 100;
    font-size: 1rem;
}

dl {
    clear: both;
}

dl dt {
    text-align: left;
    margin-top: 3rem;
    margin-left: 3rem;
    font-weight: bold;
    font-size: 1.25em;
}

dl dd {
    clear: right;
    text-align: left;
    margin-left: 4rem;
}

dl strong {
    text-transform: lowercase;
    margin-left: 3rem;
    margin-right: 24%;
    float: right;
    clear: both;
    font-size: .75em;
    letter-spacing: .4em;
    color: #cc617f;
    font-family: "Cormorant Garamond", Garamond, Times, serif;
    font-weight: 600;
    font-style: italic;
    margin-bottom: -.13em;
}

dl dd h4 {
    float: right;
    margin-left: 40%;
    margin-right: 10%;
    margin-top: 1rem;
    color: #284a70;
    font-weight: bold;
    text-transform: lowercase;
    font-size: 2rem;
}

dl dd h4 strong {
    text-transform: lowercase;
    font-family: "UnifrakturMaguntia", "Zapf Chancery", Fraktur, fantasy;
    font-style: normal;
    font-size: 2rem;
    margin-left: -40%;
    margin-top: -1rem;
    color: #cc617f;
}

dl dd ul {
    margin-left: 20%;
    clear: both;
    margin-top: 0;
}

dl dd i {
    font-style: normal;
    font-weight: bold;
    color: #cc617f;
    font-size: .75em;
}

hr { width: 50%;
     color: #cc617f;
     clear: both; }

table.facts {
    font-size: 1.33em;
    float: right;
    margin-right: 2em;
}

table.facts th {
    font-family: "UnifrakturMaguntia", "Zapf Chancery", Fraktur, fantasy;
    font-style: normal;
    text-transform: lowercase;
    color: #cc617f;
    text-align: right;
}

table.facts td {
    color: #284a70;
    text-align: left;
}

.enchanted {
  /* Fallback: Set a background color. */
  background-color: #cc617f;
  
  /* Create the gradient. */
  background-image: radial-gradient(
      #284a70 0%,
      #cc617f 25%,
      #cc617f 100%);
  
  /* Set the background size and repeat properties. */
  background-size: 100%;
  background-repeat: no-repeat;

  background-attachment: local;
  background-position-y: -.4em;
  background-position-x: -.6667em;

  /* Use the text as a mask for the background. */
  /* This will show the gradient as a text color rather than element bg. */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
}

.enchanted::selection {
  /* Fallback: Set a background color. */
  background-color: #dbddbd;
  
  /* Create the gradient. */
  background-image: none;  
  -webkit-background-clip: unset;
  -webkit-text-fill-color: #2f2f30; 
}

.rainbow {
  /* Fallback: Set a background color. */
  background-color: #CA4246;
  
  /* Create the gradient. */
   background-image: linear-gradient(
        45deg,
        #CA4246 16.666%, 
        #E16541 16.666%, 
        #E16541 33.333%, 
        #F18F43 33.333%, 
        #F18F43 50%, 
        #8B9862 50%, 
        #8B9862 66.666%, 
        #476098 66.666%, 
        #476098 83.333%, 
        #A7489B 83.333%);
  
  /* Set the background size and repeat properties. */
  background-size: 100%;
  background-repeat: repeat;

  /* Use the text as a mask for the background. */
  /* This will show the gradient as a text color rather than element bg. */
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; 
}

img.polaroid {
    max-height: 100%;
    max-width: 100%;
    width: 80%;
    padding: 1rem 1rem 3rem 1rem;
    background-color: white;
    border: solid #2f2f30;
    border-width: 2pt 6pt 6pt 2pt;
    animation: fade-in-photo 6s;
}

audio#september {
    position: fixed;
    bottom: 0;
    left: 0;
}

/* everything below the following will be cut */

@media print {
    body { 
        margin: 0; 
        padding: 1.667em;
        font-size: 1rem;
    }
    .front-door h1 {
        animation: none;
    }
    #border { 
        display: none; 
    }
    h1 { 
        position: static !important;
        animation: none; 
        display: block; 
        top: inherit; 
        left: inherit;
        float: left;
        margin: 0;
        padding: 0;
    }
    h2 { 
        position: static !important;
        display: block; 
        top: inherit; 
        left: inherit;
        float: right;
        margin: 0;
        padding: 0;
    }
    .enchanted {
        background-color: #dbddbd;
        background-image: none;  
        -webkit-background-clip: unset;
        -webkit-text-fill-color: #cc617f; 
    }
    * { animation: none !important; }
}

@media only screen and (hover: none) {
    body { 
        margin-left: 0; 
        padding: 1.667em; 
    }
    #border { 
        display: none; 
    }
    h1 { 
        position: static !important;
        display: block; 
        animation: none; 
        top: inherit; 
        left: inherit; 
    }
    h2 { 
        position: static !important;
        display: block; 
        top: inherit; 
        left: inherit; 
    }
}

.hidden {
    opacity: 0;
}

form div {
    text-align: left;
    font-size: 80%;
}

form div.right {
    text-align: right !important;
}

form input[type=text], textarea {
    background-color: #edeae5;
    color: #2f2f30;
    font-size: 1em;
    border: 2px solid #284a70;
    border-radius: .333ex;
    padding: .5ex;
    margin: .5ex;
    font-family: "Cormorant Garamond", Garamond, Times, serif;
}

form select {
    background-color: #edeae5;
    color: #2f2f30;
    font-size: 1em;
    border: 2px solid #284a70;
    border-radius: 1ex;
    padding: .5ex;
    margin: .5ex;
    font-family: "Cormorant Garamond", Garamond, Times, serif;
}

form input[type=submit], form input[type=button], button {
    background-color: #284a70;
    color: #edeae5;
    font-size: 1.25em;
    border: 2px solid #284a70;
    border-radius: 1em;
    padding: .5ex;
    margin: .5ex;    
    font-family: "Cormorant Garamond", Garamond, Times, serif;
    min-width: 1.5em;
    padding-left: 1em;
    padding-right: 1em;
}

form input[type=button].remove {
    background-color: #cc617f;
}

form input[type=submit].send {
    background-color: #dbddbd;
    color: #2f2f30;
    border-color: #2f2f30;
}

*::placeholder {
    color: #e0b392;
}

.removing {
    opacity: 50%;
    background-color: transparent;
}

