:root {
    overscroll-behavior: none;
}

#dot {
    display: none;
    width: 10px;
    height: 10px;
    position: relative;
    background-color: green;
    top: 0;
    left: 0;
    z-index: 100;
}

html {
    background-color: black;
    color: white;
}

body {
    overscroll-behavior-y: none;
    text-align: center;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

html,
body {
    height: 100%;
    min-height: 100%;
    margin: 0;
}

html {
    overflow: hidden auto;
}

*:focus {
    outline: none;
}

.readerModeOnly {
    height: 0px;
    margin: 0px;
    font-size: 0px;
    opacity: 0;
}

i {
    font-style: italic;
}

#wrapper {
    min-height: 100%;
    position: relative;
    width: 100%;
    text-align: center;
    top: 0px;
    overflow: hidden;
}

.hasname {
    display: none;
}

#belowfold {
    position: relative;
    top: 0px;
    z-index: 1015;
}

.clear {
    clear: both;
}

a {
    color: inherit;
}

html.js .no-js,
.no-js {
    display: none;
}

html.js .js,
.js {
    display: block;
}

h1 {
    font-size: 30px;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 800;
    text-shadow: 2px 2px rgba(0, 0, 0, 0.6);
}

div {
    font-size: 20px;
}

.nowrap {
    white-space: nowrap;
}

.quote {
    font: 18px 'Merienda One', Times, serif;
}

.italic {
    font-style: oblique;
}

.leftalign {
    text-align: left;
}

#response {
    margin-top: 10px;
}

#welcome,
#info,
#location {
    position: relative;
    z-index: 100;
    color: white;
    text-align: center;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
    font-weight: 500;
}

#imagewrapper {
    position: absolute;
    top: -300px;
    left: 50%;
    margin-left: -2000px;
    width: 4000px;
}

#info,
#location {
    font-size: 24px;
}

#content,
#centercontent {
    /* pointer-events: none; */
    position: relative;
    width: calc(100% - 40px);
    max-width: 800px;
    position: relative;
    margin: 0 auto;
}

/* local font-face: prefer modern WOFF2 with TTF/OTF fallback */
@font-face {
    font-family: 'Salium';
    src: url('../fonts/Salium.woff2') format('woff2'),
        url('../fonts/Salium.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'VerondSon';
    src: url('../fonts/VerondSon-Regular.woff2') format('woff2'),
        url('../fonts/VerondSon-Regular.ttf') format('truetype');
    font-weight: 400;
    font-style: normal;
    font-display: swap;
}

@font-face {
    font-family: 'Riemish';
    src: url('../fonts/Riemish.woff2') format('woff2'),
        url('../fonts/Riemish.otf') format('opentype');
    font-weight: 400;
    font-style: normal;
    /* font-display: swap removed to prevent font swapping on summon-text */
}

/* Respect reduced motion: avoid animations and subtle transforms */
@media (prefers-reduced-motion: reduce) {
    .summon-arrow {
        transform: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .summon-text {
        transform: none;
        box-shadow: none;
    }
}

.notitle .ui-dialog-titlebar {
    display: none;
}

#sendinvite div {
    display: inline-block;
}

#sendinvite input,
#rsvp button {
    width: 120px;
}

#sendinvite #inviteemail {
    width: 260px;
}

#loading {
    display: none;
    width: 100%;
    margin: 15px 0;
    padding: 12px 16px;
    box-sizing: border-box;
    font-size: 15px;
    color: white;
    background-color: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    text-shadow: 2px 2px #000000;
}

#loading a {
    color: orange;
}

#loading p {
    margin-bottom: 10px;
}

.email-rsvp-head {
    margin-bottom: 12px;
}

.email-rsvp-names div {
    display: inline-block;
    margin: 0 0 12px 0;
}

.email-rsvp-names input {
    width: 120px;
}

.email-rsvp-names #fallback-email {
    width: 260px;
}

#fallback-response {
    margin-top: 8px;
}

.email-rsvp-question,
#fallback-guests-row,
#fallback-comment-row {
    margin-top: 12px;
}

#fallback-guests {
    width: 30px;
    text-align: center;
}

#fallback-guests-row button.mod {
    width: 50px;
    margin-left: .1em;
    margin-right: .1em;
}

#fallback-guests-row #fallback-guests {
    margin-left: .1em;
    margin-right: .1em;
}

#fallback-comment-row textarea {
    width: calc(min(100% - 10px, 500px));
    min-height: 70px;
    box-sizing: border-box;
    resize: vertical;
}

.email-rsvp-button {
    display: inline-block;
    margin: 10px 2px;
    vertical-align: middle;
    font-size: 18px;
    font-weight: bold;
    color: white !important;
    text-decoration: none;
}

#emailrsvp .cancel {
    vertical-align: middle;
}

#loading.loading::before {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-right: 8px;
    vertical-align: middle;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: orange;
    border-radius: 50%;
    animation: loading-spin 0.8s linear infinite;
}

@keyframes loading-spin {
    to {
        transform: rotate(360deg);
    }
}

#message,
.sometext {
    width: 100%;
    position: relative;
    margin-top: 30px;
    margin-bottom: 30px;
    font-size: 20px;
    line-height: 1.6;
    color: white;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 20px;
    box-sizing: border-box;
    border-radius: 10px;
    text-shadow: 2px 2px #000000;
    font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

.buttons {
    font-size: 14px;
    margin-bottom: 30px;
}

.button.ui-state-default {
    background-color: rgba(0, 0, 0, 0.6);
    background-image: none;
    color: orange;
}

.button.ui-state-hover {
    background-color: black;
    background-image: none;
    color: orange;
    border-color: black !important;
}

p {
    margin-bottom: 20px;
}

.nohash {
    display: none;
}

#rsvp button.mod {
    width: 50px;
}

#rsvp button.ui-button,
#rsvp input.ui-button {
    margin-left: .1em;
}

button.respbutton {
    margin-right: 10px;
    display: none;
    font-size: 0.9em;
}

#summary,
#noresponse {
    display: none;
}

#rsvpinfo .rsvpstep {
    display: none;
}

#rsvpcomment textarea {
    width: calc(min(100% - 10px, 500px));
    box-sizing: border-box;
    resize: none;
}

.ui-button-text {
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

#rsvp,
#invite,
#dialog,
#confirm,
#emailrsvp {
    display: none;
    text-align: center;
    margin: 0 auto 0 auto;
    z-index: 100;
}

#dialogbg {
    z-index: 100;
}

.ui-spinner,
button {
    margin: 10px;
}

.dialog input,
.dialog .ui-button.ui-state-default {
    background-image: none !important;
    background-color: rgba(85, 85, 85, 0.7) !important;
}

.dialog input.ui-state-focus,
.dialog .ui-button.ui-state-active,
.dialog .ui-button.ui-state-focus {
    background-color: rgba(255, 187, 0, 0.7) !important;
}

.dialog input.ui-state-hover,
.dialog button.ui-state-hover {
    background-color: rgba(255, 200, 0, 0.7) !important;
}

#numguests {
    width: 30px;
    text-align: center;
}

input[type=text],
input[type=password] {
    text-align: left;
    font-weight: bold !important;
    font-size: 18px !important;
}

.ui-dialog {
    z-index: 100001;
}

#dialogbg {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 200px;
    height: 200px;
    background-color: #768b52;
    opacity: 0.9;
    border-radius: 8px;
    padding: 12px 12px;
    z-index: 100000;
}

div.ui-widget-content {
    background-image: none;
    background: transparent;
    /*
       background-color: rgb(0, 0, 0);
       background-color: rgba(0, 0, 0, 0.3);
       */
    /*  background-color: rgba(48, 24, 83, 0.75);*/
}

button {
    border-radius: 5px;
}

button.rsvpbutton.ui-state-default,
a.rsvpbutton.ui-state-default {
    background-image: none;
    background-color: #00bb00;
    color: black;
}

button.rsvpbutton.ui-state-hover,
a.rsvpbutton.ui-state-hover {
    background-image: none;
    background-color: #00ff00;
}


/*textarea, select {
    background-color: black;
    color: white;
    border: 0px;
}*/

#rsvparea,
#rsvptable {
    font-family: Segoe UI, Arial, sans-serif;
    border-radius: 8px;
    padding: 10px 12px;
    position: relative;
    width: 100%;
    box-sizing: border-box;
    background: rgba(11, 10, 15, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: white;
}

#rsvparea {
    padding-top: 6px;
    position: relative;
    /* make z-index work */
    top: 0px;
    min-height: calc(100% - 415px);
    z-index: 1015;
    /* between brain (1010) and bottom (1020) */
}

#rsvparea .nohash {
    position: relative;
    z-index: 1016;
}

#rsvptable {
    display: none;
    font-size: 16px;
}

#rsvptable.ui-tabs .ui-tabs-nav li.ui-tabs-active {
    margin-bottom: 0px;
    padding-bottom: 0px;
}

#rsvptable.ui-tabs .ui-tabs-nav li a {
    padding: 0.2em 0.4em 0.2em 0.4em;
}

#rsvptable.ui-tabs ul.ui-tabs-nav {
    background-color: transparent;
    background-image: none;
    padding: 0;
}

.small {
    font-size: 14px;
}

#sendinvite {
    margin-top: 10px;
}

.rsvpreply {
    text-align: left;
    padding: 5px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.3);
}

.rsvpreply.listend {
    border: none;
}

.rsvpreply div {
    font-size: 16px;
}

.rsvpcomment {
    padding-left: 30px;
}

.rsvpname,
.rsvpresponse {
    font-weight: bold;
}

.rsvpyes .rsvpresponse,
.response .rsvpyes {
    font-weight: bold;
    color: rgb(0, 255, 0);
}

.rsvpmaybe .rsvpresponse,
.response .rsvpmaybe {
    font-weight: bold;
    color: yellow;
}

.rsvpno .rsvpresponse,
.response .rsvpno {
    font-weight: bold;
    color: orange;
}

.ui-tabs .ui-tabs-panel.rsvptab {
    padding: 5px;
    background-color: rgba(0, 0, 0, 0.2);
}

.badge.ui-icon {
    position: relative;
    top: 2px;
    margin-right: 5px;
    display: inline-block;
    border-radius: 8px;
    background-image: url(icons/ui-icons_222222_256x240.png);
}

/*
   #rsvparea {
    font-family: Segoe UI,Arial,sans-serif;
}
*/

.ui-icon-yes {
    background-position: -64px -145px;
    background-color: rgba(0, 255, 0);
}

.ui-icon-no {
    background-position: -80px -129px;
    background-color: red;
}

.ui-icon-maybe {
    background-position: -48px -145px;
    background-color: yellow;
}

.ui-icon-noresp {
    background-position: 0px -129px;
    background-color: gray;
}

#admin {
    display: none;
    position: fixed;
    top: 0px;
    left: 0px;
    width: 100%;
    height: 23px;
    z-index: 300;
    background-color: orange;
    text-align: center;
    z-index: 200000;
}

#rsvpcomment {
    margin-top: 10px;
}

.bold {
    font-weight: bold;
}

.underline {
    text-decoration: underline;
}

.examples {
    width: 800px;
    position: relative;
    left: 50%;
    margin-left: -400px;
}

.examples td {
    width: 400px;
    padding: 0 20px;
    font-size: 22px;
    font-weight: bold;
}

.labelrow td {
    padding-top: 30px;
}

#centercontent {
    width: 800px;
    top: 20px;
    margin-left: -400px;
    left: 50%;
}

.bigger {
    font-size: 24px;
}

#disclaimer {
    padding: 10px;
    border: 2px solid red;
    background: #ff5555;
    color: black;
    margin-bottom: 20px;
}

#idealink {
    margin-top: 8px;
    font-size: 20px;
}

#result {
    position: relative;
    width: 100%;
    height: 300px;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    overflow: hidden;
    padding: 5px 0px;
    margin-top: -50px;
}

#idea {
    position: relative;
    width: calc(100% - 20px);
    left: 10px;
    font-weight: bold;
    font-size: 30px;
    color: black;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    top: -50%;
    overflow-wrap: break-word;
    word-wrap: break-word;
}

.emoji {
    position: relative;
    margin-top: 10px;
}

#result {
    display: table;
    table-layout: fixed;
}

#middle {
    position: absolute;
    top: 50%;
    display: table-cell;
    vertical-align: middle;
    width: 100%;
    position: static;
}

#notch {
    position: relative;

    width: 0;
    height: 0;

    left: calc(50% + 25px);
    top: -50px;

    border-left: 25px solid transparent;
    border-right: 25px solid transparent;

    border-bottom: 50px solid rgba(255, 255, 255, 0.9);
}

#resultwrapper {
    position: relative;
    max-width: 440px;
    width: 100%;
    margin: 0px auto 0px auto;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 10px;
}

.thumb,
#clickagain {
    font-size: 24px;
    font-weight: bold;
    position: absolute;
    margin: 0px;
    bottom: -40px;
    left: 0px;
    cursor: pointer;
    display: none;
}

button.ui-button {
    background-image: none;
}

button.thumb.ui-state-default {
    background-color: rgba(0, 204, 0, 0.3);
    /* #00cc00 */
    ;
    color: black;
}

button.thumb.ui-state-hover {
    background-color: rgba(0, 255, 0, 0.5);
}

#thumbsdown.ui-state-default {
    background-color: rgba(221, 0, 0, 0.3);
    /* #dd0000; */
}

#thumbsdown.ui-state-hover {
    background-color: rgba(255, 0, 0, 0.5);
}

.thumb {
    height: 40px;
    bottom: -50px;
}

.thumb .ui-button-text {
    padding: .2em .6em;
}

#clickagain {
    width: 200px;
    text-align: center;
    left: 50%;
    margin-left: -100px;
    text-decoration: none;
    cursor: default;
}

#thumbsup {
    left: auto;
    right: 0px;
}

#clickinfo {
    font-size: 22px;
}

.health li:before {
    content: "- ";
}

/* What-to-bring dropdown, matched to the themed inputs and buttons in the RSVP dialog. */
#potluck {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  max-width: calc(100% - 20px);
  margin: 10px;
  padding: 0.4em 2.2em 0.4em 1em;
  border: 0;
  border-radius: 6px;
  background-color: rgba(85, 85, 85, 0.7);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23eeeeee' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.8em center;
  color: #eeeeee;
  font-family: Segoe UI, Arial, sans-serif;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
}

#potluck:hover {
  background-color: rgba(255, 200, 0, 0.7);
}

#potluck:focus {
  outline: none;
  background-color: rgba(255, 187, 0, 0.7);
}

#potluck option {
  background-color: #333333;
  color: #eeeeee;
}

/* Party is over: centered wrap-up note; invite line, invite text and RSVP areas hidden. To reopen,
   remove this block and the .party-over paragraph in index.html. */
#message {
  text-align: center;
}

#message .party-over {
  margin-bottom: 0;
}

#rsvparea,
#rsvptable,
#message .invite-text,
#welcome .invited-line {
  display: none !important;
}
