main {
    height: 100%;
    width: 100%;
    display: grid;
    justify-content: center;
    align-items: center;
}

body {
    background-color: #f2f1ed;
    min-height: 100vh;
}

/* Side panels get their own colored background */
.side {
    background-color: transparent;
    border-radius: 18px;
    transition: background-color 0.4s ease;
}
body.bg-tijana-green .side--tijana { background-color: #22c55e; }
body.bg-tijana-red   .side--tijana { background-color: #ef4444; }
body.bg-stijn-green  .side--stijn  { background-color: #22c55e; }
body.bg-stijn-red    .side--stijn  { background-color: #ef4444; }

/* Each side's message-display is gated by that side's own color (green) */
.message-display[data-side="tijana"],
.message-display[data-side="stijn"] { display: none; }
body.bg-stijn-green  .message-display[data-side="tijana"] { display: block; }
body.bg-tijana-green .message-display[data-side="stijn"]  { display: block; }

.wrap {
    position: relative;
    margin: 0 auto;
    padding: 40px 0 60px;
    box-sizing: border-box;
    max-width: 1200px;
}

a {
    text-decoration: none;
    color: #1a1a1a;
}

h1 {
    margin-bottom: 60px;
    text-align: center;
    font: 300 2.25em "Lato";
    text-transform: uppercase;
}
h1 strong {
    font-weight: 400;
    color: #ea4c4c;
}

h2 {
    margin-bottom: 80px;
    text-align: center;
    font: 300 0.7em "Lato";
    text-transform: uppercase;
}
h2 strong {
    font-weight: 400;
}

.center-love {
    width: 380px;
    margin: 0 auto;
}

.countdown {
    width: 980px;
    margin: 0 auto;
}
.countdown .bloc-time {
    float: left;
    margin-right: 45px;
    text-align: center;
}
.countdown .bloc-time:last-child {
    margin-right: 0;
}
.countdown .count-title {
    display: block;
    margin-bottom: 15px;
    font: normal 0.94em "Lato";
    color: #1a1a1a;
    text-transform: uppercase;
}
.countdown .figure {
    position: relative;
    float: left;
    height: 110px;
    width: 100px;
    margin-right: 10px;
    background-color: #fff;
    border-radius: 8px;
    -moz-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
    -webkit-box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
    box-shadow: 0 3px 4px 0 rgba(0, 0, 0, 0.2), inset 2px 4px 0 0 rgba(255, 255, 255, 0.08);
}
.countdown .figure:last-child {
    margin-right: 0;
}
.countdown .figure > span {
    position: absolute;
    left: 0;
    right: 0;
    margin: auto;
    font: normal 5.94em/107px "Lato";
    font-weight: 700;
    color: #de4848;
}
.countdown .figure .top:after,
.countdown .figure .bottom-back:after {
    content: "";
    position: absolute;
    z-index: -1;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
}
.countdown .figure .top {
    z-index: 3;
    background-color: #f7f7f7;
    transform-origin: 50% 100%;
    -webkit-transform-origin: 50% 100%;
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    border-top-right-radius: 10px;
    -moz-transform: perspective(200px);
    -ms-transform: perspective(200px);
    -webkit-transform: perspective(200px);
    transform: perspective(200px);
}
.countdown .figure .bottom {
    z-index: 1;
}
.countdown .figure .bottom:before {
    content: "";
    position: absolute;
    display: block;
    top: 0;
    left: 0;
    width: 100%;
    height: 50%;
    background-color: rgba(0, 0, 0, 0.02);
}
.countdown .figure .bottom-back {
    z-index: 2;
    top: 0;
    height: 50%;
    overflow: hidden;
    background-color: #f7f7f7;
    -moz-border-radius-topleft: 10px;
    -webkit-border-top-left-radius: 10px;
    border-top-left-radius: 10px;
    -moz-border-radius-topright: 10px;
    -webkit-border-top-right-radius: 10px;
    border-top-right-radius: 10px;
}
.countdown .figure .bottom-back span {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    margin: auto;
}
.countdown .figure .top,
.countdown .figure .top-back {
    height: 50%;
    overflow: hidden;
    -moz-backface-visibility: hidden;
    -webkit-backface-visibility: hidden;
    backface-visibility: hidden;
}
.countdown .figure .top-back {
    z-index: 4;
    bottom: 0;
    background-color: #fff;
    -webkit-transform-origin: 50% 0;
    transform-origin: 50% 0;
    -moz-transform: perspective(200px) rotateX(180deg);
    -ms-transform: perspective(200px) rotateX(180deg);
    -webkit-transform: perspective(200px) rotateX(180deg);
    transform: perspective(200px) rotateX(180deg);
    -moz-border-radius-bottomleft: 10px;
    -webkit-border-bottom-left-radius: 10px;
    border-bottom-left-radius: 10px;
    -moz-border-radius-bottomright: 10px;
    -webkit-border-bottom-right-radius: 10px;
    border-bottom-right-radius: 10px;
}
.countdown .figure .top-back span {
    position: absolute;
    top: -100%;
    left: 0;
    right: 0;
    margin: auto;
}

/* ===== Sides (per-person panels) ===== */
.sides {
    margin-top: 60px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    padding: 0 16px;
    box-sizing: border-box;
    clear: both;
}
.side {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 16px;
    box-sizing: border-box;
}
.side-title {
    margin: 0 0 24px;
    font: 700 2.2em "Lato", sans-serif;
    text-transform: uppercase;
    color: #1a1a1a;
    letter-spacing: 0.04em;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}
.side .message-box   { margin: 0 0 24px; max-width: 460px; }
.side .vote-buttons  { margin-top: 8px; }

/* ===== Vote buttons (round) ===== */
.vote-buttons {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 32px;
    margin-top: 50px;
    padding: 0 16px;
    box-sizing: border-box;
    clear: both;
}
.vote-btn {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    padding: 0;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25), inset 0 -4px 0 rgba(0, 0, 0, 0.15);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
    outline: none;
}
.vote-btn:hover  { filter: brightness(1.08); transform: translateY(-2px); }
.vote-btn:active { transform: translateY(1px); box-shadow: 0 2px 4px rgba(0, 0, 0, 0.25); }
.vote-btn:focus-visible { box-shadow: 0 0 0 3px rgba(0,0,0,0.25), 0 4px 10px rgba(0,0,0,0.25); }
.vote-btn--green { background-color: #22c55e; }
.vote-btn--red   { background-color: #ef4444; }

/* ===== Mobile responsive ===== */
@media (max-width: 1024px) {
    .countdown { width: auto; max-width: 100%; padding: 0 16px; box-sizing: border-box; }
}

@media (max-width: 768px) {
    .wrap {
        padding: 24px 0 40px;
    }
    .center-love { width: 70%; max-width: 320px; }
    h1 { font-size: 1.5em; margin-bottom: 30px; padding: 0 12px; }

    .countdown {
        width: 100%;
        max-width: 100%;
        padding: 0 8px;
        box-sizing: border-box;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 14px;
    }
    .countdown .bloc-time { float: none; margin-right: 0; flex: 0 0 auto; }
    .countdown .count-title { font-size: 0.75em; margin-bottom: 8px; }
    .countdown .figure {
        height: 70px;
        width: 60px;
        margin-right: 6px;
        border-radius: 6px;
    }
    .countdown .figure > span { font-size: 3.5em; line-height: 68px; }

    .sides {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 40px;
        padding: 0 8px;
    }
    .side  { padding: 16px 8px; }
    .side-title { font-size: 1.6em; margin-bottom: 16px; }
    .vote-buttons { margin-top: 20px; gap: 20px; }
    .vote-btn { width: 60px; height: 60px; }
}

@media (max-width: 380px) {
    .countdown { gap: 8px; }
    .countdown .bloc-time { margin: 0; }
    .countdown .figure { height: 56px; width: 46px; margin-right: 4px; }
    .countdown .figure > span { font-size: 2.6em; line-height: 54px; }
    .vote-buttons { gap: 14px; margin-top: 16px; }
    .vote-btn { width: 52px; height: 52px; }
    .side-title { font-size: 1.3em; }
}

.love-us { max-width: 100%; height: auto; display: block; }

/* ===== Message box ===== */
.message-box {
    width: 100%;
    max-width: 520px;
    margin: 0 auto 24px;
    padding: 0 16px;
    box-sizing: border-box;
    text-align: center;
}
.message-display {
    min-height: 28px;
    margin-bottom: 12px;
    font: 400 1.05em "Lato", sans-serif;
    color: #1a1a1a;
    word-wrap: break-word;
}
.message-display .message-text {
    background: #fff;
    padding: 10px 16px;
    border-radius: 14px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.12);
    display: inline-block;
    max-width: 100%;
}
.message-display .message-empty {
    opacity: 0.55;
    font-style: italic;
    font-size: 0.9em;
}
.message-form {
    display: flex;
    gap: 8px;
    align-items: stretch;
}
.message-input {
    flex: 1;
    border: 1px solid #d8d4cc;
    background: #fff;
    border-radius: 999px;
    padding: 10px 18px;
    font: 400 1em "Lato", sans-serif;
    color: #1a1a1a;
    outline: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
    min-width: 0;
}
.message-input:focus {
    border-color: #ea4c4c;
    box-shadow: 0 0 0 3px rgba(234, 76, 76, 0.18);
}
.message-send {
    appearance: none;
    -webkit-appearance: none;
    border: none;
    cursor: pointer;
    background: #ea4c4c;
    color: #fff;
    font: 700 0.95em "Lato", sans-serif;
    text-transform: uppercase;
    padding: 0 22px;
    border-radius: 999px;
    transition: filter 0.15s ease, transform 0.15s ease;
}
.message-send:hover  { filter: brightness(1.08); }
.message-send:active { transform: translateY(1px); }

@media (max-width: 480px) {
    .message-box   { margin-bottom: 18px; padding: 0 4px; }
    .message-input { padding: 9px 14px; font-size: 0.95em; }
    .message-send  { padding: 0 14px; font-size: 0.8em; }
}
