

main img, a, button { -webkit-user-drag: none; user-drag: none; }

main p { margin-top: 1em; }

main b { font-size: 105%; }


main nav {
margin-bottom: 48px;

}

main nav .button {
padding: 0 15px;
}

.credits { margin-left: auto; }

main { max-width: 960px; margin: 40px auto; }

main h1 { margin-bottom: 0.75rem; }
main h2 { margin-bottom: 0.75rem; }

a { text-decoration: none; }
a:visited { }

a.active {
    color: #333;
    text-decoration: none;
}

.meta { color: #666; margin-bottom: 1rem; font-size: 18px; }

/* Forms */
form { display: flex; flex-direction: column; gap: 0.5rem; }

input[type=password], input[type=text], input[type=email], input[type=number], input[type=url], textarea, select {
font-family: text, sans-serif; letter-spacing: 0;
    font-size: 18px;
}






label { font-size: 18px; cursor: pointer; }

.error   { color: #c00; margin: 0.5rem 0; }
.success { color: #080; margin: 0.5rem 0; }

/* Voting images */
.images {
    display: flex;
    gap: 1rem;
    margin: 1rem 0;
}


.pair-images img {
    box-shadow: 1px 1px 0 var(--highlight);
border: solid 1px var(--border);
background: var(--bgr3);
}

.choice {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.choice img {
    max-width: 100%;
    max-height: 420px;
    object-fit: contain;
    cursor: pointer;
    display: block;
}

/* Result bars */
#result { margin-top: 1rem; }

.result-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin: 0.4rem 0;
}

.result-row .label {
    width: 18px;
    font-weight: bold;
    flex-shrink: 0;
}

.bar-wrap {
    flex: 1;
    background: #e5e5e5;
    height: 22px;
    overflow: hidden;
}

.bar {
    height: 100%;
    width: 0%;
    transition: width 0.5s ease;
}

.bar-a { background: #4a90e2; }
.bar-b { background: #e24a4a; }

.pct { width: 150px; font-size: 18px; flex-shrink: 0; }

/* Table */
table { width: 100%; border-collapse: collapse; }
th, td { padding: 0.5rem 0.75rem; border: 1px solid #ddd; text-align: left; }
th { background: #f5f5f5; }
.thumb { width: 80px; height: 80px; object-fit: cover; display: block; }

@media (max-width: 650px) {
    .images { flex-direction: column; }
    .pct { width: auto; }
}




.top-boxes {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
    min-height: 300px;
margin-top: 48px;
}
.top-box { flex: 1; }


.top-upload { margin-bottom: 32px; margin-top: 28px; }

/* Drop zones */
.drop-row { display: flex; align-items: flex-start; gap: 24px; width: 100%; margin-bottom: 20px;  }

@media (max-width: 650px) {
.drop-row { gap: 12px; }
}



.drop-zone {
    flex: 1; text-align: center; cursor: pointer;
    position: relative; min-height: 300px; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: 6px;
    transition: border-color 0.15s, background 0.15s;
    background: var(--bgr2);
    box-shadow: 1px 1px 0 var(--highlight), inset 1px 1px 0 var(--highlight);
    position: relative;
    top: 1px !important;
    left: 1px !important;
    overflow: hidden;
border-radius: 5px;
    border: solid 1px var(--border);
    background: var(--bgr3);
    box-shadow: 1px 1px 0 var(--highlight), inset 2px 2px 0 var(--shadow);
}

.btn-inline { cursor: pointer; font-size: 18px; padding: 0; display: inline-block; padding: 0 12px; font-family: title; letter-spacing: 0.05em; line-height: 36px; height: 39px;  }
.btn-delete { ccolor: #c00; float: left; background: #ff9c9c; }
.btn-vis {  float: left; margin-left: 24px; }

.btn-delete, .btn-vis {
    box-shadow: 2px -2px 0 var(--shadow), inset 1px -1px 0 var(--highlight);
    text-shadow: 1px -1px 0 var(--textshadow);

}

.btn-delete:hover,
.btn-delete:focus,
.btn-vis:hover,
.btn-vis:focus {
box-shadow: 1px -1px 0 var(--highlight), inset 1px -1px 0 var(--highlight);
}

.btn-delete:active,
.btn-vis:active {
box-shadow: 1px -1px 0 var(--highlight), inset 2px -2px 0 var(--shadow);
}

.btn-vis {

}

.drop-zone.over { background: var(--bgr4); }
.drop-zone.has-image { padding: 0; min-height: 0; overflow: hidden; }
.drop-label { font-size: 70px; font-weight: 800; color: #333; margin-bottom: 0px; margin-top:  0px; }
.drop-hint { font-size: 18px; color: #555;  }
.drop-hint b { color: #333; }
.drop-zone.has-image .drop-label,
.drop-zone.has-image .drop-hint { display: none; }
.drop-preview { width: 100%; display: none; background: #f5f5f5; }
.drop-zone.has-image .drop-preview { display: block; }
#zone-a .drop-preview { height: auto; }
#zone-b .drop-preview { width: 100%; height: 100%; object-fit: cover; }
.drop-zone input[type="file"] { position: absolute; inset: 0; opacity: 0; cursor: pointer; width: 100%; height: 100%; }
.drop-zone:hover { background: var(--bgr4); }

/* Feed */
.pair-card {
    margin-bottom: 32px;
position: relative;
}
.pair-meta {
    padding: 0;
    font-size: 18px;
overflow: visible;
margin-bottom: 12px;
padding-right: 2px;
padding-bottom: 2px;
margin-right: -2px;
position: absolute;
    right: -192px;
    transform: rotate(90deg);
    top: 129px;
    width: 300px;
}


.pair-meta-name {
    font-weight: bold;
    font-size: 105%;
}

.pair-images { display: flex; align-items: flex-start; gap: 24px; }


@media (max-width: 650px) {
.pair-images {  gap: 12px; }
}

.columngap {
column-gap: 24px;
}

@media (max-width: 650px) {
.columngap { column-gap: 12px; }
}

.pair-side-a { flex: 1; }
.pair-side-a img { width: 100%; height: auto; display: block; }
.pair-side-b { flex: 1;  }
.pair-side-b img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vote-btn {
    color: #333;
    width: 100%;  font-size: 24px; font-weight: normal;
    height: 70px;
    line-height: 70px;
    cursor: pointer;  transition: background 0.15s; font-family: text !important;
}
.pair-results-row { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }


.pair-result { padding: 14px 0; font-size: 18px; height: 70px; }
.result-bar-wrap { height: 6px; margin-bottom: 12px; }
.result-bar { min-width: 6%; height: 10px; background: var(--bgr4); border: solid 1px var(--border); transition: width 0.7s ease; border-radius: 5px; box-shadow: 1px 1px 0 var(--highlight); }
.my-choice .result-bar { background: #222;  }
.my-choice { font-weight: bold; }
.my-choice span { font-weight: normal; }


.pair-result-a .result-bar {
margin-left: auto;
}

.pair-text {
    padding: 12px;
    font-size: 18px;
    line-height: 1.5;
}

/* Comments */
.comments { padding: 0; }
.comment-item { padding: 13px; font-size: 18px; }
.comment-item:last-child { border-bottom: none; }
.comment-user { font-weight: 700; margin-right: 6px; font-size: 105%; }
.comment-time { font-size: 18px; color: #aaa; margin-left: 6px; }
.comment-form {
    display: flex;
    gap: 0;
    padding: 0;
    margin-top: 24px;
}
.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus {
    border: none;
    padding: 13px;
    flex: 1;
    min-width: 0;
    max-width: 100%;
}
.comment-form button { padding: 6px 13px; background: #222; color: #fff; border: none; cursor: pointer; }
.comment-delete { background: none; border: none; cursor: pointer; font-size: 18px; color: #c00; padding: 0; margin-left: 8px; }
.load-more { font-size: 18px; color: #666; background: none; border: none; cursor: pointer; padding: 14px; border-top: 1px solid #333; width: 100%; }

/* Image zoom overlay */
#img-zoom-overlay {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    background-repeat: no-repeat;
    background-color: #333;
    cursor: zoom-out;
    overscroll-behavior: contain;
}

@media (max-width: 650px) {
    .top-boxes { flex-direction: column; }
}



.auth-box {
    margin-bottom: 40px;
}
.auth-tabs {
    display: grid;
    margin-top: 1.5rem;
    margin-bottom: 0;
    grid-template-columns: auto auto auto;
    column-gap: 15px;
}

@media (max-width: 650px) {
.auth-tabs { grid-template-columns: auto auto; }
}



.auth-tab {
    cursor: pointer;
padding: 0 15px !important;
overflow: hidden;
}
.auth-tab.active {
}
.auth-panel {
    padding-top: 1rem;
}

.inputborder { margin-bottom: 10px; }
