/* FONTS ------------------- */
@font-face {
    font-family: 'Calibri';
    font-style: normal;
    font-weight: normal;
    src: url('assets/Calibri.woff') format('woff');
}
@font-face {
    font-family: 'Calibri';
    font-style: italic;
    font-weight: normal;
    src: url('assets/Calibriitalic.woff') format('woff');
}
@font-face {
    font-family: 'Calibri';
    font-style: normal;
    font-weight: 200;
    src: url('assets/Calibrilight.woff') format('woff');
}
@font-face {
    font-family: 'Calibri';
    font-style: italic;
    font-weight: 200;
    src: url('assets/Calibrilightitalic.woff') format('woff');
}
@font-face {
    font-family: 'Calibri';
    font-style: normal;
    font-weight: bold;
    src: url('assets/Calibribold.woff') format('woff');
}
@font-face {
    font-family: 'Calibri';
    font-style: italic;
    font-weight: bold;
    src: url('assets/Calibribolditalic.woff') format('woff');
}

/* SIZING ------------------- */
* { box-sizing: border-box; }
html { font-size: 6px; }
@media (min-width: 1000px) and (min-height: 800px) { html { font-size: 7px; } }
@media (min-width: 1100px) and (min-height: 800px) { html { font-size: 8px; } }
@media (min-width: 1200px) and (min-height: 800px) { html { font-size: 9px; } }
@media (min-width: 1300px) and (min-height: 800px) { html { font-size: 9px; } }
@media (min-width: 1400px) and (min-height: 800px) { html { font-size: 10px; } }

/* BASE ------------------- */
html,
body {
    overflow-x: hidden;
    min-width: 360px;
}
html {
    scroll-behavior: smooth;
}
body {
    background-color: #f3f3f3;
    font-family: "Calibri";
    margin:0;
    padding:0;
}
h1 {
    color: #ca062d;
    font-family: "Bodoni 72";
    font-size: 8.6rem;
    font-weight: 100;
    margin: 0 0 3.5rem 0;
    padding: 0 4rem;
}
#who-are-you-wearing > a,
h2 {
    color: #ca062d;
    font-family: "Bodoni 72";
    font-size: 8.6rem;
    font-weight: normal;
    margin: 1rem auto 10rem;
    max-width: 78rem;
    min-width: 36rem;
    text-align: center;
    padding: 0 4rem;
}
#who-are-you-wearing > a {
    text-decoration: none;
    display: block;
    font-size: 4.3rem;
    margin-bottom: 14rem;
}
h2 span {
    display: block;
    font-family: "Calibri";
    white-space: nowrap;
    color: #ffffff;
    font-size: 3rem;
    letter-spacing: 1.7rem;
    margin: 1.0rem 0 7.0rem 1.6rem;
    text-transform: uppercase;
    font-weight: 100;
}
section > h2 {
    margin: 1rem auto 3.6rem;
}
h3 {
    color: #000000;
    display: block;
    font-family: "Calibri";
    font-size: 2.6rem;
    letter-spacing: .7rem;
    max-width: 96rem;
    margin: 0 auto 1.8rem;
    padding: 0 4rem;
    text-align: center;
    text-transform: uppercase;
    /*white-space: nowrap;*/
}
h3:has(+ img) {
    margin: 0 auto 7.0rem;
}
#location h3:before {
    content: ""; /* Required for ::before to render */
    display: inline-block; /* Or block, depending on desired layout */
    width: 3rem;
    height: 3rem;
    margin: 0 1rem -.5rem 0;
    background-image:url("assets/pin.svg"); /* The image to display */
    background-repeat: no-repeat; /* Prevent image tiling */
    background-size: contain; /* Or contain, or specific pixel/percentage values */
    background-position: center; /* Adjust as needed for alignment */
}
p {
    color: #000000;
    display: block;
    font-family: "Calibri";
    font-size: 2.4rem;
    letter-spacing: .08em;
    line-height: 2.8rem;
    max-width: 78rem;
    margin: 0 auto 7.0rem;
    padding: 0 4rem;
    text-align: center;
}
p:has( + p) {
    margin-bottom: 1.75rem;
}
p.speakeasy {
    color: #7db6c5;
    font-size: 1.8rem;
}
#rsvp p:last-of-type {
    color: #ca062d;
}
p strong {
    text-transform: uppercase;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: .7rem;
}

#sign-off a:hover,
p a {
    color:#7cb6c4;
    text-decoration: none;
}

p a:hover {
    color:#ca072d;
}
header {
    padding: 20rem 10rem 10rem;
    min-height: 82rem;
    display: inline-block;
    margin: 0 auto;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
}
header * {
    margin-left: 60rem;
    text-align: left;
}
header img {
    position: absolute;
    margin-left:0;
    width: 52rem;
    height: 52rem;
}

section {
    margin: 0 auto;
    padding-top: 14rem;
}
table {
    white-space: nowrap;
    font-size: 2.6rem;
    text-align: left;
    width: 70rem;
    margin: 0 auto;
}
td {
    padding: .7rem;
}
thead td {
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: .7rem;
}
table a {
    color: #164c8a;
    text-decoration: none;
    font-weight: 600;
}
iframe {
    width: 100%;
    height: 84rem;
    border: none;
    margin: 7rem 0 0 0;
}
.pre-head {
    color: #000000;
    margin: 0;
}

/* NAV ----------------------- */
nav {
    background: #000000;
    font-size: 2rem;
    left:0;
    padding: 2rem;
    position: fixed;
    text-align: center;
    text-transform: uppercase;
    top:0;
    width: 100%;
    z-index: 1;
}
nav ul {
    column-count: 7;
    padding: 0;
    width: 100%;
}
nav a,
nav input {
    background: none;
    border: none;
    color: #ffffff;
    cursor: pointer;
    display: inline-block;
    font-weight: 100;
    font-size: 2.0rem;
    font-family: calibri;
    line-height: 1em;
    text-align: center;
    text-decoration: none;
    text-transform: uppercase;
}
nav a:hover,
nav a.active {
    color: #ca072d;
}
nav input {
    color: #7cb6c4;
}
#hamburger-menu {
    cursor: pointer;
    display: none;
    fill: #fff;
    float: right;
    height:2.97rem;
    margin: 2rem;
    width:4.3rem;
}
#hamburger-menu rect {
    height: 10%;
    pointer-events: none;
    transition: transform 0.25s;
    width: 100%;
    x: 0;
}
#mid-bar { transform-origin: 50% 50%;}
.opened #top-bar { transform: translate(20.15%, -4.95%)  rotate(45deg); }
.opened #mid-bar { transform: scale(0);}
.opened #btm-bar { transform: translate(-33.85%, 34.75%) rotate(-45deg); }


/* DATE ----------------------- */
#date {
    background: url("assets/date-background-black.jpg");
    background-position: center;
    background-size: 150%;
    width: 100%;
    padding: 15rem;
}
#date-box {
    display: inline-block;
    padding: .6rem;
    border: 1.2rem solid #ffffff;
    background:#000000;
    left: 50%;
    transform: translateX(-50%);
    position: relative;
}
#date-box h2,
#date-box ul {
    display: block;
    background: #ffffff;
    padding:4rem;
    width: 70rem;
    margin: 0;
}
#date-box ul {
    padding-top: 0;
}
#date-box li {
    display: block;
    font-family: "Calibri";
    white-space: nowrap;
    color: #000000;
    font-size: 2.6rem;
    font-weight: 600;
    letter-spacing: .7rem;
    overflow: hidden;
    margin: 0 auto 1.8rem;
    text-transform: uppercase;
    text-align:right;
    width: 55rem;
}
#date-box li .heading {
    text-align: left;
    float: left;
}

/* LOCATION ----------------------- */
#liberty-house {
    width: 100%;
}

/* DRESS CODE ----------------------- */
#carousel {
    background: url("assets/carousel-background-black-and-white.jpg") center;
    background-size: 40%;
    font-size: 0;
    height: 80rem;
    overflow: hidden;
    position: relative;
    width: 100%;
    white-space: nowrap;
}
#carousel .slide {
    display: inline-block;
    height: 100%;
    left: 50%;
    padding: 8rem 0 16rem 0;
    position: absolute;
    text-align: center;
    transform: translateX(-50%);
    transition: all .75s cubic-bezier(0.25,1,0,1);
    top: 0;
    width: 100%;
}
#carousel .slide:nth-of-type(1) {
    left: -50%;
}
#carousel .slide:nth-of-type(3) {
    left: 150%;
}
#carousel .image-wrapper {
    border: 1px solid #000;
    display: inline-block;
    height: 100%;
    margin: 1rem .5rem 1rem 1rem;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}
#carousel .image-wrapper:last-of-type {
    margin: 1rem 1rem 1rem .5rem;
}
 #carousel .image-wrapper img {
    height: 100%;
    width: 100%;
    position: relative;
}

#slides li:nth-of-type(2) .tag {
 transform:scale(1);
}
#carousel .tag {
    color: #ffff;
    display: block;
    font-size: 2.5rem;
    font-weight: 600;
    left: 9rem;
    letter-spacing: .5px;
    position: absolute;
    text-shadow: 1px 1px 1px #000;
    text-transform: uppercase;
    top: 4rem;
    transform:scale(0);
    transform-origin: 0 0;
    transition: transform .25s .5s;
}
#carousel .tag:before{
    background-image: url(assets/tag-ok.svg);
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    content:"";
    display: inline-block;
    height: 5rem;
    left: -3.5rem;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -53%);
    width: 5rem;
}
#carousel #carousel-not-fresh .tag:before {
    background-image: url(assets/tag-no.svg);
}
#carousel #carousel-too-fabulous .tag:before {
    background-image: url(assets/tag-na.svg);
}
#carousel-title {
    position:absolute;
    font-family: "Bodoni 72";
    font-size: 4rem;
    bottom: 8rem;
    left: 50%;
    background: #428821;
    color: #ffffff;
    line-height: 3rem;
    padding: 1rem 3rem;
    border-radius: 3rem;
    transform: translate(-50%, 50%);

}
#carousel-title.carousel-too-fabulous {
    background: rgb(202 150 39);
}
#carousel-title.carousel-not-fresh {
    background: #ca072d;
}
#carousel .arrow {
    position:absolute;
    bottom: 8rem;
    left: calc(50% - 1.25rem);
    height: 4rem;
    fill: #fff;
    cursor: pointer;
}
#carousel .arrow polygon {
    pointer-events: none;
}
#arrow-left {
    transform: translate(-22rem, 50%);
}
#arrow-right {
    transform: translate(22rem, 50%);
}

/* REGISTRY ----------------------- */
#registry ul {
    background: url("assets/registry-background-black-and-white.jpg");
    background-position: center;
    background-size: 30%;
    width: 100%;
    padding: 12rem;
    text-align: center;
}
#registry li {
    position: relative;
    display: inline-block;
    padding: 1.2rem 2.4rem;
    margin: 0 auto;
}
#registry li img {
    width: 27.9rem;
    height: 11.5rem;
}

/* RSVP ----------------------- */
#forms {
    padding: 4rem;
    background: url("assets/rsvp-background.jpg");
    background-size: cover;
}
#rsvp form {
    border: 1px dotted transparent;
    border-top: 1px dotted rgba(255, 255, 255, .5);
    margin: 0 auto;
    padding: 4rem 2rem;
    text-align: center;
    width: 80%;
}
#rsvp form:first-child {
    border-top: none;
}
#rsvp form:last-child {
    border-bottom: none;
}
#rsvp input[type=text] {
    font-family: "Calibri";
    display: block;
    font-size: 2.4rem;
    color: #ffffff;
    border:1px dotted transparent;
    background: none;
    text-align: center;
    width: 100%;
    margin: .5rem auto 5.5rem;
}
#rsvp input[type=text].guest-name {
    font-size: 3.6rem;
    font-weight: 600;
    letter-spacing: .7rem;
    margin: 3rem auto 0;
    text-transform: uppercase;
}
#rsvp input[type=text]:hover,
#rsvp input[type=text]:focus {
    outline: none;
    border:1px dotted #666 !important;
}
#rsvp ::placeholder {
    color: #7cb6c4;
}
#rsvp input[type=text]:focus::placeholder {
    color: transparent;
}
#rsvp select {
    appearance: none; /* Standard property */
    /*background: #000;*/
    background-image: url('assets/dropdown.svg');
    background-repeat: no-repeat;
    background-position: right -1px center; /* Adjust position as needed */
    background-size: 6rem 4.7rem; /* Adjust size as needed */
    display: block;
    font-size: 2.2rem;
    font-family: "Calibri";
    padding: 1rem 7rem 1rem 1rem;
    margin: 3rem auto;
    text-align: center;
    width: 50rem;
    -webkit-appearance: none; /* For WebKit browsers (Chrome, Safari) */
    -moz-appearance: none; /* For Firefox */
}
#rsvp select:focus {
    outline-width: 0;
}
#rsvp select:has(option:checked:disabled) {
    color: #ca062d; /* Apply styles to the select element */
    font-style: italic; /* Add italic font style */
 }
#rsvp option:disabled {
    color: #666666; /* Change text color to grey */
    font-style: italic; /* Add italic font style */
    cursor: not-allowed; /* Change cursor to "not-allowed" */
}
#rsvp .add,
#rsvp .remove {
    font-size: 2.2rem;
    font-family: "Calibri";
    text-transform: uppercase;
    color: #666666;
    padding: 1rem 1.5rem .5rem 4.5rem;
    border: 1px solid;
    border-radius: 2.5rem;
    background: rgba(0, 0, 0, .8);
    background-image: url(assets/remove.svg);
    background-repeat: no-repeat;
    background-position: 1rem center;
    background-size: 2.5rem 2.5rem;
    position: absolute;
    transform: translate(-50%, -6.5rem) scale(.75);
    left: 50%;
}
#rsvp .remove:hover {
    color: #7db6c5;
    background-image: url(assets/remove-over.svg);
    cursor: pointer;
}
#rsvp form:has( .remove:hover) {
    border-top: 1px dotted #7db6c5;
    /*border-bottom: 1px dotted transparent;*/
    background: rgba(125,182,197,.25);
}
#rsvp .add {
        background-image: none;
        border: 1px transparent;
        /*color: #fff;*/
        padding: 1rem 1.5rem .5rem;
        pointer-events: none;
    }

/* WHO ARE YOU WEARING ----------------------- */
#who-are-you-wearing {
    font-size: 0;
}
#who-are-you-wearing > a {
    display:none;
}
#done-for-now input[type=submit]{
    appearance: none; /* Standard property */
    background: #7cb6c4;
    background: #ca062d;
    border: none;
    border-radius: .8rem;
    color: #ffffff;
    cursor: pointer;
    display: block;
    font-size: 2.2rem;
    font-family: "Calibri";
    padding: 1rem;
    margin: 0rem auto 14rem auto;
    text-align: center;
    width: 50rem;
    -webkit-appearance: none; /* For WebKit browsers (Chrome, Safari) */
    -moz-appearance: none; /* For Firefox */
}
#done-for-now input[type=submit]:hover {
    background: #ca062d;
    background: #7cb6c4;
    background: #000;
}
#who-are-you-wearing .look {
    display: inline-block;
    position: relative;
    width: 25%;
}
#who-are-you-wearing .look span {
    background: rgba(0,0,0,.8);
    display:none;
    height: 100%;
    left:0;
    padding: 3rem;
    position: absolute;
    top:0;
    width:100%;
}
#who-are-you-wearing .look.info span {
    display:inline;
}
#who-are-you-wearing .look p {
    top: 50%;
    position: relative;
    transform: translateY(-50%);
    color: #fff;
    line-height: 1.4em;
}
#who-are-you-wearing .look img {
    width: 100%;
}

@media (max-width: 700px) {

    nav {
    }
    nav ul {
        column-count: 1;
        margin: 0;
        text-align: left;
        width: 80%;
    }
    nav li {
        max-height: 0;
        overflow: hidden;
        transition: max-height .5s;
    }
    nav.opened li {
        max-height: 13rem;
    }
    nav a,
    nav input {
        font-size: 5rem;
        line-height: 2em;
        padding: 0 10rem 0 10rem;
        width: 100%;
        text-align: left;
    }
    #hamburger-menu {
        display: block;
    }
    #carousel {
        height: 100vw;
    }
    #carousel .image-wrapper {
        height: 70vw;
    }
    #rsvp form {
        padding: 4rem 0;
        width: 100%;
    }
}

@media (max-width: 800px) {

    header {
        text-align: center;
        padding: 20rem 0 10rem;
    }
    header * {
        margin-left: auto;
        text-align: center;
    }
    header img {
        position: relative;
        margin: 0 auto 5rem auto;
        width: calc(100vw - 8rem);
        height: calc(100vw - 8rem);
        max-width: 72rem;
        max-height: 72rem;
    }

}

/* LOGIN ------------------- */
#login:before {
    content: url(assets/red-carpet-steps-upscaled.jpg);
    height: 100vh;
    left: 50%;
    object-fit: cover;
    object-position: center center;
    overflow: hidden;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 100vw;
    z-index: -1;
}
.container {
    display: inline-block;
    font-size: 0;
    left: 50%;
    line-height: 0;
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
}
.top-left,
.top-right,
.bottom-left,
.bottom-right {
    background-image: url("assets/corner-top-left.png");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display:inline-block;
    height: 4.4rem;
    width: 4.4rem;
}
.top-right {
    background-image: url("assets/corner-top-right.png");
}
.bottom-left {
    background-image: url("assets/corner-bottom-left.png");
}
.bottom-right {
    background-image: url("assets/corner-bottom-right.png");
}
.center,
.top-center,
.bottom-center {
    background: rgba(0,0,0,.65);
    display:inline-block;
}
.center {
    border-left: .2rem solid #ffffff;
    border-right: .2rem solid #ffffff;
    height: calc(100% - 8.8rem);
    padding: 2.0rem 0;
    text-align: center;
    white-space: nowrap;
    width: 100%;
}
.top-center,
.bottom-center {
    border-top: .2rem solid #ffffff;
    height: 4.4rem;
    width: calc(100% - 8.8rem);

}
.bottom-center {
    border-top: none;
    border-bottom: .2rem solid #ffffff;
}
.container h1 {
    background-image: url(assets/title.png);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center center;
    display: inline-block;
    height: 31.2rem;
    margin: 0 7rem;
    text-indent: -9999rem;
    vertical-align: middle;
    white-space: nowrap;
    width: 35.8rem;
}
.container h2 {
    color: #ca062d;
    font-weight: normal;
    font-family: "Bodoni 72";
    font-size: 6.6rem;
    margin: 1rem auto 10rem;
    min-width: 36rem;
    text-align: center;
}
.container h2 span {
    display: block;
    font-family: "Calibri";
    white-space: nowrap;
    color: #ffffff;
    font-size: 2.2rem;
    letter-spacing: 1.7rem;
    margin: 1.0rem 0 7.0rem 1.6rem;
    text-transform: uppercase;
}
#login #messaging {
    border-left: .2rem solid #ffffff;
    display: inline-block;
    margin: 0 3rem 0 0;
    padding: 1.0rem 7.0rem;
    position: relative;
    vertical-align: middle;
}
#login #messaging p,
#counter {
    color: #ffffff;
    font-family: "Calibri";
    font-size: 1.8rem;
    letter-spacing: .5rem;
    line-height: 180%;
    margin: 3rem auto;
    text-align: center;
    text-transform: uppercase;
    white-space: normal;
    width:30rem;
}
#login #messaging p:nth-of-type(2){
     color: #ca062d;
}
#counter {
    font-size: 1.2rem;
}
#login #messaging p#counter {
    display: block;
    font-family: "Calibri";
    white-space: nowrap;
    color: #ffffff50;
    font-size: 1.6rem;
    font-weight: 200;
    letter-spacing: .2rem;
    margin: -4.7rem 0 0 1.6rem;
    text-transform: none;
}
#login input {
    border: none;
    border-radius: 1.0rem;
    display: block;
    font-size: 1.8rem;
    letter-spacing: .05rem;
    margin: 2.5rem auto 0;
    padding: 1.5rem 0;
    width: 30rem;
    text-align: center;
}
#login input:not(:placeholder-shown) {
    border: .1rem solid rgba(255,255,255,1);
}
#login input:-webkit-autofill {
    font-size: 1.8rem !important;
    letter-spacing: .05rem !important;
}
#login input[type=submit] {
    background: #ca062d;
    border-radius: 3.0rem;
    border: none;
    color: #ffffff;
    cursor: pointer;
    letter-spacing: .4rem;
    margin: 3.5rem auto .5rem;
    padding: 2.0rem 6.0rem 1.7rem;
    text-transform: uppercase;
    width: auto;
}
#login input[type=submit]:hover {
    background-color:#fff;
    color: #000;
}
#login input[type=submit].disabled {
    background-color: #413235;
    color: #ffffff;
    cursor: not-allowed;
    pointer-events: none;
}
@media (max-aspect-ratio: 1/1) {
    #login h1 {
        margin: 0 7.0rem 2.0rem;
    }
    #login #messaging {
        border-left: none;
        display: block;
        padding: 1.0rem 2.0rem;
        width: 100%;
    }
}