/**
 * @license
 * Copyright 2019 Google LLC. All Rights Reserved.
 * SPDX-License-Identifier: Apache-2.0
 */
/* [START maps_streetview_custom_simple] */
/* 
 * Always set the map height explicitly to define the size of the div element
 * that contains the map. 
 */
@import "./ol.css";
@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

#map {
  height: 100%;
}

html,
body {
  height: 100%;
  margin: 0;
  padding: 0;
  /* background-color: #1a1c1e; */
  font-family: "Montserrat";
  background-color: #1a1c1e;
  color: #ddd;
  font-feature-settings: 'tnum';
}
p {
    color: #cecece;
}
a {
    color: #cecece;
}
a:hover {
    color: #6374ce;
}

#return-to-start {
    position: absolute;
    bottom: 8.2rem;
    left: 0.5rem;
    z-index: 2;
    font-size: 1.3rem;
}
.report-button {
    position: absolute;
    bottom: 17rem;
    left: 0.5rem;
    height: 1.2rem;
    width: 3rem;
    font-size: 0.5rem;
    z-index: 2;
    text-align: center;

    font-family: "Montserrat";
    color: #cecece;
    background-color: #20242966;
    border: none;
    cursor: pointer;
    border-radius: 24px;
    outline: none;
}

/* pc */
@media all and (min-width:961px) {
    #overlay-map-holder {
        position: absolute;
        display: block;
        width: 18rem;
        height: 10rem;
        right: 16;
        bottom: 50;
        background-color: rgba(0,0,0,0.5);
        z-index: 2;
        cursor: crosshair;
        opacity: 50%;
        transition: opacity 0.1s, width 0.1s, height 0.1s;
        transition-behavior: normal, normal, normal;
        transition-duration: 0.1s, 0.1s, 0.1s;
        transition-timing-function: ease, ease, ease;
        transition-delay: 0.75s, 0.75s, 0.75s;
        transition-property: opacity, width, height;
    }

    #overlay-map-holder:hover {
        width: 66%;
        height: 80%;
        opacity: 100%;
        transition-delay: 0s, 0s, 0s;
    }

    #overlay-submit {
        display: block;
        width: 100%;
        height: 2rem;
        z-index: 2;
        cursor: pointer;

        font-family: "Montserrat";
        font-size: 1rem;
        color: #9ecaff;
        background-color: #202429;
        border: 2px solid #202429;
        cursor: pointer;
        border-radius: 24px;
        outline: none;
    }

    #overlay-round-info {
        position: absolute;
        display: flex;
        top: 16px;
        right: 16px;
        margin-left: 16px;
        background-color: #1a1c1e;
        z-index: 2;
        border-radius: 24px;
        pointer-events: none;
    }
    #map-info, #round-info, #points-info{
        margin-left: 16px;
        margin-right: 16px;
        margin-bottom: -6px;
        text-align: center;
        display:block;
        position: relative;
    }
    .info-title {
        font-size: 1rem;
        color: #888;
    }
    .info-value {
        font-size: 1.5rem;
        margin-top: -1rem;
    }

    #compass-holder {
        display: block; 
        position: absolute; 
        left: 4px; 
        bottom: 12rem;
        z-index: 2;
        pointer-events: none;
    }
    #compass {
        height: 4rem; 
        width: 4rem;
    }

    #timer-holder {
        display: block; 
        position: absolute; 
        text-align: center;
        background-color: #1a1c1e;
        border-radius: 24px;
        /* height: 51px; */
        width: 64px;
        left: calc(50% - 32px); 
        top: 22.5px; 
        z-index: 5;
        pointer-events: none;
    }
    #overlay-open-map{
        display: none;
    }
    #overlay-close-map {
        display: none;
    }
    
    .bottom-screen, .bottom-screen-bd {
        position: absolute;
        display: block;
        width: 100%;
        height: 14rem;
        left: 0;
        bottom: 8rem;
        z-index: 4;
        background-color: #1a1c1e;
        text-align: center;
    }
    .fullscreen-map, .fullscreen-map-bd {
        position: absolute;
        display: block;
        width: 100%;
        height: calc(100% - 22rem);
        top: 0;
        left: 0;
        background-color: #1a1c1e;
        z-index: 3;
    }

    #confirmation {
        display: block;
        position: fixed;
        top: 10%;
        left: 25%;
        height: 80%;
        width: 50%;
        background-color: #141517;
    }

    .top-bar-title {
        font-size: 1.7rem; 
        margin-top: 0.8rem; 
        margin-left: 1rem; 
        font-weight: 400;
    }

    #lb-t {
        width: 50%;
        margin-left: 25%;
        margin-right: 25%;
    }
}

/* mobile */
@media all and (max-width:960px) {
    html,
    body{
        font-size: 12px;
    }
    #overlay-map-holder {
        position: absolute;
        display: none;
        width: 100%;
        height: calc(100% - 12rem);
        right: 0;
        bottom: 50;
        background-color: rgba(0,0,0,0.5);
        z-index: 3;
        cursor: crosshair;
        opacity: 100%;
    }

    #overlay-submit {
        display: block;
        width: 100%;
        height: 2rem;
        z-index: 3;
        cursor: pointer;

        font-family: "Montserrat";
        font-size: 1rem;
        color: #9ecaff;
        background-color: #202429;
        border: 2px solid #202429;
        cursor: pointer;
        border-radius: 24px;
        outline: none;
    }

    #overlay-open-map{
        display: block;
        position: absolute;
        bottom: 1rem;
        width: 70%;
        height: 2rem;
        z-index: 2;
        cursor: pointer;
        margin-left: 15%;
        margin-right: 15%;

        font-family: "Montserrat";
        font-size: 1rem;
        color: #9ecaff;
        background-color: #202429;
        border: 2px solid #202429;
        cursor: pointer;
        border-radius: 24px;
        outline: none;
    }
    #overlay-close-map {
        position: absolute; 
        right: 0; 
        top: 0; 
        background: none;
        width: 3rem;
        height: 3rem;

        font-family: "Montserrat";
        font-size: 1.5rem;
        color: #ce6363;
        background-color: #202429;
        border: 2px solid #202429;
        cursor: pointer;
        border-radius: 50%;
        outline: none;
    }

    #overlay-round-info {
        position: absolute;
        display: flex;
        top: 16px;
        width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;
        background-color: #1a1c1e;
        z-index: 3;
        border-radius: 24px;
    }
    #map-info, #round-info, #points-info{
        margin-left: auto;
        margin-right: auto;
        margin-bottom: -6px;
        text-align: center;
        display:block;
        position: relative;
        font-size: 0.5rem;
    }
    .info-title {
        font-size: 0.8rem;
        color: #888;
    }
    .info-value {
        font-size: 1rem;
        margin-top: -0.7rem;
    }

    #compass-holder {
        display: block; 
        position: absolute; 
        left: 4px; 
        bottom: 14rem; 
        z-index: 2;
    }
    #compass {
        height: 3.2rem; 
        width: 3.2rem;
    }

    #timer-holder {
        display: block; 
        position: absolute; 
        text-align: center;
        background-color: #1a1c1e;
        border-radius: 24px;
        /* height: 51px; */
        width: 4rem;
        left: calc(50% - 2rem); 
        top: 5rem; 
        z-index: 4;
        pointer-events: none;
    }

    .bottom-screen {
        position: absolute;
        display: block;
        width: 100%;
        height: 8rem;
        left: 0;
        bottom: 128px;
        z-index: 4;
        background-color: #1a1c1e;
        text-align: center;
    }
    .fullscreen-map {
        position: absolute;
        display: block;
        width: 100%;
        height: calc(100% - 18rem);
        top: 0;
        left: 0;
        background-color: #1a1c1e;
        z-index: 3;
    }

    .bottom-screen-bd {
        position: absolute;
        display: block;
        width: 100%;
        height: 20rem;
        left: 0;
        bottom: 128px;
        z-index: 4;
        background-color: #1a1c1e;
        text-align: center;
    }
    .fullscreen-map-bd {
        position: absolute;
        display: block;
        width: 100%;
        height: calc(100% - 28rem);
        top: 0;
        left: 0;
        background-color: #1a1c1e;
        z-index: 3;
    }

    #confirmation {
        display: block;
        position: fixed;
        height: 100%;
        width: 100%;
        background-color: #141517;
    }
    #return-to-start {
        bottom: 10.2rem;
    }
    .report-button {
        bottom: 18rem;
    }
    .top-bar-title {
        display: none;
    }
    #lb-t {
        width: 100%;
    }
}

.rounds-bd {
    display: inline-flex;
    margin-top: -2rem;
    margin-left: 2rem;
    margin-right: 2rem;
    text-align: center;
}

#fullscreen-map-holder {
    position: absolute;
    display: block;
    width: 100%;
    height: 100%;
    /* top: 0;
    left: 0; */
    right: 0;
    bottom: 0;
    background-color: #1a1c1e;
    z-index: 3;
    /* cursor: crosshair; */
}

#pts {
    margin-top: 0.5rem;
    color: #cecece;
    font-size: 2rem;
}
#time {
    margin-top: -1.5rem;
    color: #8f9de4;
    font-size: 1.25rem;
}
#distance {
    margin-top: 2rem;
    color: #cecece;
    font-size: 1.2rem;
}

.continue {
    position: absolute;
    display: block;
    width: 100%;
    height: 32px;
    left: 0;
    bottom: 5rem;
    z-index: 6;

    font-family: "Montserrat";
    font-size: 16px;
    color: #9ecaff;
    background-color: #202429;
    border: 2px solid #202429;
    cursor: pointer;
    border-radius: 24px;
    outline: none;
}

#lb {
    position: absolute;
    display:block;
    top: calc(100% - 64px);
    width: 100%;
    /* top: 100%; */
    background-color: #1a1c1e;
    text-align: center;

    z-index: 5;
}
#lb-h{
    width: 100%;
    font-size: 1.5rem;
    font-weight: bold;
}
th, td {
    text-align: center;
}

.play-button {
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 8px;
    display: block;
    text-align: center;

    font-family: "Montserrat";
    font-size: 1rem;
    color: #9ecaff;
    background-color: #202429;
    border: 2px solid #202429;
    cursor: pointer;
    border-radius: 24px;
    outline: none;
}

.play-button:hover,
.continue:hover,
#overlay-submit:hover,
.report-button:hover {
    background-color: #2d363f;
    border: 2px solid #2d363f;
}

.play-button:active,
.continue:active,
#overlay-submit:active,
.report-button:active {
    background-color: #6374ce
}

/* HTML: <div class="loader"></div> */
.loader {
    position: absolute; 
    top: calc(50% - 25px);
    left: calc(50% - 25px);
 
    width: 50px;
    aspect-ratio: 1;
    border-radius: 50%;
    background: 
      radial-gradient(farthest-side,#6374ce 94%,#0000) top/8px 8px no-repeat,
      conic-gradient(#0000 30%,#6374ce);
    -webkit-mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    mask: radial-gradient(farthest-side,#0000 calc(100% - 8px),#000 0);
    animation: l13 1s infinite linear;
  }
  @keyframes l13{ 
    100%{transform: rotate(1turn)}
  }

::selection {
    background: #ddd;
    color: #1a1c1e
}

::-webkit-scrollbar {
    width: 10px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0);
}

::-webkit-scrollbar-thumb {
    background: #666666;
    border-radius: 26px;
}

.form_radio_btn {
	display: inline-block;
	margin-right: 10px;

    /* font-size: 16px; */
    color: #9ecaff;
    background-color: #202429;
    border: 2px solid #202429;
    cursor: pointer;
    border-radius: 24px;
    outline: none;
}
.form_radio_btn input[type=radio]  {
	display: none;
}
.form_radio_btn input[type=checkbox] {
	display: none;
}
.form_radio_btn label {
	display: inline-block;
	cursor: pointer;
	padding: 0px 15px;
	line-height: 34px;
	/* border: 1px solid #999; */
	/* border-radius: 6px; */
	user-select: none;

    font-size: 1rem;
    color: #9ecaff;
    background-color: #202429;
    border: 2px solid #202429;
    cursor: pointer;
    border-radius: 24px;
    outline: none;
}
 
/* Checked */
.form_radio_btn input[type=radio]:checked + label {
	background-color: #6374ce
}
.form_radio_btn input[type=checkbox]:checked + label {
	background-color: #6374ce
}
 
/* Hover */
.form_radio_btn label:hover {
    background-color: #2d363f;
    border: 2px solid #2d363f;
}
/* Disabled */
.form_radio_btn input[type=radio]:disabled + label {
	background: #666;
	color: #1a1c1e;
    cursor:not-allowed;
}
.form_radio_btn input[type=checkbox]:disabled + label {
	background: #666;
	color: #1a1c1e;
    cursor:not-allowed;
}
#overlay-submit:disabled{
	background: #666666aa;
	color: #1a1c1e;
    cursor:not-allowed;
    border-color: #666666aa;
}
.play-button:disabled{
	background: #666;
	color: #1a1c1e;
    cursor:not-allowed;
}
@media all and (min-width:961px) {
    /* Range Reset */
    .time-limit-holder input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
        width: 30rem;
    }
}
@media all and (max-width:960px) {
    /* Range Reset */
    .time-limit-holder input[type="range"] {
        -webkit-appearance: none;
        appearance: none;
        background: transparent;
        cursor: pointer;
        width: 90%;
    }
}
 
.time-limit-holder input[type="range"]::-webkit-slider-runnable-track {
    background-color: #2d363f;
    border-radius: 0.5rem;
    height: 0.5rem;  
 }
 
 /* slider thumb */
.time-limit-holder input[type="range"]::-webkit-slider-thumb {
   -webkit-appearance: none; /* Override default look */
    appearance: none;
    margin-top: -12px; /* Centers thumb on the track */
 
    /*custom styles*/
    background-color: #6374ce;
    height: 2rem;
    width: 1rem;
    border-radius: 6px;
 }

/* .card {
    border: #6374ce;
    border-style: solid;
    border-radius: 24px;
    margin: 1rem;
}
#main-menu {
    display: flex;
    width: 100%;
}
#menu {
    margin-left: auto;
    margin-right: auto;
    margin-top: 4rem;
    text-align: center;
} */
.card {
    border: #6374ce;
    border-style: solid;
    border-radius: 24px;
    margin: 0.5rem;
    flex: 0 0 80%;
    position: relative;
}

#main-menu {
    display: flex;
    justify-content: center; /* Центрируем содержимое по горизонтали */
    align-content: center;
    width: 100%;
}

#menu {
    display: flex;
    flex-wrap: wrap;
    justify-content: center; 
    margin-top: 16rem;
    text-align: center;
    max-width: 48rem; 
    width: 100%; 
    height: fit-content;
    /* min-width: 28rem; */
}
@media all and (min-width:960px) {
    .card {
        box-sizing: border-box; /* Учитываем отступы в ширине */
        /* height: fit-content; */
        flex: 0 0 calc(50% - 2rem); /* Устанавливаем ширину карточек на 50% минус отступы */
    }
    #menu {
        width: 90%;
    }
}

.tooltip .tooltiptext {
    visibility: hidden;
    width: 10rem;
    background-color: #2d363f;
    color: #cecece;
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 3;
    left: 120%;
    font-size: 1rem;
}

.tooltip .tooltiptext::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent #2d363f transparent transparent;
}

.tooltip:hover .tooltiptext {
    visibility: visible;
}

.blur {
    filter: blur(1rem);
    pointer-events: none;
}

#username:hover {
    background-color: #2d363f;
    border-radius: 24px;
}

#left-healthbar, #right-healthbar {
    display: block;
    position: absolute;
    top: 1rem;
    background-color: #1a1c1e;
    z-index: 2;
    border-radius: 24px;
    width: 8rem;
    text-align: center;
    pointer-events: none;

}
#left-healthbar{
    left: 1rem;
}
#right-healthbar {
    right: 1rem;
}

.pvp-team-round-bd {
    display: block; 
    padding-right: 10vw;
    padding-left: 10vw;
}

/* Скрываем стандартный checkbox */
.custom-checkbox {
    display: none;
}

/* Создаем собственный стиль для checkbox */
.custom-checkbox-label {
    position: relative;
    padding-left: 35px; /* Отступ для метки */
    cursor: pointer;
    user-select: none; /* Запрет выделения текста */
}

/* Стиль для псевдоэлемента, который будет выглядеть как checkbox */
.custom-checkbox-label::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 25px; /* Ширина checkbox */
    height: 25px; /* Высота checkbox */
    border: 2px solid #000; /* Граница */
    border-radius: 4px; /* Закругление углов */
    background-color: #fff; /* Цвет фона */
}

/* Стиль для псевдоэлемента при активном состоянии */
.custom-checkbox:checked + .custom-checkbox-label::before {
    background-color: #6374ce; /* Цвет фона при выборе */
    border-color: #6374ce; /* Цвет границы при выборе */
}

/* Стиль галочки */
.custom-checkbox:checked + .custom-checkbox-label::after {
    content: '';
    position: absolute;
    left: 8px; /* Положение галочки */
    top: -4px; /* Положение галочки */
    width: 10px; /* Ширина галочки */
    height: 20px; /* Высота галочки */
    border: solid white; /* Цвет галочки */
    border-width: 0 2px 2px 0; /* Формирование галочки */
    transform: rotate(45deg); /* Поворот для создания галочки */
}


.round-marker {
    width: 2rem; /* Ширина метки */
    height: 2rem; /* Высота метки */
    background-size: cover; /* Обрезка изображения */
    border-radius: 50%; /* Круглая форма */
    border: 2px solid #6374ce; /* Опционально: граница */
}

#top-bar {
    display: flex;
    position: absolute;
    top: 0;
    width: 100%;
    height: 3.5rem;
    background-color: #202429;
}

.level {
    position: relative;
    margin-right: 0.5rem; 
    font-size: 1rem; 
    width: 2.5rem; 
    height: 2.5rem; 
    border-radius: 50%; 
    background: 
        radial-gradient(closest-side, #202429 79%, transparent 80% 100%), 
        conic-gradient(#6374ce 0%, #cecece 0);

    text-align: center;
    align-content: center;
}
