/**
 * Frontend CSS for Spotty Plugin
 */

/* Root wrapper: prevent horizontal overflow on mobile so all text can wrap */
.spotty-competition {
    max-width: 100%;
    box-sizing: border-box;
    position: relative;
}

/* Background overlay behind content (used when a game background image is set) */
.spotty-background-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    pointer-events: none;
}

/* Ensure competition children sit above overlay */
.spotty-competition > *:not(.spotty-background-overlay) {
    position: relative;
    z-index: 1;
}

@media (max-width: 768px) {
    .spotty-competition {
        overflow-x: hidden;
    }
}

@media (min-width: 769px) {
    .spotty-competition {
        padding-bottom: 60px;
    }
}

.spotty-competition * {
    box-sizing: border-box;
}

/* Competition Container */
.spotty-competition-container {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

@media (min-width: 769px) {
    .spotty-competition-container {
        padding-bottom: 60px;
    }
}

/* Competition title: centre-aligned, 20px padding below */
.spotty-competition .spotty-competition-title {
    text-align: center;
    padding-bottom: 20px;
    font-size: 1.8rem;
}

.spotty-partner-header {
	text-align: center;
	margin-bottom: 20px;
}

.spotty-partner-logo img {
	max-height: 90px;
	height: auto;
	width: auto;
	display: inline-block;
}

.spotty-partner-name {
	font-size: 1.8rem;
	font-weight: 600;
	margin-top: 6px;
	margin-bottom: 12px;
}

/* Intro row: description + prize. Mobile: stacked. Desktop: same row (text left, image right) */
.spotty-competition-intro {
    margin-bottom: 20px;
    max-width: 100%;
}

@media (max-width: 768px) {
    .spotty-competition-intro {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (min-width: 769px) {
    .spotty-competition-intro {
        display: flex;
        align-items: flex-start;
        gap: 24px;
        padding-right: 32px;
    }
    .spotty-competition-description {
        flex: 1;
        min-width: 0;
    }
    .spotty-prize-block {
        flex-shrink: 0;
    }
}

/* Competition description: prevent cramped/overwriting text on mobile */
.spotty-competition-description,
.spotty-competition-description p {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    padding: 0 5px 16px 5px;
    white-space: normal;
    display: block;
    box-sizing: border-box;
}

/* Entry form text + email inputs – constrain width so they don't span full container */
#player_name,
#player_email {
    max-width: 360px;
    width: 100%;
    display: block;
    margin: 0 auto;
}

/* Labels for entry fields – align with centered inputs */
label[for="player_name"],
label[for="player_email"] {
    display: block;
    max-width: 360px;
    margin: 0 auto 4px;
    text-align: center;
}

/* Force paragraph to respect parent width (overrides theme setting p to content width e.g. 1140px) */
.spotty-competition .spotty-competition-description p {
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.5;
}

/* Force all text areas that had overwrite issues to respect parent width and normal line-height (override theme/Elementor fixed widths and line-height: 1.5px) */
.spotty-competition .spotty-competition-description,
.spotty-competition .spotty-status-message,
.spotty-competition .spotty-competition-closed,
.spotty-competition .spotty-optin-below-terms,
.spotty-competition .spotty-optin-below-terms label,
.spotty-competition .spotty-selections-info,
.spotty-competition .spotty-entry-form .spotty-coordinates-box .spotty-coordinates-display,
.spotty-competition .spotty-entry-form .spotty-coordinates-box .spotty-no-coordinates {
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.5;
}

.spotty-judging .spotty-judging-instructions,
.spotty-judging .spotty-judging-coordinates-box .spotty-coordinates-display,
.spotty-judging .spotty-judging-coordinates-box .spotty-no-coordinates,
.spotty-judging-list .spotty-judging-intro {
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.5;
}

@media (min-width: 769px) {
    .spotty-competition-description {
        padding: 0 5px 16px 5px;
    }
}

@media (max-width: 768px) {
    .spotty-competition-description,
    .spotty-competition-description p {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

.spotty-prize-image {
    display: block;
}

.spotty-prize-img {
    max-width: 300px;
    width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 4px;
}

@media (min-width: 769px) {
    .spotty-prize-img {
        display: block;
        margin: 0;
    }
}

@media (max-width: 768px) {
    .spotty-prize-img {
        margin: 0 auto;
        display: block;
    }
}

/* Status message under competition name: coming soon / you're early / too late – bold, red */
.spotty-status-message {
    font-weight: bold;
    color: #c00;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    display: block;
    box-sizing: border-box;
    margin: 0 0 20px 0;
}

@media (max-width: 768px) {
    .spotty-status-message {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Legacy closed message classes (kept for overflow wrapping) */
.spotty-competition-closed,
.spotty-competition-closed.spotty-coming-soon-message {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    display: block;
    box-sizing: border-box;
}

.spotty-competition-closed.spotty-coming-soon-message {
    font-weight: bold;
    color: #c00;
}

@media (max-width: 768px) {
    .spotty-competition-closed,
    .spotty-competition-closed.spotty-coming-soon-message {
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Competition Image Container */
.spotty-competition-image-container {
    position: relative;
    display: inline-block;
    max-width: 100%;
    margin: 20px 0;
    touch-action: none; /* Prevent pinch zoom and scrolling on mobile */
}

/* Master Image - Responsive Display */
.spotty-master-image {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    position: relative;
    display: block;
    margin: 0;
    user-select: none;
    -webkit-user-select: none;
    -webkit-touch-callout: none;
}

.spotty-master-image:hover {
    border-color: #0073aa;
}

/* Desktop: Constrain to 1200-1600px wide */
@media (min-width: 769px) {
    .spotty-master-image {
        max-width: min(1600px, 100%);
        width: auto;
    }
}

/* Mobile: Full viewport width */
@media (max-width: 768px) {
    .spotty-master-image {
        width: 100%;
        max-width: 100%;
    }
}

/* SVG Overlay for Crosses */
.spotty-crosses-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 10;
}

/* Competition Image (legacy support) */
.spotty-competition-image {
    max-width: 100%;
    height: auto;
    border: 2px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    cursor: crosshair;
    position: relative;
    display: block;
    margin: 0 auto 20px;
    object-fit: contain;
    touch-action: none;
}

.spotty-competition-image:hover {
    border-color: #0073aa;
}

/* Terms & GDPR gate; when terms enabled, grey box encompasses terms + email opt-in */
.spotty-terms-block {
    margin: 16px 0;
    padding: 12px 16px;
    background: #f6f7f7;
    border: 1px solid #dcdcde;
    border-radius: 6px;
}

/* Shared checkbox row: checkbox then label text, aligned so both tick boxes stack one above the other */
.spotty-checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-weight: 600;
    color: #2c3338;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

.spotty-checkbox-row input[type="checkbox"] {
    flex-shrink: 0;
    margin-top: 2px;
}

.spotty-terms-block .spotty-checkbox-row:first-child {
    margin-bottom: 0;
}

.spotty-terms-block a {
    color: #0073aa;
}

/* Opt-in: inside grey block when terms enabled, or standalone when terms disabled */
.spotty-optin-below-terms {
    margin: 12px 0 20px 0;
}

.spotty-terms-block .spotty-optin-below-terms {
    margin: 12px 0 0 0;
}

.spotty-optin-below-terms .spotty-checkbox-row,
.spotty-optin-below-terms label {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .spotty-optin-below-terms,
    .spotty-optin-below-terms label {
        width: 100%;
        overflow-x: hidden;
    }
}

@media (min-width: 769px) {
    .spotty-terms-block {
        max-width: 640px;
        margin-left: auto;
        margin-right: auto;
    }
}

.spotty-terms-locked .spotty-competition-body {
    opacity: 0.4;
    filter: grayscale(1);
    pointer-events: none;
}

/* How To Play modal */
.spotty-how-to-wrapper {
    margin: 10px 0 20px;
    text-align: center;
}

.spotty-how-to-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 4px;
    border: 1px solid #6c757d;
    background: #f5f5f5;
    font-weight: 600;
    cursor: pointer;
}

.spotty-how-to-modal {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    align-items: flex-start;
    justify-content: center;
    padding-top: 40px;
    padding-bottom: 40px;
}

.spotty-how-to-modal[aria-hidden="false"] {
    display: flex !important;
}

.spotty-how-to-modal-content {
    background: #ffffff;
    width: min(640px, 90%);
    max-height: 80vh;
    overflow-y: auto;
    border-radius: 8px;
    padding: 20px 24px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.spotty-how-to-modal-content h3 {
    margin-top: 0;
}

.spotty-how-to-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.spotty-how-to-text {
    font-size: 15px;
    line-height: 1.6;
    color: #333;
}

@media (max-width: 768px) {
    .spotty-how-to-modal {
        padding-top: 20px;
        padding-bottom: 20px;
    }
}

/* Image Container (legacy) */
.spotty-image-container {
    position: relative;
    display: inline-block;
    margin: 0 auto;
    touch-action: none;
}

/* Mobile Magnifier */
.spotty-magnifier-lens {
    position: fixed;
    width: 240px;
    height: 240px;
    border: 4px solid #fff;
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.8), 0 0 40px rgba(0, 0, 0, 0.4);
    pointer-events: none;
    z-index: 10000;
    overflow: hidden;
    background: transparent;
}

.spotty-magnifier-lens img {
    position: absolute;
    top: 0;
    left: 0;
    pointer-events: none;
    user-select: none;
    -webkit-user-select: none;
    display: block;
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

.spotty-magnifier-crosshair {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10001;
}

/* Selection Markers */
.spotty-selection-marker {
    position: absolute;
    width: 30px;
    height: 30px;
    background-color: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: bold;
    border: 2px solid white;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
    cursor: pointer;
    z-index: 10;
    transform: translate(-50%, -50%);
    transition: all 0.2s ease;
}

.spotty-selection-marker:hover {
    background-color: #005a87;
    transform: translate(-50%, -50%) scale(1.1);
}

/* Competition Form */
.spotty-competition-form {
    background: #f9f9f9;
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #ddd;
}

.spotty-form-group {
    margin-bottom: 15px;
}

.spotty-form-group label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #333;
}

.spotty-form-group input[type="text"],
.spotty-form-group input[type="email"] {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: border-color 0.3s ease;
}

.spotty-form-group input[type="text"]:focus,
.spotty-form-group input[type="email"]:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

/* "Click on the image..." message: prevent overwriting on mobile */
.spotty-selections-info {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 420px;
    margin: 12px auto;
    white-space: normal;
    display: block;
    box-sizing: border-box;
    text-align: center;
}

@media (max-width: 768px) {
    .spotty-selections-info {
        padding: 0 8px;
        margin: 16px auto;
        width: 100%;
        max-width: 100%;
        overflow-x: hidden;
    }
}

/* Coordinates box text on game page: prevent overwriting on mobile */
.spotty-entry-form .spotty-coordinates-box .spotty-coordinates-display,
.spotty-entry-form .spotty-coordinates-box .spotty-no-coordinates {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .spotty-entry-form .spotty-coordinates-box .spotty-coordinates-display,
    .spotty-entry-form .spotty-coordinates-box .spotty-no-coordinates {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Selections Display */
.spotty-selections {
    margin: 20px 0;
}

.spotty-selections h4 {
    margin: 0 0 10px 0;
    color: #333;
    font-size: 16px;
}

.spotty-selections-list {
    list-style: none;
    padding: 0;
    margin: 0;
    background: white;
    border: 1px solid #ddd;
    border-radius: 4px;
    max-height: 200px;
    overflow-y: auto;
}

.spotty-selection-item {
    padding: 10px 15px;
    border-bottom: 1px solid #eee;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.spotty-selection-item:last-child {
    border-bottom: none;
}

.spotty-selection-number {
    font-weight: bold;
    color: #0073aa;
    margin-right: 10px;
}

.spotty-selection-coords {
    flex: 1;
    font-family: monospace;
    color: #666;
}

.spotty-no-selections {
    padding: 15px;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Buttons */
.spotty-button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-block;
}

.spotty-button:hover {
    background: #005a87;
    color: white;
    text-decoration: none;
}

.spotty-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.spotty-button-secondary {
    background: #f0f0f0;
    color: #333;
    border: 1px solid #ddd;
}

.spotty-button-secondary:hover {
    background: #e0e0e0;
    color: #333;
}

.spotty-button-danger {
    background: #dc3545;
    color: white;
}

.spotty-button-danger:hover {
    background: #c82333;
    color: white;
}

.spotty-remove-selection {
    background: #dc3545;
    color: white;
    border: none;
    padding: 5px 10px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background 0.3s ease;
}

.spotty-remove-selection:hover {
    background: #c82333;
}

.spotty-clear-all {
    background: #6c757d;
    color: white;
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    margin-right: 10px;
    transition: background 0.3s ease;
}

.spotty-clear-all:hover {
    background: #5a6268;
}

.spotty-clear-all:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.spotty-save-button,
.spotty-submit-entry {
    background: #28a745;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    transition: background 0.3s ease;
    display: block;
    margin: 0 auto;
}

.spotty-save-button:hover,
.spotty-submit-entry:hover {
    background: #218838;
}

.spotty-save-button:disabled,
.spotty-submit-entry:disabled {
    background: #ccc;
    cursor: not-allowed;
}

/* Cross markers - simple div-based */
.spotty-cross-marker {
    position: absolute;
    width: 20px;
    height: 20px;
    pointer-events: none;
    z-index: 999;
}

.spotty-cross-marker span {
    display: block;
    position: absolute;
    background: #FFFFFF;
    box-shadow: 0 0 3px rgba(0,0,0,0.8), 0 0 6px rgba(0,0,0,0.5);
}

/* Coordinates list */
.spotty-coordinates-list {
    margin: 20px 0;
}

.spotty-coordinates-box {
    background: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
}

.spotty-coordinates-display {
    margin-top: 10px;
}

.spotty-coordinate-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
    gap: 10px;
}

.spotty-coordinate-index {
    font-weight: bold;
    color: #0073aa;
    min-width: 25px;
}

.spotty-coordinate-item:last-child {
    border-bottom: none;
}

.spotty-coordinate-text {
    font-family: monospace;
    font-size: 14px;
    color: #333;
}

.spotty-delete-coordinate {
    color: #dc3545;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
}

.spotty-delete-coordinate:hover {
    color: #c82333;
}

.spotty-delete-coordinate .dashicons {
    width: 18px;
    height: 18px;
    font-size: 18px;
}

.spotty-no-coordinates {
    color: #999;
    font-style: italic;
    margin: 0;
}

/* Button Group */
.spotty-button-group {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 15px;
}

/* Messages */
.spotty-messages {
    margin-bottom: 20px;
}

.spotty-message {
    padding: 12px 15px;
    border-radius: 4px;
    margin-bottom: 10px;
    font-weight: 500;
}

.spotty-message-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.spotty-message-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.spotty-message-warning {
    background: #fff3cd;
    color: #856404;
    border: 1px solid #ffeaa7;
}

.spotty-message-info {
    background: #d1ecf1;
    color: #0c5460;
    border: 1px solid #bee5eb;
}

/* Competition Status Messages */
.spotty-competition-message {
    text-align: center;
    padding: 30px;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    margin: 20px 0;
}

.spotty-competition-message p {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.spotty-message-not_started {
    border-color: #007cba;
    background: #e7f3ff;
    color: #007cba;
}

.spotty-message-ended {
    border-color: #dc3545;
    background: #f8d7da;
    color: #721c24;
}

.spotty-message-sold_out {
    border-color: #fd7e14;
    background: #fff3cd;
    color: #856404;
}

/* Competition Info */
.spotty-competition-info {
    background: #f8f9fa;
    padding: 15px;
    border-radius: 4px;
    margin-bottom: 20px;
    border-left: 4px solid #0073aa;
}

.spotty-competition-info h3 {
    margin: 0 0 10px 0;
    color: #333;
}

.spotty-competition-info p {
    margin: 5px 0;
    color: #666;
}

/* Responsive Design */
@media (max-width: 768px) {
    .spotty-competition-container {
        padding: 15px;
    }
    
    .spotty-competition-form {
        padding: 15px;
    }
    
    .spotty-button-group {
        flex-direction: column;
        align-items: stretch;
    }
    
    .spotty-button-group .spotty-button {
        margin-bottom: 10px;
    }
    
    .spotty-selection-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .spotty-selection-coords {
        margin: 5px 0;
    }
    
    /* Ensure image container doesn't scroll on mobile */
    .spotty-competition-image-container {
        overflow: hidden;
        -webkit-overflow-scrolling: touch;
    }
    
    /* Prevent text selection during touch */
    .spotty-competition-image-container * {
        -webkit-tap-highlight-color: transparent;
    }
}

@media (max-width: 480px) {
    .spotty-competition-container {
        padding: 10px;
    }
    
    .spotty-competition-form {
        padding: 10px;
    }
    
    .spotty-selection-marker {
        width: 25px;
        height: 25px;
        font-size: 10px;
    }
}

/* Loading States */
.spotty-loading {
    opacity: 0.6;
    pointer-events: none;
}

.spotty-loading::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 20px;
    height: 20px;
    margin: -10px 0 0 -10px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #0073aa;
    border-radius: 50%;
    animation: spotty-spin 1s linear infinite;
}

@keyframes spotty-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Accessibility */
.spotty-competition-image:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.spotty-button:focus {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

/* High contrast mode support */
@media (prefers-contrast: high) {
    .spotty-competition-image {
        border-color: #000;
    }
    
    .spotty-selection-marker {
        border-color: #000;
    }
    
    .spotty-message {
        border-width: 2px;
    }
}

/* Judging list page */
.spotty-judging-list {
    padding-top: 30px;
}

.spotty-judging-list .spotty-judging-title {
    padding-bottom: 50px;
}

.spotty-judging-list .spotty-judging-intro {
    padding-bottom: 30px;
}

/* Judging list: force one competition per line; prevent overwriting (override theme flex/inline/float) */
.spotty-judging-list .spotty-judging-competitions {
    list-style: none;
    padding-left: 0;
    margin: 0 0 1em 0;
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
}

.spotty-judging-list .spotty-judging-competitions li {
    display: block !important;
    float: none !important;
    clear: both !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-bottom: 1em;
    padding: 0.5em 0;
    border-bottom: 1px solid #eee;
    box-sizing: border-box;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    line-height: 1.5;
}

.spotty-judging-list .spotty-judging-competitions li strong,
.spotty-judging-list .spotty-judging-competitions li a {
    display: block !important;
    width: 100% !important;
    max-width: 100% !important;
    line-height: 1.5;
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    white-space: normal;
    box-sizing: border-box;
}

.spotty-judging-list .spotty-judging-competitions li a {
    margin-top: 0.25em;
}

/* Judging single-competition page */
.spotty-judging-single {
    padding-top: 50px;
}

.spotty-judging-instructions {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .spotty-judging-instructions {
        padding-right: 0;
        width: 100%;
        overflow-x: hidden;
    }
}

/* Selected Coordinate box: 10px space between label and content */
.spotty-judging-coordinates-box .spotty-coordinates-label {
    margin-bottom: 10px;
}

.spotty-judging-coordinates-box .spotty-coordinates-display,
.spotty-judging-coordinates-box .spotty-no-coordinates {
    word-wrap: break-word;
    overflow-wrap: break-word;
    word-break: break-word;
    min-width: 0;
    max-width: 100%;
    white-space: normal;
    display: block;
    box-sizing: border-box;
}

@media (max-width: 768px) {
    .spotty-judging-coordinates-box .spotty-coordinates-display,
    .spotty-judging-coordinates-box .spotty-no-coordinates {
        width: 100%;
        overflow-x: hidden;
    }
}

/* Winners page shortcode [spotty_winners] */
.spotty-winners-list {
    max-width: 900px;
    margin: 0 auto;
    padding: 20px;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
.spotty-winners-list .spotty-winners-title {
    margin-bottom: 24px;
}
.spotty-winners-list .spotty-winner-item {
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
}
.spotty-winners-list .spotty-winner-item:last-child {
    border-bottom: none;
}
.spotty-winners-list .spotty-winner-competition-name {
    margin: 0 0 8px 0;
}
.spotty-winners-list .spotty-winner-item-after-name {
    margin-top: 10px;
    height: 0;
    overflow: hidden;
}
.spotty-winners-list .spotty-winner-name,
.spotty-winners-list .spotty-winner-coords,
.spotty-winners-list .spotty-winner-judges-coords {
    display: block !important;
    line-height: 1.4 !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
}
.spotty-winners-list .spotty-winner-name {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
}
.spotty-winners-list .spotty-winner-coords {
    margin-top: 0 !important;
    margin-bottom: 7px !important;
}
.spotty-winners-list .spotty-winner-judges-coords {
    margin-top: 0 !important;
    margin-bottom: 8px !important;
}
.spotty-winners-list .spotty-winner-item-before-image {
    margin-top: 10px;
    height: 0;
    overflow: hidden;
}
.spotty-winners-list .spotty-winner-image img {
    max-width: 100%;
    height: auto;
    display: block;
}




