:root {
    --accent: #f1a5a9;
    --accent2: #28151F;
    --accent-text: #28151F;
    --background: #f7f7f7;
    --background-text: #000;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: "Cambria", "Calibri";
    margin: 0px;
    background: var(--background);
    color: var(--background-text);
    font-size: 1.4rem;
}

header {
    background-color: var(--background);
    padding: 20px;
}

#logo {
    display: block;
    margin: 0 auto;
}

h1 {
    font-family: "Birthstone", cursive;
    font-weight: 400;
    font-style: normal;
    text-align: center;
    color: var(--accent);
    margin: 0;
    font-size: 4.5rem;
}

.wrapper {
    padding: 0 20px;
}

#content {
    padding: 20px 0;
    text-align: center;
}

p {
    margin: 20px 0;
}

.button, .tingle-btn--primary {
    background: var(--accent);
    color: var(--accent-text);
    border-radius: 5px;
    padding: 10px !important;
    margin: 10px 0;
    width: 100%;
    border: none;
}

#submit-button {
    margin-top: 25px;
}

.success {
    border: 2px solid #c3e6cb;
    padding: 10px;
    text-align: center;
    background-color: #d4edda;
    color: #155724;
    border-radius: 3px;
    margin-bottom: 10px;
}

.error {
    border: 2px solid #f5c6cb;
    border-radius: 3px;
    text-align: center;
    padding: 10px;
    background-color: #f8d7da;
    color: #721c24;
}

.notice {
    border: 2px solid #ffeeba;
    border-radius: 3px;
    text-align: center;
    padding: 10px;
    background-color: #fff3cd !important;
    color: #856404;
}

.form-line {
    display: flex;
    flex-direction: column;
    margin-top: 15px;
}

/* Labels */
.form-line label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #333;
    font-size: 1rem;
}

/* Inputs */
.form-line input {
    padding: 10px 12px;
    border: 1px solid #ccc;
    border-radius: 6px;
    font-size: 1rem;
    transition: border-color 0.2s, box-shadow 0.2s;
}

/* Input focus */
.form-line input:focus {
    border-color: var(--accent);
    outline: none;
}

/* Optional: smooth overall form appearance */
.form-line input::placeholder {
    color: #aaa;
}

.button.loading {
    opacity: 0.7;
    cursor: not-allowed;
}

#selfie-preview-container {
    position: relative;
    display: inline-block;
}

#selfie-preview {
    display: block;
    margin: 20px auto;
    border-radius: 50%;
    width: 150px;
    height: 150px;
    object-fit: cover;
}

/* Make tingle modal fullscreen */
.tingle-modal.selfie-modal {
    padding: 0 !important;
}

.tingle-modal.selfie-modal .tingle-modal-box {
    width: 100% !important;
    height: 100% !important;
    max-width: 100% !important;
    max-height: 100% !important;
    margin: 0 !important;
    border-radius: 0;
    display: flex;
    flex-direction: column;
}

.tingle-modal.selfie-modal .tingle-modal-box__content {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    overflow: auto;
}

/* Circular mask for the cropper overlay */
.cropper-view-box,
.cropper-face {
    border-radius: 50% !important;
}

/* Footer button fixed at bottom */
.cropper-footer {
    position: sticky;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 20px;
    background: #fff;
    /* optional: match modal bg */
    text-align: center;
    z-index: 1000;
}

/* Cropper image responsive */
.tingle-modal.selfie-modal img {
    max-width: 100%;
    max-height: 100%;
    display: block;
}

.runner {
    display: flex;
    align-items: center;
    border-radius: 10px;
    padding: 10px 15px;
    margin-bottom: 8px;
    background: #fff;
    border: 1px solid #eaeaea;
}

.runner .position {
    font-weight: bold;
    font-size: 1.2em;
    width: 45px;
    text-align: center;
    margin-right: 10px;
    color: #333;
}

.runner .position em {
    font-size: 0.5em;
    vertical-align: super;
}

.runner .selfie {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    margin-right: 15px;
    border: 2px solid var(--accent);
}

.runner .info {
    display: flex;
    flex-direction: column;
    text-align: left;
}


.runner .name {
    font-weight: bold;
    color: var(--accent2);
    font-size: 1em;
}

.runner .time {
    font-size: 0.95em;
    color: var(--accent2);
}


.runner-unknown .name, .runner-unknown .time {
    color: #eaeaea;
}

.bride-1 {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: #f5f5f5;
    border: 2px solid #8b7500;
}

.bride-1 .selfie {
    border: 2px solid #8b7500;
}

.bride-1 .name, .bride-1 .time, .bride-1 .position {
    color: #f5f5f5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(255, 255, 255, 0.2);
}

.groom-1 {
    background: linear-gradient(135deg, #b8860b, #daa520);
    color: #f5f5f5;
    border: 2px solid #8b7500;
}

.groom-1 .selfie {
    border: 2px solid #8b7500;
}

.groom-1 .name, .groom-1 .time, .groom-1 .position {
    color: #f5f5f5;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7),
        -1px -1px 2px rgba(255, 255, 255, 0.2);
}