@font-face {
  font-family: 'lsl';
  src: url('../fonts/linotype-spitz-light.ttf') format('truetype');
  font-weight: normal;
  font-style: normal;
}

html, body {
    margin: 0;
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    font-family: 'lsl';
}

body {
    line-height: 1.7em;
    font-weight: 500;
    background-color: #000;
    overflow-x: auto;
}

/* header */

header {
    height: 82px;
    width: 100%;
    background-color: #000;
    border-bottom: 2px solid rgb(255, 208, 131);
}

.header-container {
    max-width: 970px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
}

.header-img {
    width: 136px;
    height: 72px;
}

.header-img  img {
    height: auto;
    max-width: 100%;
}

.header-menu {
    display: flex;
    justify-content: center;
    align-items: center;
}

.link-list {
    display: flex;
    color: white;
    list-style: none;
    padding: 0;
    margin: 0;
}

.link-list li {
    display: flex;
    text-align: center;
    align-items: center;
    border-right: 1px solid rgb(255, 208, 131);
}

.link-list li a {
    width: 165px;
    height: 100%;
    transition: background-color .4s ease 0s;
    cursor: pointer;
    font-size: 20px;
}

.link-list li:last-child {
    border-right: none;
}

.link-list li a:hover {
    background-color: #800000;
}

.link {
    margin: 0 auto;
    text-decoration: none;
    line-height: 82px;
    font-size: 16px;
    font-family: "din-next-w01-light", sans-serif;
    color: white;
    font-family: 'lsl';
}

/* main */

main {
    flex: 1;
}

/* footer */

footer {
    height: 242px;
}

.footer-container {
    display: flex;
    max-width: 980px;
    flex-direction: column;
    margin: 0 auto;
    padding: 35px 20px 10px;
    box-sizing: border-box;
}

.footer-container p {
    display: inline-block;
    width: fit-content;
    color: white;
}

.footer-title {
    font-size: 40px;
    margin: 0 auto 16px;
    display: inline-block;
}

.footer-text {
    display: inline-block;
    font-size: 21px;
    margin: 0 auto 8px;
}

.footer-images {
    width: fit-content;
    margin: 0 auto;
}

/* common for pages */

.form-title {
    font-size: 40px;
    text-align: center;
    color: #ffd480;
    margin: 48px 0 0.5em;
    font-weight: 400;
}

form {
    max-width: 460px;
    margin: 0 auto 20px;
}

form label {
    display: none;
}

form input {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 16px 16px 30px;
    background-color: #8c0000;
    border: 2px solid #ffd480;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    box-shadow: 0 0 0px 1000px #8c0000 inset !important;
}

form h4 {
    color: white;
}

form input:hover {
    background-color: #4c1e1e;
    outline: none;
    border-color: #5c4f56;
}

form input:focus {
    background-color: #4c1e1e;
    outline: none;
    border-color: #ffd480;
}

form input::placeholder {
    color: white;
}

form button {
    background-color: #8c0000;
    color: white;
    border: 2px solid #ffd480;
    border-radius: 18px;
    padding: 10px 24px;
    font-size: 14px;
    font-family: 'lsl';
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

form button:hover {
    background-color: #4c1e1e; /
}

.form-button {
    background-color: #8c0000;
    color: white;
    border: 2px solid #ffd480;
    border-radius: 18px;
    padding: 10px 24px;
    font-size: 14px;
    font-family: 'lsl';
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.form-button:hover {
    background-color: #4c1e1e; /
}

.form-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.form-button a {
    color: white;
    text-decoration: none;
}

/* nominate page */

.nominate-text {
    max-width: 560px;
    color: white;
    margin: 0 auto;
    font-size: 20px;
    text-indent: 1.5em;
    line-height: 1.3em;
}

.nominate-text a {
    color: white;
}

.nominate-text a:hover {
    text-decoration: none;
}

.production-block h3 {
    color: white;
}

.add-player {
    margin: 1em 0;
}

.player-form > input {
    margin: 0.5em 0;
}

.player-form > select {
    margin: 0.5em 0;
}

.production-fields input {
    margin: 0.5em 0;
}

.player-form select {
    box-sizing: border-box;
    width: 100%;
    padding: 16px 16px 16px 30px;
    background-color: #8c0000;
    border: 2px solid #ffd480;
    border-radius: 12px;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #ffd480 50%), linear-gradient(-45deg, transparent 50%, #ffd480 50%);
    background-position: right 18px center, right 12px center;
    background-size: 6px 6px;
    background-repeat: no-repeat;
}

.player-form select:hover {
    border-color: #5c4f56;
}


.player-form select:focus {
    border-color: #ffd480;
}

.errorlist li {
    color: white;
}

.select2-container {
    width: 100% !important;
    margin-bottom: 20px;
    background-color: transparent;
    border: transparent;
}

.select2-selection--single {
    border: none;
    background-color: transparent;
}

.select2-container--default .select2-dropdown {
    border-radius: 0 0 12px 12px;
    overflow: hidden;
    color: white;
    z-index: 9999;
}

.select2-container .select2-selection--single {
    background-color: transparent !important;
    border: none !important;
}

.select2-selection__arrow {
    display: none !important;
}

.select2-selection__rendered {
    background-color: #8c0000;
    border: 2px solid #ffd480;
    box-sizing: border-box;
    width: 100%;
    border-radius: 12px 12px 0 0 ;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    appearance: none;
    background-image: linear-gradient(45deg, transparent 50%, #ffd480 50%),
                      linear-gradient(-45deg, transparent 50%, #ffd480 50%);
    background-position: right 18px center, right 12px center;
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding: 0px 30px !important;
}

.select2-selection__rendered .select2-selection__placeholder {
    color: white !important;
}

.select2-selection__rendered:hover {
    border-color: #5c4f56;
}

.select2-selection__rendered:focus {
    border-color: #ffd480;
}


.select2-container--default .select2-results__option {
    background-color: #8c0000 !important;
    color: #fff !important;
    padding: 10px 16px;
}

.select2-container--default .select2-results__option--highlighted[aria-selected] {
    background-color: #ffd480;
    color: #000;
}

.select2-container--default .select2-selection--single.error {
    border-color: #ff0000;
}

.select2-dropdown {
    background-color: #8c0000 !important;
    border: 2px solid #ffd480 !important;
    border-top: none !important;

}

.select2-search__field {
    border: 1px solid white !important;
    background-color: #8c0000;
    color: white;
    padding: 8px !important;
    text-align: center !important;
}

/* recap page */

.recap-info {
    max-width: 460px;
    margin: 0 auto 30px auto;
    padding: 20px;
    font-size: 18px;
    line-height: 1.5em;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    color: #fff;
}

.recap-info p {
  margin: 8px 0;
}

/* success-page */

.success-info {
    max-width: 460px;
    margin: 0 auto 30px auto;
    padding: 20px;
    font-size: 18px;
    line-height: 1.5em;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    backdrop-filter: blur(3px);
    color: #fff;
    text-align: center;
}

.success-info p {
  margin: 10px 0;
}

/* alert messages */
.alert-container {
    position: relative;
    text-align: start;
    max-width: 460px;
    font-size: 14px;
    margin: 15px auto;
    padding: 8px 16px 8px 30px;
    box-sizing: border-box;
    border-radius: 12px;
    border: 1px solid #ffd480;
    background-color: #a80101;
}

.alert-container ul {
    list-style: none;
    margin: 0;
    margin-block-start: 0;
    margin-block-end: 0;
    padding-inline-start: 0;
}

.alert {
    color: white;
}

.close-button {
    position: absolute;
    top: -6px;
    right: -4px;
    width: 18px;
    height: 18px;
    background-color: rgba(255, 255, 255, 0.6);
    border: 1px solid #ccc;
    border-radius: 50%;
    cursor: pointer;
    font-size: 16px;
    color: #333;
    display: flex;
    align-items: center;
    justify-content: center;
}

.close-button::before {
    content: "✕";
    line-height: 0.5;
}

.close-button:hover {
    background-color: rgba(255, 255, 255, 0.825);
}