body {
    font-family: "Open Sans", verdana, arial, sans-serif;
    color: #2b3f5e;
    padding: 0 30px;
}

::backdrop {
    background-color: gray;
    opacity: 0.5;
}

.dot {
    background-color: #2579b2;
    position: fixed;
    border-radius: 50%;
    z-index: -1;
}

body,
p,
h1,
h2,
h3,
li {
    background-color: #ffffff;
    color: #2b3f5e;
}

h1 {
    text-transform: uppercase;
}

p.link-with-prevu {
    font-size: 1.5em;
    width: fit-content;
    margin: auto;
}

div.main-container {
    max-width: 900px;
    margin: auto;
}

#map {
    height: 500px;
    width: 100%;
}

div#found {
    margin: auto;
    max-width: fit-content;
}

h1.project-title {
    display: flex;
    align-items: center;

}

h1.project-title.dikie::before {
    background-image: url(DiKiE.png);
}

h1.project-title::before {
    content: ' ';
    display: inline-block;
    background-image: url("what_year.png");
    background-size: contain;
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: bottom;
    margin-right: 0.5em;
}

a.project-title {
    color: initial;
    padding: initial;
    display: block;
}

table {
    border-collapse: collapse;
    margin: 25px auto;
    font-size: 0.9em;
    font-family: sans-serif;
    /*min-width: 400px;*/
}

table thead tr {
    background-color: #2579b2;
    color: #ffffff;
    text-align: left;
}

table thead th {
    text-align: left;
    cursor: pointer;
}

table thead tr:first-child th:hover {
    background-color: #1c577f;
}

table thead th.chosen {
    -webkit-box-shadow: inset 0px 10px 0px 0px #1c577f;
    box-shadow: inset 0px 10px 0px 0px #1c577f;
}

table th,
table td {
    padding: 12px 15px;
}

table th {
    text-align: right;
}

table tbody tr {
    /*border-bottom: 1px solid #dddddd;*/
    background-color: #f3f3f3;
}

table tbody tr:nth-child(2n of :not(.hide)) {
    background-color: #ffffff;
}

table tbody tr:first-of-type {
    /*border-top: 2px solid #3e7150;*/
}

table tbody tr:last-of-type {
    /*border-bottom: 2px solid #3e7150;*/
}

table tbody tr.active-row {
    font-weight: bold;
    color: #005198;
}

table img {
    width: 200px;
}

.regions-table {
    max-width: fit-content;
    overflow: auto;
    margin: 25px auto;
}

.regions-table table {
    margin: 0;
}

a {
    outline: none;
    text-decoration: none;
    /*display: inline-block;*/
    text-align: left;
    color: #2a7ab0;
    padding: 2px;
}

a:link,
a:visited,
a:focus {
    background: none;
}

a:hover {
    text-decoration: underline;
}

a:active {
    background: #c7e8ff;
}

a.edit {
    display: inline-block;
    width: 1em;
    height: 1em;
    background-image: url(edit.svg);
    background-size: 1em 1em;
    padding: 0;
    margin-left: 0.5em;
}

p.links {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 1em;
}

p.links a {
    display: inline-block;
    padding: 0.5em 0.8em;
    background-color: #2a7ab0;
    color: white;
    border-radius: 3px;
    min-width: 3em;
    text-align: center;
}

p.links a:link,
p.links a:visited,
p.links a:focus {
    background-color: #2a7ab0;
}

p.links a:hover {
    text-decoration: none;
    background-color: #1c577f;
}

p.links a:active {
    background-color: #1c577f;
}

p.under-h {
    color: gray;
    width: fit-content;
    text-align: left;
}

.find::before {
    content: ' ';
    display: inline-block;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12.2 13l3.4 6.6c.6 1.1 2.5-.4 2-1.2l-4-6.2z'/%3E%3Ccircle cx='10.8' cy='8.9' r='3.9' fill='none' stroke='%23000' stroke-width='1.5'/%3E%3C/svg%3E");
    width: 2em;
    height: 2em;
    background-repeat: no-repeat;
    background-position: center;
    vertical-align: bottom;
    margin-right: 0.5em;
}

.find {
    width: fit-content;
    margin: 1em auto;
    display: flex;
    align-items: center;
}

.find input {
    width: 16em;
    font-family: "Open Sans", verdana, arial, sans-serif;
    font-size: 1em;
    border: none;
    padding: 4px;
}

.person {
    display: block;
    text-align: left;
    width: fit-content;
    height: 6em;
    margin: 0 auto;
}

.person div.contact {
    display: inline-block;
    vertical-align: middle;
    background-color: #ffffff;
}

.person div.logo {
    display: inline-block;
    vertical-align: middle;
    width: 5.2em;
    height: 6em;
    background-color: currentColor;
    -webkit-mask-image: url(../../images/Garic-Che_logo.svg);
    mask-image: url(../../images/Garic-Che_logo.svg);
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
}

img.prevu {
    border-radius: 5px;
    margin: 5px 5px 5px 0;
    max-width: 100%;
    display: block;
}

input.edit-year {
    display: block;
    padding: 5px;
    margin: 5px 0;
    width: 10em;
    font-family: "Open Sans", verdana, arial, sans-serif;
    font-size: 0.9em;
    border: none;
    border: 2px solid #ddd;
}

textarea.edit-year {
    display: block;
    padding: 5px;
    margin: 5px 0;
    width: 10em;
    height: 4em;
    font-family: "Open Sans", verdana, arial, sans-serif;
    font-size: 0.9em;
    border: none;
    resize: none;
    border: 2px solid #ddd;
}

a.button {
    display: block;
    cursor: pointer;
    font-family: "Open Sans", verdana, arial, sans-serif;
    font-size: 0.9em;
    width: 10em;
    padding: 5px;
    margin: 5px 0;
    background: #d2e9db;
    text-align: center;
    border: 2px solid #ddd;
}

a.button:active {
    background: #c7e8ff;
}

input.filter {
    position: inherit;
    width: 100%;
    background: transparent;
    border: none;
    color: currentColor;
    font-size: inherit;
    text-shadow: 1px 1px 0px #5595c0, -1px 1px 0px #5595c0, 1px -1px 0px #5595c0, -1px -1px 0px #5595c0;
    text-align: center;
}

label.filter {
    position: relative;
    background-color: #5595c0;
    border-radius: 3px;
}

label.filter:before {
    content: "";
    position: absolute;
    left: 8px;
    top: 0;
    bottom: 0;
    width: 16px;
    background: url("filter.svg") center / contain no-repeat;
}

.total-rows {
    text-align: right;
}

.hide {
    display: none !important;
}

.person-info {
    display: flex;
    justify-content: center;
    gap: 1em;
    align-items: center;
    padding: 1em;
    border: 3px solid #2e7bae;
    border-radius: 3px;
    width: fit-content;
    margin: auto;
}

a.person-name {
    background-color: white;
    font-size: larger;
    font-weight: bold;
}

img.person-ava {
    max-width: 180px;
    max-height: 180px;
    border-radius: 3px;
}

.person-info>div {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5em;
}

div.achievements {
    display: flex;
    /* gap: 0.5em; */
    align-items: center;
    flex-wrap: wrap;
}

.achievements > a {
    padding: 0;
}

div.achievement {
    position: relative;
    width: 2em;
    height: 2em;
    border: 3px solid #2e7bae;
    border-radius: 50%;
    background: #e5ecf6;
    margin: 0 0.3em 0.3em 0.3em;
}

.achievement::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: larger;
    /* font-weight: bold; */
    line-height: 1;
    /* color: #2a7ab0; */
}

div.alive {
    display: flex;
    align-items: flex-start;
    justify-content: center;
}

div.alive div {
    /* font-size: larger; */
}

div.stone {
    border: 3px solid #011931;
}

div.stone::before {
    content: "🗿";
}

div.stone::after {
    position: absolute;
    right: -0.38em;
    top: -0.15em;
    content: "";
    width: 3.1em;
    height: 3.84em;
    background-image: url(atlantis.png);
    background-size: 3.1em 3.84em;
    background-repeat: no-repeat;
    background-position: center;
}

div.phenix {
    border: 3px solid #ff5100;
}

div.phenix::after {
    position: absolute;
    top: 0.1em;
    content: "";
    width: 3.2em;
    height: 3.4em;
    background-image: url(phenix.png);
    background-size: 3.2em 3.4em;
    background-repeat: no-repeat;
    background-position: center;
}

div.dead {
    border: 3px solid #000000;
}

div.dead::before {
    content: "💀";
}

div.participant1::before,
div.participant10::before,
div.participant50::before,
div.participant100::before {
    content: "У";
}

div.organizer1::before,
div.organizer10::before,
div.organizer50::before,
div.organizer100::before {
    content: "О";
}

div.kostyak::before {
    content: "К";
}

div.participant10,
div.organizer10 {
    border: 3px solid #e31a1c;
}

div.participant50,
div.organizer50 {
    border: 3px solid #ff7f00;
}

div.participant100,
div.organizer100 {
    border: 3px solid #6a3d9a;
    background: radial-gradient(circle, #ffd700 30%, #e6b800 70%);
    box-shadow: 0 0 20px #ffd700, 0 0 40px rgba(255, 215, 0, 0.5);
    animation: pulse 2s infinite alternate;
}

/* Лучи */
.golden-sun::before {
    content: "";
    position: absolute;
    top: -20px;
    left: -20px;
    right: -20px;
    bottom: -20px;
    background:
        repeating-linear-gradient(0deg,
            transparent 0px,
            transparent 10px,
            #ffd700 10px,
            #ffd700 15px);
    border-radius: 50%;
    z-index: -1;
    opacity: 0.7;
    animation: rotate 20s linear infinite;
}

/* Внутреннее свечение */
.golden-sun::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border-radius: 50%;
    box-shadow: inset 0 0 15px #fff, inset 0 0 30px #ffd700;
}

/* Анимации */
@keyframes pulse {
    0% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.05);
    }
}

@keyframes rotate {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

div.kostyak.current {
    border: 3px solid #e31a1c;
}

div.kostyak.member {
    border: 3px solid grey;
    color: grey;
}

.members-col {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    max-height: 300px;
    overflow: auto;
}

.members-col br {
    display: none;
}

.members-col a {
    display: block;
}
