:root {
    --viewport-width: 100vw;
    --viewport-height: 100vh;
    --viewport-height: 100dvh;
    --yelow_color: gold;
    --blue_color: #0676c2;
    --lihgt_blue_color: #0198fdf7;
}

html {
    font-size: 16px;
    /* Тепер 1rem дорівнює 16px */
}

@font-face {
    font-family: 'Days';
    src: url('/styles/font/Days.woff') format('woff');
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

body {
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

.run_description {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.807);
    font-size: clamp(0.5rem, 1.3rem, 2rem);
    padding-bottom: 10px;
    text-align: center;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);

}


.decripton_2 {
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: rgba(255, 255, 255, 0.807);
    padding-bottom: 10px;
    padding-top: 30px;
    text-align: center;
    padding-left: 10px;
    padding-right: 10px;
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
}

header {
    background-color: var(--blue_color);
    color: var(--yelow_color);
    text-shadow: 1px 1px rgba(77, 75, 75, 0.744);
    height: 70px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
    padding-left: 10px;
    padding-right: 10px;
}

.v_run_header {
    font-size: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

header img {
    width: 50px;
}


#burger-toggle {
    display: none;
}

.menu ul {
    display: flex;
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 1vw;
}

.menu ul li {
    font-size: clamp(1rem, 1.2rem, 1.7rem);
}

nav.menu a {
    color: var(--yelow_color);
    text-decoration: none;
}

.h2_header {
    text-align: center;
    padding-top: 2vh;
    padding-bottom: 2vh;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-size: 2rem;
    color: var(--yelow_color);
}


/* ///////////  section_main_index_1   ////////// */
.background-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    z-index: -1;
    transform: translate(-50%, -50%);
    /* Центрирует видео */
    object-fit: cover;
    /* Гарантирует, что видео закрывает весь контейнер, обрезая при необходимости */
}

.section_main_index_1 {
    display: flex;
    flex-direction: column;
    height: calc(var(--viewport-height) - 70px);
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.7), rgba(2, 6, 60, 0.7));
    position: relative;
    overflow: hidden;
}

.content_overlay {
    display: flex;
    flex-direction: column;
    position: relative;
    position: relative;
    z-index: 1;
}

.content_overlay .item_1 {
    display: flex;
    flex-grow: 1;
    height: 20vh;
}

.content_overlay .item_2 {
    display: flex;
    flex-grow: 1;
    height: 40vh;
}

.content_overlay .item_3 {
    display: flex;
    flex-grow: 1;
    height: 10vh;
}

.content_overlay .item_4 {
    display: flex;
    flex-grow: 1;
    height: 12vh;
    margin-top: auto;
    /* Прижимает элемент к низу */
}

.content_overlay .item_5 {
    display: flex;
    flex-grow: 1;
    height: 10vh;
}

.content_overlay_h1 {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    text-align: center;
    color: rgba(255, 255, 255, 0.807);
    font-size: clamp(4rem, 5rem, 6rem);
    text-shadow: 2px 4px 4px rgba(0, 0, 0, 0.5);
}

.item_2 .run_description {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    font-size: clamp(0.3rem, 2rem, 3rem);
}

.reg {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
}

.reg_buttom {
    width: 350px;
    height: 80px;
    display: block;
    background-color: #0198fd;
    margin-left: auto;
    margin-right: auto;
    border-radius: 5px;
    color: var(--yelow_color);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reg_buttom p {
    font-size: clamp(1rem, 2.5rem, 4rem);
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    font-weight: bold;
}


.organizers {
    display: flex;
    align-items: end;
    justify-content: left;
    width: 100vw;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color: white;
    font-size: clamp(0.5rem, 1rem, 3rem);
    /* padding-top: 4vh; */
    flex-shrink: 1;
    padding-left: 5vw;
}

.organizers_logo {
    display: flex;
    width: 100vw;
    padding-left: 5vw;
    align-items: center;
}

.iron {
    display: block;
    background-color: var(--yelow_color);
    width: 80px;
    height: 50px;
    margin-left: 2vw;
    background-image: url(/logo.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
}

.odesa {
    display: block;
    /* background-color: var(--yelow_color); */
    width: 100px;
    height: 80px;
    margin-left: 2vw;
    background-image: url(/odesa.svg);
    background-repeat: no-repeat;
    background-position: center;
    border-radius: 5px;
}



/* ///////////  section_main_index_2   ////////// */
.countdown-container {
    background-color: #fff;
    padding: 20px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    text-align: center;
}

#countdown-line {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--yelow_color);
    margin-top: 15px;
    white-space: nowrap;
    /* Предотвращает перенос строки */
    margin-left: auto;
    margin-right: auto;
}


.section_main_index_2>* {
    flex-shrink: 1;
    min-height: 0;
}

.section_main_index_2 {
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(360deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
}

#gallery {
    width: 60vw;
    height: 60vh;
    position: relative;
    overflow: hidden;
    border: 5px solid #fff;
    border-radius: 7px;
    box-shadow: 0 0 20px #000;
    margin-left: auto;
    margin-right: auto;
}

#gallery img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 1s ease;
}

#gallery img.active {
    opacity: 1;
    z-index: 1;
}

/* ///////////  section_main_index_3    ////////// */
.section_main_index_3>* {
    flex-shrink: 1;
    min-height: 0;
}

.section_main_index_3 {
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
    border-top: solid 1px var(--yelow_color);
}

#map {
    height: 50vh;
    width: 80vw;
    border: 1px solid #ccc;
    margin-left: auto;
    margin-right: auto;
}

/* /////////// МАРШРУТ ЗАБІГУ  section_main_index_4   ////////// */
.section_main_index_4>* {
    flex-shrink: 1;
    min-height: 0;
}

.section_main_index_4 {
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(180deg, rgba(2, 6, 60, 0.9), rgba(0, 0, 0, 0.879));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
    border-top: solid 1px var(--yelow_color);
}

#map-route {
    height: 80vh;
    width: 70vw;
    border: 1px solid #ccc;
    margin-left: auto;
    margin-right: auto;
}

/* /////////// УЧАСНИКИ section_main_index_4   ////////// */
.section_main_index_5 {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(180deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
    border-top: solid 1px var(--yelow_color);
    padding-bottom: 10px;
}



.section_main_index_5 table {
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    border: 1px solid var(--yelow_color);
    color: #ffffff;

}

.section_main_index_5 td {
    text-align: center;
}








.result>* {
    flex-shrink: 1;
    min-height: 0;
}

.result {
    height: var(--viewport-height);
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(360deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
}

.reglament>* {
    flex-shrink: 1;
    min-height: 0;
}

.reglament {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(360deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
}

.reglament div {
    color: #fff;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

.contact {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background-image: linear-gradient(360deg, rgba(0, 0, 0, 0.879), rgba(2, 6, 60, 0.9));
    background-repeat: no-repeat;
    background-position: 45% center;
    background-size: cover;
}

.contact div {
    color: #fff;
    width: 90vw;
    margin-left: auto;
    margin-right: auto;
}

.contact div p img {
    width: 40px;
    vertical-align: middle;
}

.contact div p {
    width: 80vw;
    margin-left: auto;
    margin-right: auto;
    font-size: 5vw;
    padding-top: 10px;
    padding-bottom: 10px;

}

footer {
    background-color: #1d025b;
    color: var(--yelow_color);
    height: 50px;
    display: flex;
    justify-content: center;
    /* по горизонтали */
    align-items: center;
}