body {
    margin: 0;
    padding: 0;
    background-color: white; /* Белый фон */
    font-family: Arial, sans-serif;
}

.obvodka {
    text-shadow: -1px -1px 0 #000, 1px -1px 0 #000, -1px 1px 0 #000, 1px 1px 0 #000;
}

.okno {
    background-color: #ffffff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    color: white;
    border: 5px solid red;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    padding: 10px;
    bottom: 0;
    overflow: hidden;
    /* pointer-events: none; */ /* Временно убираем */
}

.stroka1, .stroka2, .stroka3, .stroka4 {
    width: 100%;
    display: flex;
    justify-content: space-around;

    align-items: center;
}

.stroka1 {
    height: 10%;
    background-color: #ffffff;
    color: black;
}

.label {
    font-size: 3em;
    font-weight: bold;
    padding: 10px 20px;
}

.label.red {
    color: #c2282d;
}

.label.white {
    color: white;
    border: 2px solid white;
}

.fight-number-value {
    border: 2px solid black;
    padding: 10px;
    font-size: 2em;
}

.fight-number {
    font-size: 1.5em;
    color: #000000;
    display: flex;
    align-items: center;
    gap: 20px;
}

.stroka2 {
    height: 20%;
    color: black;
}

.name-container {
    position: relative; /* Для позиционирования Winner */
    width: -webkit-fill-available;
}

.name {
    font-size: 2.5em;
    font-weight: bold;
    color: #000000;
    border: 2px solid black;
    padding: 5px;
}

.bigfont {
    font-size: 3em;
    font-weight: bold;
}

.stroka3 {
    height: 20%;
    padding: 0 20px;
    color: black;
}

.score {
    font-size: 8em;
    font-weight: bold;
    color: #000000;
    width: 20%;
    text-align: center;
    border: 2px solid black;
}

.logo2 {
    width: 60%;
    height: 134%;
    background-image: url('logo.png?a');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.stroka4 {
    height: 50%;
    color: black;
}

#pyramid_left_scoreview2, #pyramid_right_scoreview2 {
    aspect-ratio: 1;
    width: 100%;
    max-width: 337px;
    background-color: black;
    clip-path: polygon(1% 100%, 50% 1%, 100% 100%);
    -webkit-clip-path: polygon(1% 100%, 50% 1%, 100% 100%);
    position: relative;
    border: 2px solid white;
}

#pyramid_left_scoreview2:before, #pyramid_right_scoreview2:before {
    background-color: black;
    position: relative;
    clip-path: polygon(0 100%, 50% 0, 100% 100%);
    -webkit-clip-path: polygon(0 100%, 50% 0, 100% 100%);
}

.centertext {
   // width: 60%;
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.round {
    font-size: 2em;
    font-weight: bold;
}

.box {
    font-size: 4em;
    font-weight: bold;
    border: 2px solid #000000;
    padding: 10px 20px;
    margin: 10px 0;
}

.box2 {
    font-size: 3em;
    font-weight: bold;
    border: 2px solid black;
    padding: 10px 20px;
}

.level1, .level2, .level3 {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    height: 33.33%;
}

.segment {
    background-color: white;
    border: 1px solid gray;
    box-sizing: border-box;
}

#segment_1_left_scoreview, #segment_2_left_scoreview, #segment_3_left_scoreview,
#segment_1_right_scoreview, #segment_2_right_scoreview, #segment_3_right_scoreview {
    width: 33.33%;
    height: 100%;
}

#segment_4_left_scoreview, #segment_5_left_scoreview,
#segment_4_right_scoreview, #segment_5_right_scoreview {
    width: 50%;
    height: 100%;
}

#segment_6_left_scoreview, #segment_6_right_scoreview {
    width: 100%;
    height: 100%;
}

.segment.warning {
    background-color: blue;
    border: 1px solid gray;
}

.segment.major-warning {
    background-color: yellow;
    border: 1px solid gray;
}

.segment.penalty {
    background-color: rgb(255, 0, 0);
    border: 1px solid gray;
}

.segment.disqualified {
    background-color: rgb(255, 0, 0);
    border: 1px solid gray;
}

.noselect {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}


@media (max-height: 700px) {
    .score { font-size: 3em; }
}

@media (max-height: 600px) {
    #pyramid_left_scoreview2, #pyramid_right_scoreview2  { max-width: 240px !important; }
    .box2 { font-size:2em;}
}

@media (max-height: 480px) {
    #pyramid_left_scoreview2, #pyramid_right_scoreview2  { max-width: 180px !important; }
    .box2 { font-size:1em;}
    .box { font-size:2em;}

}

@media (max-height: 360px) {
    #pyramid_left_scoreview2, #pyramid_right_scoreview2  { max-width: 120px !important; }
    .box2 { font-size:1em;}
    .box { font-size:1em;}
    .name { font-size:1.5em;}
.fight-number-value {  font-size: 1em; }

}

@media (max-width: 740px) {
  .score { font-size: 4em;}
  .name {font-size: 1.4em;}
}


@media (max-width: 575px) {
  .label{font-size: 1em;}
  .name {font-size: 1em;}
  .score { font-size: 3em;}
}
