@font-face {
    font-family: volter;
    src: url(../fonts/volter.ttf);
}

.font-volter {
    font-family: volter, sans-serif;
}

h1, h2, h3, h4, h5, h6, p {
    margin: 0;
    padding: 0;
}

html {
    font-family: sans-serif;
    font-size: .85rem;
}

body {
    background-image: url("../images/bg.png");
    background-repeat: repeat;
}

.container {
    margin: 4rem auto;
    width: 928px;
    background-image: url("../images/StrayPixelsBG.gif");
    position: relative;
    border-radius: 1px;
    display: flex;
}

.container::before {
    z-index: -1;
    background-color: white;
    margin: -1px;
    border-radius: 2px;
}

.container::after {
    z-index: -2;
    background-color: black;
    margin: -2px;
    border-radius: 3px;
}

.container::before, .container::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
}

main {
    width: 522px;
}

aside {
    width: 272px;
}

main, aside {
    margin: 35px;
    flex: none;
}

.box {
    display: flex;
    flex-direction: column;
}

.box-row {
    flex-direction: row;
}

.box-full {
    width: calc(100% - 20px);
    margin: 10px 0;
}

.box-2\/3 {
    width: 337px;
}

.box-1\/3 {
    width: 150px;
}

.box-bg {
    background-color: white;
    border-radius: 5px;
    box-shadow: rgba(0, 0, 0, .2) 0 3px 0;
    padding: 10px;
}

.box-bg-black {
    background-color: black;
    border: 1px solid black;
}

.logo {
    background-image: url("../images/logo.png");
    height: 59px;
    width: 199px;
    flex: none;
}

.text {
    margin: 10px;
}

.winners {
    width: 357px;
    height: 27px;
    margin: -7px -10px 0 -10px;
    background-image: url("../images/winners.png");
    position: relative;
}

.arrows {
    position: absolute;
    right: 10px;
    bottom: 6px;
    display: flex;
    gap: 4px;
}

.arrow {
    height: 11px;
    width: 9px;
    cursor: pointer;
}

.arrow#arrow_left {
    background-image: url("../images/arrow_left.png");
}

.arrow#arrow_right {
    background-image: url("../images/arrow_right.png");
}

.submission {
    width: 149px;
    height: 28px;
    margin: -7px -10px 0 -10px;
    background-image: url("../images/submission.png");
}

.subheader {
    text-align: center;
    padding: 5px;
}

.subheader-dark {
    background-color: #333333;
    color: #CCCCCC;
    margin: 0 -10px;
}

.subheader h2 {
    font-size: 14px;
}

.subheader p {
    font-size: 10px;
}

.winners-list {
    margin: 4px -8px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    column-gap: 4px;
    row-gap: 4px;
}

.winners-list .winner {
    border-radius: 2px;
    min-height: 50px;
    width: 100%;
    background-image: url("../images/winner-bg.png");
    background-repeat: repeat;
    border: 1px solid #333333;
}

.winner-name {
    background-color: #DDDDDD;
    padding: 0 4px 2px 4px;
    border-top: 4px solid white;
    border-bottom: 2px solid black;
    border-top-left-radius: 2px;
    border-top-right-radius: 2px;
    color: black;
    font-size: 8px;
    text-shadow: black 1px 0 0;
    letter-spacing: 1px;
    position: relative;
}

.winner-name::after {
    content: "";
    position: absolute;
    background-color: #DDDDDD;
    height: 4px;
    width: 4px;
    border-right: 2px solid black;
    border-bottom: 2px solid black;
    bottom: -4px;
    left: 30px;
    transform: rotate(45deg);
}

.winner-content {
    display: flex;
}

.winner-avatar {
    height: 55px;
    width: 32px;
    margin-left: 2px;
    margin-top: -5px;
}

.winner-preview {
    background-color: #1E4F85;
    align-self: flex-start;
    margin-top: 1px;
    margin-left: -1px;
    padding: 4px;
    width: 72px;
    clip-path: polygon(4px 0, calc(100% - 4px) 0%, 100% 4px, 100% 100%, 0 100%, 0 4px);
    text-transform: uppercase;
    font-size: 10px;
    color: #CCCCCC;
    display: flex;
    align-items: center;
    gap: 4px;
    cursor: pointer;
}

.winner-badge {
    width: 19px;
    height: 20px;
}

.winner-badge.badge-1x {
    background-image: url("../images/badges/winner_1x.png");
}

.winner-badge.badge-3x {
    background-image: url("../images/badges/winner_3x.png");
}

.winner-badge.badge-5x {
    background-image: url("../images/badges/winner_5x.png");
}

.winner-badge.badge-7x {
    background-image: url("../images/badges/winner_7x.png");
}

.winner-badge.badge-10x {
    background-image: url("../images/badges/winner_10x.png");
}

.winner-badge.badge-mention {
    background-image: url("../images/badges/mention.png");
}

.winner-badge.badge-theme {
    background-image: url("../images/badges/theme.png");
}

.form-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 100%;
    font-size: 12px;
    margin: 4px -4px;
}

.banners {
    margin-top: 10px;
}

.hidden {
    visibility: hidden;
}

/* -------- */

details {
    position: relative;
    margin-bottom: -10px;
    user-select: none;
}

details[open] {
    z-index: 1;
}

summary {
    margin: 0 -8px;
    padding: 2px;
    cursor: pointer;
    border-bottom-left-radius: 4px;
    border-bottom-right-radius: 4px;
    background-color: #02283D;
    color: #9CC0D6;
    list-style: none;
    text-align: center;
}

summary::-webkit-details-marker {
    display: none;
}

details[open] summary {
    border-radius: 0;
}

details[open] summary:before {
    content: '';
    display: block;
    width: 100vw;
    height: 100vh;
    background: transparent;
    position: fixed;
    top: 0;
    left: 0;
}

summary:after {
    content: '';
    display: inline-block;
    float: right;
    width: .3rem;
    height: .3rem;
    margin-top: 4px;
    margin-right: 4px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-bottom-left-radius: 2px;
    transform: rotate(135deg) translate(50%, 0%);
    transform-origin: center center;
    transition: transform ease-in-out 100ms
}

summary:focus {
    outline: none;
}

details[open] summary:after {
    transform: rotate(-45deg) translate(0%, 0%);
}

ul {
    width: calc(100% + 16px);
    background: #02283D;
    color: #9CC0D6;
    position: absolute;
    top: calc(100% + .5rem);
    left: 0;
    padding: 2px 0;
    margin: -6px -8px 0 -8px;
    box-sizing: border-box;
    max-height: 100px;
    overflow-y: auto;
    border-top: 2px solid #9CC0D6;
}

li {
    margin: 0;
    padding: 4px;
    border-bottom: 1px solid #9CC0D6;
    list-style: none;
    text-align: center;
    font-size: 12px;
}

li:first-child {
    padding-top: 0;
}

li:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

/* FAKE SELECT */

summary.radios {
    counter-reset: radios;
}

input[type=radio] {
    counter-increment: radios;
    appearance: none;
    display: none;
}

input[type=radio]:checked {
    display: inline;
    color: #9CC0D6;
}

input[type=radio]:after {
    content: attr(title);
    display: inline;
    font-size: 12px;
}

ul.list {
    counter-reset: labels;
}

label {
    width: 100%;
    display: block;
    cursor: pointer;
}

/* width */
details ul::-webkit-scrollbar {
    width: 10px;
}

/* Track */
details ul::-webkit-scrollbar-track {
    background: #02283D;
}

/* Handle */
details ul::-webkit-scrollbar-thumb {
    background: #9CC0D6;
}

/* Handle on hover */
details ul::-webkit-scrollbar-thumb:hover {
    background: #9CC0D6;
}

button {
    all: unset;
    cursor: pointer;
}

.btn {
    height: 21px;
    width: 116px;
    border: 2px solid black;
    border-radius: 4px;
    text-align: center;
    font-weight: bold;
    color: white;
}

.btn-disabled {
    background: linear-gradient(to bottom, #888888 0%, #888888 50%, #666666 50%, #666666 100%);
}

.btn-submit {
    background: linear-gradient(to bottom, #00ac00 0%, #00ac00 50%, #008100 50%, #008100 100%);
}

.btn-submit:hover, .btn-submit:focus, .btn-submit:active {
    background: linear-gradient(to bottom, #00d000 0%, #00d000 50%, #00a100 50%, #00a100 100%);
}

.form {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form > label > span:first-of-type {
    font-weight: bold;
}

.tooltip {
    display: inline-block;
    color: gray;
    font-size: 8px;
    margin-top: 2px;
}

.tooltip a {
    color: #fc6204;
}

input[type="text"] {
    width: 123px;
    height: 21px;
    padding: 0 5px;
    border: 2px solid black;
    border-radius: 4px;
    margin: 4px auto;
    font-size: inherit;
}

input:focus {
    outline: gray 2px auto;
}

.modal {
    display: flex;
    opacity: 0;
    pointer-events: none;
    position: fixed;
    z-index: 99;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    background-color: black;
    background-color: rgba(0,0,0,0.4);
    justify-content: center;
    align-items: center;
    transition: opacity 250ms ease-in-out;
}

.modal-open {
    opacity: 1;
    pointer-events: auto;
}

.modal-content {
    background-color: #fefefe;
    padding: 30px;
    border-radius: 5px;
    position: relative;
}

.close {
    position: absolute;
    right: 10px;
    top: 0;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
}