*{
    padding: 0px;
    margin: 0px;
    font-family: 'Roboto Condensed', sans-serif;

    
}
body, html {
    overflow-x: hidden;
    background-image: url("img/Березы.jpg");
    background-color: rgba(255, 255, 255, 0.4); /* Цвет фона с прозрачностью */
    background-blend-mode: overlay; /* Смешивание фона с цветом фона */
}


nav{
    margin: 0 auto;
    max-width: 1500px;
    width: 100%;
    font-weight: 700;
}
#checkbox-menu,
.toggle{
    display: none;
}
.menu{
    padding: 0;
    margin: 50px;
    height: 30px;
    display: flex;
    flex-direction: row;
    justify-content: space-around;
    align-items: center;
    list-style-type: none;
    color: #848484;
    text-align: center;
}

.event-info p2,.event-info p3 {
    display: none;
  }


.menu li class="active"{
    color: #000;
    text-decoration: none;
    align-self: center;
    font-size: 15px;
    padding: 3px 3px;
    transition: background .2s linear;
    color: #848484;}
.menu li a{
    color: #000;
    text-decoration: none;
    align-self: center;
    font-size: 80px;
    padding: 3px 3px;
    transition: background .2s linear;
    color: black;
   }

li {
    margin-right: 3px;
  
}


.menu li class="active"{
    background: #0000ff;
    border-radius: 3px;
}
.menu li a:hover{
    background: #0000ff;
    border-radius: 3px;

}

.wrapper{
    margin: 0 auto;
    max-width: 1200;
    width: 100%;
}
.intro{
    margin-top: 25px;
    display: flex;
    justify-content: center;
}

.intro .intro-text{
    clear: both;
    display: none;
    text-align: center;
    line-height: 40px;
    width: 100%;
    color: #fff;
    font-size: 62px;



}
.intro .intro-text1{
    clear: both;
    text-align: center;
    line-height: 62px;
    width: 100%;
    color: #fff;
    font-size: 62px;
    }


.intro-contacts{
    background-color: #697e9a;
    max-width: 570px;
    position: fixed;
    right: 0;
    bottom: 0;
    display: flex; 
    justify-content: space-between;
    padding: 30px 50px;
    border-radius: 30px;
}
.intro-contacts i{
    color: #fff;
    margin-right: 10px;
     
}

.intro-contacts p{
    font-size: 18px;
    margin-right: 15px;

}
form{
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100px;
}
.form_button{
    border-radius: 5px;
    color: #fff;
    background-color: #0071f0;
    cursor: pointer;
    transition: 0.3s;

}

label[for="male"] {
  color: red;
}

label[for="female"] {
  color: red;
}

label[for="gr"] {
    color: #d7de11;
    font-weight: 900;
}

label[for="categories"] {
    color: #d7de11;
    font-weight: 900;
}


label[for="distance"] {
    color: #d7de11;
    font-weight: 900;
}



#Summa {
    font-weight: bold;
    font-size: 20px;
    
   
}

  .gender-options input[type="radio"] {
    margin-right: 40px;
    margin-left: 40px;
  }

  .gender-label {
    display: flex;
    text-align: center;
    letter-spacing: 80px;
    padding-left: 80px;
  }

.event-info {
  max-width: 1000px;
  margin: 0 auto;
  text-align: center;
}

.event-info h2 {
  color: white; 
  font-weight: 900;
}
.event-info p1 {
  color: #15884e; 
  font-weight: 900;
  font-size: 40px
}
.event-info p2 {
  color: red; 
  font-weight: 900;
  font-size: 20px
}
.event-info p3 {
  color: yellow; 
  font-weight: 900;
  font-size: 20px
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    overflow-y: scroll;
}

.modal form {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: absolute;
    top: 700px;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80%;
    max-width: 860px;
    height: auto;
    padding: 20px;
    background-color: #fff;
    border-radius: 10px;
}


.modal input {
    margin-bottom: 10px;
    border: 1px solid #000;
    border-radius: 5px;
    padding: 5px;
}




.register-button, .login-button { 
    display: inline-block; 
    padding: 10px; 
    margin: 10px; 
    border-radius: 5px; 
    background-color: #3498db; 
    color: #fff; 
    font-size: 16px; 
    text-decoration: none; 
    cursor: pointer; 
}


.register-button:hover, .login-button:hover { 
    background-color: #2980b9; 
}

.button-container {
  text-align: center;
}.button-container {
  text-align: center;
} 

button {
    display: inline-block;
    padding: 10px;
    margin: 10px;
    border-radius: 5px;
    background-color: #3498db;
    color: #fff;
    font-size: 60px;
    text-decoration: none;
    cursor: pointer;
}


.close-button {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 24px;
  cursor: pointer;
  color: white;
  background-color: transparent;
  border: none;
  padding: 5px;
  margin: 5px;
}

.close-button:hover {
  color: #bbb;
}

.form_button {
  font-size: 25px;
}

select {
  font-weight: bold;
  font-size: 20px;
  border: 1px solid #ccc;
  padding: 5px;
  border-radius: 5px;
  box-sizing: border-box;
}

#welcome-message {
    color: yellow;
    font-size: 20px;
    position: fixed;
    top: 0;
    left: 0;
}

.logout-button {
    position: fixed; 
    top: 0;
    right: 0;
    background-color: 
    blue;
    font-size: 15px;
    border-radius: 30%;
}

.regraduznyi {
  display: inline-block;
  padding: 10px 20px;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #2f52b7;
  color: white;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  width: 1000px;
  height: 50px;
  line-height: 30px;
}
.centered {
  text-align: center;
}


.spisok{
  display: block;
  margin: 15px auto;
  padding: 10px 20px;
  font-size: 30px;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  background-color: #62bacf;
  color: #0e2a78;
  border-radius: 5px;
  border: none;
  cursor: pointer;
  width: 1000px;
  height: 50px;
  line-height: 30px;
}

.my-table {
  border-collapse: collapse;
  width: 100%;
  max-width: 800px;
  margin: 0 auto;
}

.my-table th,.my-table td {
  text-align: left;
  padding: 8px;
}

.my-table th {
  background-color: #f2f2f2;
  font-weight: bold;
}

.my-table tr:not(:first-child) {
  background-color: #ddd;
}

.my-table tr:nth-child(even) {
  background-color: #f2f2f2;
}

.my-table tr:hover {
  background-color: #ddd;
}

.resultat {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  font-size: 30px;
}

.resultatlink {
  text-align: center;
  margin-bottom: 20px;
}

.polozenie {
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 30px;
}
.participant-row {
    display: none;
}

.center-buttons {
    display: flex;
    justify-content: center;
    margin-top: 20px;
}

.sponsor-logos {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: yellow;
    text-align: center; /* Центрирование содержимого по горизонтали */
    padding: 20px; /* Добавление отступов вокруг контейнера */
    margin-bottom: 0px; /* Добавление отступа внизу */
}

.sponsor-logos img {
    max-width: 7vw; /* Максимальная ширина логотипа */
    max-height: 5vw; /* Максимальная высота логотипа */
    margin: 10px; /* Добавление отступов между логотипами */

}

.sponsor-logos1 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: yellow;
    text-align: center; /* Центрирование содержимого по горизонтали */
    padding: 20px; /* Добавление отступов вокруг контейнера */
    margin-bottom: 80px; /* Добавление отступа внизу */
}

.sponsor-logos1 img {
    max-width: 7vw; /* Максимальная ширина логотипа */
    max-height: 5vw; /* Максимальная высота логотипа */
    margin: 10px; /* Добавление отступов между логотипами */

}
.photo1 {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 700px; /* Устанавливаем высоту блока равной высоте экрана */
    max-width: 100%;
    padding-top: 20px;
    padding-bottom: 20px;
}
.photo1 img {
    width: 40%; /* Устанавливаем ширину изображения в 5% от ширины экрана */
    max-width: 40%; /* Устанавливаем максимальную ширину изображения в 100% от родительского контейнера */
}
@media screen and (max-width: 1000px) {
    .toggle{
        clear: both;
        display: block;
        text-align: center;
        font-size: 18px;
        line-height: 40px;
        width: 100%;
        color: #000;
        background: #848484;
        transition: all .1s linear;
        

    }
    .tooggle:hover{
        background: #d3a900;
    }
    #checkbox-menu:checked + label .touch li{
        opacity: 1;
        visibility: visible;
        transition: all .7s linear;
    }
    #checkbox-menu:checked + label .touch {
        height: 1300px;
    }
    nav{
      margin-top: 10px;
      margin-bottom: 10px;
    }
    .menu{
        display: flex;
        flex-direction: column;
        justify-content: space-around;
        align-items: center;
        height: 0;
        transition: height .3s linear;
        padding-top: 20px;
    }

    .menu li{
        display: flex;
        align-self: center;
        width: 95%;
        opacity: 0;
        visibility: hidden;


        
    }
    .menu li a{
        width: 95%;
        text-align: center;
        align-self: center;
        align-content: center;
        font-size: 4vw;
        
    }
    .menu li a.logo{
        font-size: 20px;
        margin-right: 0px;
    }

    .intro .intro-contacts{
        top: 15px;
        padding: 20px 107px;
        position: relative;
        max-width: 100%;
        display: flex;
        justify-content: center;
        align-items: center;
        text-align: center;
        margin-left: 2%;
    }

    .intro{
        margin-top: 0;
        display: block;
        max-width: 100%;
    }
    .intro .intro-text{
        position: relative;
        font-size: 40px;
        right: -10px;
        top: 10px;
        display: block;
    }

  
    
    .intro-contacts i{
        margin-right: 2px;
        
       
    }
    .intro-contacts p{
        margin: 0 10px;
        font-size: 13px;
        clear: both;
        display: flex;
        text-align: center;
        line-height: 10px;
        width: 100%;
        
    }
  	form{
        display: grid;
        justify-content: center;
        align-items: center;
        height: 50px;
        margin-top: 20px;
    }
    label[for="male"], label[for="female"] {
    color: black;
    }

    .gender-options {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    text-align: center;
    width: 100%;
    }
    .gender-options input[type="radio"] {
    margin-right: 40px;
    margin-left: 40px;

    }

  .gender-label {
    display: flex;
    text-align: center;
    letter-spacing: 80px;
    padding-left: 80px;
  }

    .event-info {
        margin-top: 20px;
    }


    .register-button, .login-button { 
        display: block;
        margin: 0 auto;
        text-align: center;
    }
    

    .regraduznyi {
        font-size: 3vw;
        font-weight: bold;
        width: 100%;
        height: 50px;
        line-height: 30px;
        margin-top: 20px;
    }

    .event-info p2,.event-info p3 {
    display: block;
    text-align: center;
  }
  .spisok{
    font-size: 3vw;
      font-weight: bold;
      width: 100%;
      height: 50px;
      line-height: 30px;
      margin-top: 20px;
  }

  button {
    font-size: 5vw;
    width: 100%;
    height: 80px;
    margin-left: 0px;
    margin-top: 100px;

  }
  select {
  font-weight: bold;
  font-size: 12px;
  padding: 5px;
  border-radius: 5px;
  }
  .sponsor-logos, .sponsor-logos1 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        grid-gap: 10px;
        justify-content: center; /* Центрирование по горизонтали */
        align-items: center;
        text-align: center;
        padding: 20px;
        margin: 0 auto; /* Центрирование блоков по горизонтали */
    }

    .sponsor-logos img, .sponsor-logos1 img {
        max-width: 20vw;
        max-height: 17vw;
        margin: 10px;
    }
}