@font-face {
    font-family: "Gloria Hallelujah";
    src: url('../fonts/GloriaHallelujah-Regular.ttf');
}
@font-face {
    font-family: "Rock Salt";
    src: url('../fonts/RockSalt-Regular.ttf');
}
@font-face {
    font-family: "AmaticSC";
    src: url('../fonts/AmaticSC-Regular.ttf');
}
@font-face {
    font-family: "Handlee";
    src: url('../fonts/Handlee-Regular.ttf');
}
@font-face {
    font-family: "Livvic";
    /*src: url('../fonts/Livvic-ExtraLight.ttf');*/
    src: url('../fonts/Livvic-Light.ttf');
}
@font-face {
    font-family: "PlaywriteZA";
    src: url('../fonts/PlaywriteZA-VariableFont_wght.ttf');
}
@font-face {
    font-family: "Shantell Sans";
    src: url('../fonts/ShantellSans-VariableFont_BNCE,INFM,SPAC,wght.ttf');
}
@font-face {
    font-family: "Zain";
    src: url('../fonts/Zain-ExtraLight.ttf');
}
/*@font-face {*/
/*    font-family: "";*/
/*    src: url('../fonts/');*/
/*}*/

/* Generic Styles */

html {
    text-align: center;
    background-image: url("../images/background-watercolor-paper.png");
    background-repeat: repeat;
    background-blend-mode: darken;
    background-color: #f7f3e9;
    /*background-color: rgba(247, 243, 233, 0.5);*/
    color: #1f1e1d;
    font-size: 1.3rem;
    font-family: "Livvic", sans-serif;
    /*font-family: "Handlee", sans-serif;*/
    font-weight: 400;
    font-style: normal;
}

em {
    text-transform: uppercase;
}

h1 {
    font-size: 3rem;
    font-family: "PlaywriteZA";
    font-weight: 300;
    margin: 2rem 5%;
    color: #33302e;
}
@media (max-width: 600px) {
    h1 {
        font-size: 2rem;
    }
}

h2 {
    font-size: 2rem;
}
@media (max-width: 600px) {
    h2 {
        font-size: 1.5rem;
    }
}

a {
    color: inherit;
}

a.active {
    font-family: "Shantell Sans", cursive;
}

img#header {
    width: 29rem;
    border-radius: 3%;
}
@media (max-width: 600px) {
    img#header {
        width: 100%;
        max-width: 100% !important;
    }
}


/* Homepage */

.margin {
    font-family: "Shantell Sans";
    display: inline-block;
    overflow: hidden;
}
@media (max-width: 1200px) {
    .margin {
        display: none !important;
    }
}
.margin img {
    display: inline-block;
    width: 7rem;
}
.margin p {
    font-size: 3rem;
    color: #b3101a;
    margin: -1.5rem 0 0 0;
}

#left-margin {
    margin: 0 1rem 10rem auto;
    font-family: "Gloria Hallelujah";
}
#left-margin img {
    padding: 0 0 0rem 8rem;
}
#right-margin {
    margin: 0 auto 3.5rem 1rem;
    font-family: "Gloria Hallelujah";
}
#right-margin img {
    padding: 0 7rem 0rem 0;
}

img#home-banner {
    width: 500px;
    border-radius: 3%;
}
@media (max-width: 500px) {
    img#home-banner {
        width: 100%;
        max-width: 100% !important;
    }
}

img#strokes {
    width: 100px;
    margin: 20px 0 35px 20px;
}

#links-header {
    font-family: "Handlee", cursive;
    font-weight: 300;
}

ul#links {
    font-family: "Handlee", cursive;
    list-style-type: none;
    padding-left: 0;
}

ul#links li {
    display: inline-block;
    padding: 0 2em 0 2em;
    font-size: 1.3em;
}
@media (max-width: 600px) {
    ul#links li {
        font-size: 1em;
    }
}


img#bridge-footer {
    width: 200px;
}

/* Other Pages */

div.list-of-links {
    max-width: 25rem;
    margin: auto;
}
div.list-of-links ul li {
    list-style-type: none;
    text-align: center;
}

img.article-img {
    max-width: 600px;
    border-radius: 3%;
}
@media (max-width: 600px) {
    img.article-img {
        width: 100%;
        max-width: 100% !important;
    }
}

#back {
    margin: 0 20px 0 20px;
    text-align: left;
}
#back a {
    text-decoration: none;
    border-bottom: 1px solid;
}
img#home-button {
    width: 1rem;
}

img#bouquet-footer {
    width: 85px;
}

img.star-footer {
    width: 1rem;
    margin: 0 0.5rem 0 0.5rem;
}

img#gift-footer {
    width: 80px;
    opacity: 100%;
}

img.gifts-footer {
    width: 2rem;
    margin: 0 2rem 0 2rem;
}

div#footer {
    text-align: center;
}
img#melona-footer {
    width: 100px;
}

/* FAQ */

div#faq-wrap {
    text-align: center;
}

div#faq {
    text-align: left;
    display: inline-block;
    max-width: 800px;
}

#faq h3 {
    margin: 20px 0 8px 0;
}

#faq p {
    margin: 0 0 20px 0;
}

/* RSVP */
button#submit-btn, select.form-required, option {
    /*font-family: "Handlee", sans-serif;*/
    font-family: "Livvic", sans-serif;
}

/* Registry */

div#money {
    margin: auto;
    max-width: 900px;
}
div#money-followup {
    margin: 0 auto 3rem auto;
    max-width: 900px;
}

div#money-links {
    margin: 0 0 3rem 0;
}
div.money-link {
    margin: 0 25px 0 25px;
    display: inline-block
}
div.money-link img {
    width: 200px;
}

div#earmarks {
    text-align: left;
    display: inline-block;
}

div#gifts {
    margin: auto;
    max-width: 900px;
}
#registry img#registry-strokes {
    width: 5rem;
    margin: 0 0 2.5rem 0;
}
#registry>table {
    margin: auto;
    text-align: left;
    border-collapse: separate;
    border-spacing: 0 1rem;
}
@media (max-width: 600px) {
    #registry>table {
        border-spacing: 0 0;
        font-size: 0.8rem;
    }
}
#registry>table>thead>tr>th, #registry>table>tbody>tr>td {
    padding: 1em;
}
@media (max-width: 600px) {
    #registry>table>thead>tr>th, #registry>table>tbody>tr>td {
        padding: 0.3em;
    }
}
#registry>table>tbody tr:nth-child(odd) td {
    background-color: #eeeadf;
}
#registry>table>tbody>tr>td:first-child {
    border-top-left-radius: 8%;
    border-bottom-left-radius: 8%;
}
#registry>table>tbody>tr>td:last-child {
    border-top-right-radius: 8%;
    border-bottom-right-radius: 8%;
}
#registry>table>tbody>tr>td img {
    width: 100px;
    border-radius: 8%;
}
@media (max-width: 500px) {
    #registry>table>tbody>tr>td img {
        display: none;
    }
}
#registry button {
    font-family: "Livvic", cursive;
    height: 3em;
    padding: 12px;
    border-radius: 8%;
    border: 0;
    font-size: 1rem;
    background-color: #d9ceb2;
    cursor: pointer;
}
#registry .claimed {
    color: #918a83;
}
#registry .claimed button {
    background-color: #e6ddc8;
    cursor: default;
}

dialog {
    width: 20rem;
}
button#submit-claim {
    background-color: #75c26d;
}
p.item-link {
    margin-left: 3.5rem;
    text-align: left;
}
p.address {
    margin-left: 3.5rem;
    text-align: left;
}
div.claim-form-buttons {
    margin-top: 2rem;
}

/* Melona */

div#ranked-list {
    text-align: left;
    display: inline-block;
    max-width: 800px;
    font-size: 1.3em;
}

/* CSS Spinner */
/* https://cssloaders.github.io/ */
.loader {
  width: 48px;
  height: 48px;
  background: #FF3D00;
  display: block;
  margin: 20px auto;
  position: relative;
  box-sizing: border-box;
  animation: rotationBack 1s ease-in-out infinite reverse;
}
.loader::before {
  content: '';
  box-sizing: border-box;
  left: 0;
  top: 0;
  transform: rotate(45deg);
  position: absolute;
  width: 48px;
  height: 48px;
  background: #FF3D00;
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
.loader::after {
  content: '';
  box-sizing: border-box;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  position: absolute;
  left: 50%;
  top: 50%;
  background: #FFF;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 5px rgba(0, 0, 0, 0.15);
}
@keyframes rotationBack {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-360deg);
  }
}
