html {
  scroll-behavior: smooth;
}

@font-face {
  font-family: 'CustomCursive';
  src: url('/static/wedding/fonts/JimmyScript-Rg.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cinzel-Black';
  src: url('/static/wedding/fonts/CinzelDecorative-Black.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Cinzel-Bold';
  src: url('/static/wedding/fonts/CinzelDecorative-Bold.woff') format('woff');
  font-weight: bold;
  font-style: normal;
}

@font-face {
  font-family: 'Cinzel';
  src: url('/static/wedding/fonts/CinzelDecorative-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

@font-face {
  font-family: 'Alice';
  src: url('/static/wedding/fonts/Alice-Regular.woff') format('woff');
  font-weight: normal;
  font-style: normal;
}

:root {
    --mobile-breakpoint: 480px;
    --color-grey: rgb(239, 239, 239);
    --color-accent:  #7c5679;
    --color-accent-2:#D8C2D6;
    --color-accent-3: #AFC8B5;
    --menu-width: 300px;
    --font-scale: 1;
}

p, h1, h2, h3, a, button {
    font-family: "Alice";
}

@media (max-width: 480px) {
    :root {
        --menu-width: 100%;
        --font-scale: 0.8;
    }
}

#homepage-body {
    background-color: var(--color-accent);
    color: white;
    margin:0;

}

#homepage-image {
    width: 100vw;
    height: 100vh;
    object-fit: cover;
    display: block;
    object-position: 50% 0%;
}

h1 {
    font-family: cursive;
    text-align: center;
}

#homepage-h1 {
    position: absolute;
    font-family: 'CustomCursive', cursive;
    font-weight: normal;
    top: 0;
    left: 50%;
    transform: translate(-50%, 0);
    width: 100%;
    margin-top: 0.5vh;
    color: var(--color-accent);
    font-size: clamp(4rem, 7vh, 12rem);
    @media (orientation: landscape) {
        font-size: clamp(3rem, 8vw, 8rem);
    }
}

.container {
    width: 100%;
    margin: 0 auto;
}

.content-container {
    max-width: 1000px;
    width: 100%;
    margin: 8px auto;
}

/* Menu items */
.menu-button {
    display: inline-block;
    position: fixed;
    top: 18px;
    right: 18px;
    border-radius: 50%;
    width: 45px;
    height: 45px;
    border: none;
    z-index: 3;
    background-color: var(--color-grey);
}

.bar1, .bar2, .bar3 {
  width: 60%;
  height: 3px;
  background-color: black;
  margin: 3px auto;
  transition: 0.4s;

  will-change: opacity;
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

.change .bar1 {
  transform: translate(0, 6px) rotate(-45deg);
}

.change .bar2 {
    opacity: 0;
    visibility: hidden;
}

.change .bar3 {
  transform: translate(0, -6px) rotate(45deg);
}

.menu {
    background-color: transparent;
    position: fixed;
    top: 0;
    bottom: 0;
    color: black;
    right: calc(-1*var(--menu-width));
    width: var(--menu-width);
    transition: 1s;
    display: flex;
    flex-direction: column;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: none;
    z-index: 2;

}

.menu-container {
    display: block;
}

.menu.change {
    transform: translate(calc(-1*var(--menu-width)), 0);
    background-color: var(--color-grey);
}

.menu-title {
    font-family: "Cinzel-Bold";
}

.menu-item {
    font-family: "Alice";
    font-size: 24px;
    text-decoration: none;
    color: black;
    display: block;
    margin: 20px auto 20px 20px;
    font-weight: 100;
}

.menu-item-inner {
    padding: 3px 5px;
    border-radius: 3px;
}

.menu-item:hover .menu-item-inner {
    background-color: var(--color-accent);
    color: white;
}

#user-profile-image {
    margin-left: 20px;
    border-radius: 50%; 
    height: 2em;
    border: 2px solid var(--color-accent-3);
}

#profile-container {
    display: flex;
    align-items: center; 
}

#user-name-container {
    margin-left: 10px;
}

.row-container {
    align-items: center;
    display: flex;
    justify-content: center;
}

.log-out-button {
    border: none;
    border-radius: 2px;
    background-color: var(--color-accent-2);
    color: white;
    font-weight: 200;
    width: 80px;
    height: 30px;
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 20px;
}

.log-out-button:hover {
    background-color: var(--color-accent-3);
}

/* schedule section */
.schedule-day {
    text-align: center;
    font-family: 'CustomCursive', cursive;
    font-weight: normal;
    font-size: calc(60px * var(--font-scale));
    padding: calc(60px * var(--font-scale)) auto calc(20px * var(--font-scale)) auto;
    margin: 0;
}

.schedule-event {
    text-align: center;
}

.schedule-event-name {
    font-family: 'Cinzel-Bold', serif;
    font-weight: bold;
    font-size: calc(35px * var(--font-scale));
    margin: calc(20px * var(--font-scale)) auto 0px auto;
}

.schedule-event-space {
    height: calc(35px * var(--font-scale));
}

.schedule-time {
    font-family: 'Alice', sans-serif;
    font-size: calc(26px * var(--font-scale));
    font-weight: normal;
    margin: 0px auto calc(30px * var(--font-scale)) auto;
}

.schedule-location {
    font-family: 'Alice', sans-serif;
    font-size: calc(24px * var(--font-scale));
    font-weight: normal;
    margin: calc(10px * var(--font-scale)) auto;
}

a.schedule-location {
    font-style: italic;
    color: white;
}

a.schedule-location:hover {
    color: var(--color-accent-2);
}

.schedule-attire {
    font-family: 'CustomCursive', cursive;
    font-size: calc(35px * var(--font-scale));
    font-weight: normal;
    margin: calc(15px * var(--font-scale)) auto;
}

.dark-purple-background {
    background-color: var(--color-accent);
}

/* Footer */
.footer-container {
    justify-self: center;
    padding: 20px 0;
}

h2.footer {
    text-align: center;
    font-family: 'CustomCursive', cursive;
    font-weight: normal;
    font-size: 30px;
    margin: 0 auto -5px auto;
    color: white;
}

p.footer {
    text-align: center;
    margin: 0px auto 10px auto;
    color: white;
}

p.footer.hidden {
    text-align: center;
    margin: 2px auto;
    font-size: 12px;
    color: var(--color-accent-2);
}

p.footer.super-hidden {
    text-align: center;
    margin: 2px auto;
    font-size: 8px;
    color: var(--color-accent-2);
}

p.footer.hidden.white,
p.footer.super-hidden.white
{
    color:white;
}

.hidden-link {
    text-decoration: none;
}

/* Span image */
.span-image {
    display: block;
    width: 100vw;
    height: 500px;
    object-fit: cover;
    object-position: 50% 53%;
    overflow: hidden;
}

.span-image-container {
    padding: 30px auto 30px auto;
    position: relative;
}

/* .overlay {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  right: 0;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
} */

.rsvp-image-parent {
  display: grid;
  place-items: center;
}

#rsvp-image-text {
    position: absolute;
    text-align: center;
    font-size: 40px;
    font-family: "Alice";
    text-decoration: none;
    top: 0;
    padding: 10px 20px;
    background-color: var(--color-accent-2);
    border-radius: 10px;
    color: white;
    transform: translateX(-50%);
}

#rsvp-cursive {
    font-family: "Cinzel";
}


#rsvp-image-text:hover {
    background-color: var(--color-accent-3);
}

/* Splash Page */
.splash-body {
    background-color: var(--color-accent-3);
}

.splash-container {
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto; 
}

.splash-header {
    font-size: 60px;
    color: var(--color-accent);
    font-family: 'CustomCursive', cursive;
}

.splash-text {
    font-size: 20px;
    color: white;
}

.splash-username {
    font-family: 'CustomCursive', curisve;
    font-size: 35px;
}

#splash-button {
    background-color: var(--color-accent)
}
#splash-button:hover {
    background-color: var(--color-accent-2);
}

/* RSVP Page */
h1.page-title {
    font-family: 'CustomCursive', cursive;
    font-weight: normal;
    font-size: 60px;
}

#rsvp-page-body {
    background-color: var(--color-accent-2);
    color: black;
}

.rsvp-container {
    justify-content: center;
    align-items: center;
    text-align: center;
    max-width: 1000px;
    margin-inline: auto;
    padding: 0 20px;
}

.rsvp-header {
    color: var(--color-accent);
}

.rsvp-guest-name {
    font-family: 'Alice', sans-serif;
    font-size: calc(24px * var(--font-scale));
    font-weight: normal;
    margin: calc(10px * var(--font-scale)) auto;
    color: black;
}

.rsvp-event-space {
    height: calc(35px * var(--font-scale));
}


/* RSVP toggle -- input checkbox */
.rsvp-toggle {
	-webkit-appearance: none;
	-webkit-tap-highlight-color: transparent;
	position: relative;
	border: 0;
	outline: 0;
	cursor: pointer;
	margin: 10px;
    padding-top: 2px;
}


/* background of the slider -- unchecked */
.rsvp-toggle:after {
	content: '';
	width: 45px;
	height: 20px;
	display: inline-block;
	background: var(--color-accent);
	border-radius: 18px;
	clear: both;
}


/* Moving head of the toggle */
.rsvp-toggle:before {
	content: '';
	width: 24px;
	height: 24px;
	display: block;
	position: absolute;
	left: 0;
	top: 0px;
	border-radius: 50%;
	background: var(--color-grey);
	box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.6);
}


/* Shift for when the toggle is unchecked (to the left) */
.rsvp-toggle:checked:before {
	left: 24px;
	box-shadow: -1px 1px 3px rgba(0, 0, 0, 0.6);
}
/* Background color when toggle is checked */
.rsvp-toggle:checked:after {
	background: var(--color-accent-3);
}

/* Transitions */
.rsvp-toggle,
.rsvp-toggle:before,
.rsvp-toggle:after,
.rsvp-toggle:checked:before,
.rsvp-toggle:checked:after {
	transition: ease .3s;
	-webkit-transition: ease .3s;
	-moz-transition: ease .3s;
	-o-transition: ease .3s;
}

/* Game Home page */
#game-body {
    background: var(--color-accent-3);
}

#game-title {
    font-family: 'Cinzel-Bold';
    margin-bottom: 10px;
}

.game-subtitle {
    font-family: 'CustomCursive';
    font-size: 40px;
    text-align: center;
    margin-top: 0;
    margin-bottom: 10px;
}

.game-content-box {
    display: flex;
    justify-content: center;
}

.game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
    padding: 20px;
    max-width: 1000px;
}

.game-link {
    text-decoration: none;
    display: flex;       
    flex-direction: column;
    height: 100%;  
    color: inherit; 
}

.game-card {
    background-color: var(--color-grey);
    border-radius: 10px;
    padding-top: 1px;    /* Fix as margin was getting collapse for content */
    flex-grow: 1;
}

.game-card:hover {
    background-color: var(--color-accent-2);
    .game-card-title {
        color: white;
    }
}

.game-icon {
    width: 150px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.game-card-title {
    font-family: 'Alice';
    color: var(--color-accent);
    margin: 20px 0px;
}

.game-description {
    margin: 20px 0;
    padding: 0px 15px;
    font-size: 20px;
    text-align: center;
}

.game-welcome-text {
    padding: 0px 35px;
    font-size: 24px;
    max-width: 1000px;
    text-align: center;
}

@media (max-width: 700px) {
    .game-grid {
        grid-template-columns: repeat(1, 1fr);
        padding: 0px;
    }
    #game-title {
        font-size: 40px;
        margin: 13px 50px 13px 50px;
    }
    .game-subtitle{
        font: 33px;
    }
    .game-card {
        margin: 0px 5px;
    }
    .game-welcome-text {
        font-size: 22px;
        padding: 15px;
    }
    .game-description {
        padding: 10px;
    }
}

@media (max-width: 400px) {
    #game-title {
        font-size: 33px;
    }
    .game-subtitle {
        font-size: 31px;
    }
}

.rsvp-button, .food-button {
    width: 20px;
    height: 20px;
    background-color: var(--color-grey);
    margin: 5px;
}

.rsvp-button.checked, .food-button.checked {
    background-color: yellowgreen;
}

.rsvp-submit-button {
    border: none;
    border-radius: 5px;
    background-color: var(--color-accent);
    color: white;
    font-weight: 200;
    width: 100px;
    height: 45px;
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 20px;
    display: none; /* Start None and Block on render to prevent falsh */
}

.rsvp-submit-button:hover {
    background-color: var(--color-accent-3);
}