*{
    margin: 0;
}
html {
    min-height: 100%;
    background-image: url('../img/pixel.webp');
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    background-attachment: fixed;
}
body {
    /*background-attachment: fixed;
    overflow: auto;
    background-position: center center;
    background-repeat: no-repeat;
    background-size: cover;*/
}
.wrapper {
    display: flex;
    flex-flow: row wrap;
    font-weight: bold;
    /*text-align: center;
*/
}
.wrapper > * {
    /*padding: 1px;*/
    flex: 1 100%;
    font-family: "Open Sans", sans-serif;
    font-weight:normal;
}
.header {
    text-align: center;
    width: 100%;

}
.footer {
    position: fixed;
    left: 0;
    bottom: 0;
    width: 100%;
    background-color: #3C3930;
    color: white;
    text-align: center;
    margin: 0 auto;
    height: auto;
}
.footerlogo{
    width:19px;
    height:19px;
}
.main {
    /*text-align: center;*/
    width:100%;
    /*min-height: calc(100vh - 89px);*/
    margin-bottom:30px;
}
p {
    color: #ECDB12;
    text-shadow: 0 0 4px #6699ff;
    margin: 2px auto;
    font-size: 20px;
    text-align:center;
}

h1{
    color: #ECDB12;
    text-shadow: 0 0 4px #6699ff;
    margin: 20px auto;
    font-size: 35px;
    text-align:center;
}

.ukr {
    color: #ECDB12;
    text-shadow: 0 0 4px #6699ff;
    font-size: 12px;
    text-align: right;
    text-transform:uppercase;
}
.eng {
    color: #fff;
    text-shadow: 0 0 4px #6699ff;
    font-size: 10px;
    text-align: right;
}
.table {
    max-width:600px;
    background: rgba(60,57,48, 0.6);
    width: 100%;
    padding: 5px 10px 5px 10px;
    /*border: 1px solid #666633;*/
    border-radius:5px;
    margin: auto;
}

.res {
    color: #ECDB12;
    text-shadow: 0 0 4px #6699ff;
    font-size: 25px;
    font-family: 'Open Sans', sans-serif;
    font-weight: 800;
    text-align: left;
}
img {
    max-height: 30px;
    max-width: 70px;
    transition: transform .2s;
}
img:hover {
    transform: scale(2.5);
}
.update {
    color: #fff;
    text-shadow: 0 0 4px #6699ff;
    font-size: 16px;
    font-family: 'Open Sans', sans-serif;
    font-weight: normal;
    font-style: italic;
    text-align: right;
}
td,th {
    width:auto;
    text-align:center;
}
.date {
    color: #ffffff;
    text-shadow: 0 0 4px #6699ff;
    font-size:35px;
    text-align:center;
}
a:hover {
    color: #6699ff;
    text-decoration: none;
    text-shadow: 0 0 4px #ECDB12;
}
a {
    color: #ECDB12;
    text-decoration: none;
    /*text-shadow: 0 0 4px #6699ff;*/
    font-size:15px;
}
.dimg{
    max-width:20px;
}
.chart,#chart {
    background: rgba(60,57,48, 0.8);
    /*border-radius:10px;*/
    width:100%;
    height: 500px;

}
.container-fluid{
    /*margin: 5px;*/

}
.container,#container {
    background: rgba(60,57,48, 0.8);
    border-radius:10px;
    width:70%;
	margin: 0 auto;
	padding: 15px 5px 25px 5px;
}
.diagram {
    float: left;
    width:50%;
    height:400px;
    background: rgba(60,57,48, 0.6);
}

.top-diagram{
    width: 100%;
}
.diagrams{
margin:5px;
}
@media all and (min-width: 600px) {
    .aside { flex: 1 0 0; }

}
@media all and (min-width: 800px) {
    .main    { flex: 3 0; }
    .aside-1 { order: 1; }
    .main    { order: 2; }
    .aside-2 { order: 3; }
    .footer  { order: 4; }
}
@media screen and (max-width: 992px) {
    html {
        background-image: url('../img/pixel_m.webp');
		.row > div:nth-child(1) { flex: 0 0 55px; }
.row > div:nth-child(3) { flex: 0 0 45px; }
.row > div:nth-child(4) { flex: 0 0 65px; }
    }
    #bgVideo {
        display: none!important;
    }
    #bgVideoMobile{
        display: block!important;
        position: fixed;
        right: 0;
        bottom: 0;
        min-width: 100%;
        min-height: 100%;
    }
    .table {
        width: 100%;
    }
    .diagrams{
        margin:0;
    }
    p, span, a {
        font-size: 20px;
        /*text-align:center;*/
    }
    h1 {
        font-size: 30px;
        margin: 15px auto;
    }
    .date {
        font-size: 30px;
    }
    .res {
        font-size: 20px;
        text-align:left;
    }
    .update {
        font-size: 15px;
        text-align:right;
    }
    .ukr {
        font-size: 12px;
    }
    .eng {
        font-size: 10px;
    }
    img {
        max-height: 35px;
        max-width: 50px;
    }
    .dimg {
        max-width: 20px;
    }
    .footerlogo {
        width: 20px;
        height: 20px;
    }
    .main {
        /*min-height: calc(100vh - 280px);*/
        margin-bottom: 60px;
    }
    .diagram {
        float: left;
        background: rgba(60,57,48, 0.6);
        width: 100%;
        height: 400px;
    }
    .copyrights {
        display: none;
    }
    .icon-bar {
        width: 100%;
        background: rgba(60,57,48, 0.8);
        overflow: auto;
    }
    .icon-bar a {
        float: left;
        width: 25%; 
        text-align: center;
        padding: 10px 0;
        transition: all 0.3s ease;
        color: white;
        font-size: 25px;
    }
    .icon-bar a:hover {
        background-color: #000;
    }
    .active {
        background-color: #666633;
    }
    #myTopnav{
        display: none;
    }
}
/* width */
::-webkit-scrollbar {
    width: 5px;
}
/* Track */
::-webkit-scrollbar-track {
    background: #c5b79d;
}
/* Handle */
::-webkit-scrollbar-thumb {
    background: #666633;
}
/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: #3c3930;
}
@media screen and (min-width: 992px){
    .icon-bar {
        display: none;
    }
    .mems-container {
        margin-left: auto;
        margin-right: auto;
        margin-bottom: 60px;
        width: 60%;
    }
    #bgVideoMobile{
        display: none!important;
    }
}
/* Бокове меню на малих екранах */
.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: rgba(60,57,48, 0.9);
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}
.sidenav a {
    padding: 8px 8px 8px 8px;
    text-decoration: none;
    font-size: 20px;
    /*color: #818181;*/
    text-transform: uppercase;
    display: block;
    transition: 0.1s;
}
.sidenav a:hover {
    color: #f1f1f1;
}
.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}
#main {
    transition: margin-left .5s;
    padding: 16px;
}
@media screen and (max-height: 450px) {
    .sidenav {
        padding-top: 15px;
    }
    .sidenav a {
        font-size: 18px;
    }
}
hr {
    height: 2px;
    border-width: 0;
    background-color: rgba(236,219,18,0.6);
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}
/*Mems block*/

@media screen and (min-width: 600px) {
    .topnav a, .topnav-right {
        float: none;
        display: block;
    }
    .accordion:hover {
        background-color: rgba(68, 68, 51, 0.9);
    }
}


.accordion {
    background-color: #444433;
    color: white;
    cursor: pointer;
    padding: 10px;
    width: 100%;
    border: none;
    text-align: left;
    outline: none;
    transition: 0.4s;
}
h2 {
    font-size: 30px;
    font-family: 'Caveat', sans-serif;
    margin:0;
    text-align: center;
}

.panel {
    padding: 0 10px;
    background-color: rgba(68, 68, 51, 0.9);
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.2s ease-out;
}
.mems {
    color: white;
    font-family: 'Caveat', sans-serif;
    text-align: left;
    font-size: 25px;
    margin: 10px;
}
/*Mems block End*/
/* Нове меню */
.center{
    display: flex;
    justify-content: center;
    align-items: center;
}
/*Меню*/
.topnav-right {
    float: right;
}

/* Responsive navigation menu (for mobile devices) */
@media screen and (max-width: 600px) {
    .topnav a, .topnav-right {
        float: none;
        display: block;
    }

}
.topnav {
    width: 100%;
    overflow: hidden;
    background-color: #3C3930;

}
.topnav a {
    /*float: left;*/
    display: inline-block;
    color: #f2f2f2;
    text-align: center;
    padding: 14px 16px;
    text-decoration: none;
    font-size: 17px;
    height: auto;
}
.active {
    background-color: #666633;
    color: white;
}

.topnav .icon {
    display: none;
}

.dropdown {
    /*float: left;*/
    display: inline-block;
    overflow: hidden;
}

.dropdown .dropbtn {
    font-size: 17px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}

.dropdown-content {
    display: none;
    position: absolute;
    background-color: #3C3930;
    min-width: 160px;
    box-shadow: 0 8px 16px 0 rgba(0,0,0,0.2);
    z-index: 1;
}

.dropdown-content a {
    float: none;
    color: #ffffff;
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.topnav a:hover, .dropdown:hover .dropbtn {
    background-color: #666633;
    color: white;
}

.dropdown-content a:hover {
    background-color: #666633;
    color: #ffffff;
}

.dropdown:hover .dropdown-content {
    display: block;
}

@media screen and (max-width: 600px) {
    .topnav a:not(:first-child), .dropdown .dropbtn {
        display: none;
    }

    .topnav a.icon {
        float: right;
        display: block;
    }
}

@media screen and (max-width: 600px) {
    .topnav.responsive {
        position: relative;
    }

    .topnav.responsive .icon {
        position: absolute;
        right: 0;
        top: 0;
    }

    .topnav.responsive a {
        float: none;
        display: block;
        text-align: left;
    }

    .topnav.responsive .dropdown {
        float: none;
    }

    .topnav.responsive .dropdown-content {
        position: relative;
    }

    .topnav.responsive .dropdown .dropbtn {
        display: block;
        width: 100%;
        text-align: left;
    }
	.container,#container {
    background: rgba(60,57,48, 0.8);
    border-radius:10px;
    width:90%;
	margin: 0 auto;
	padding: 15px 5px 25px 5px;
}
}


/* Кінець нового меню */
.h1-total-result{
    color: white;
    font-size: 30px;
}
.h1-mem{
    font-family: "Caveat", sans-serif;
    font-size: 60px;
    margin: 15px 5px;
    color: white;
}
.h2-warend{
    /* font-family: "Caveat", sans-serif; */
    font-size: 30px;
	text-shadow: 0 0 4px #6699ff;
    margin: 15px 5px;
    color: white;
}

/*Video Background*/
#bgVideo {
    position: fixed;
    right: 0;
    bottom: 0;
    min-width: 100%;
    min-height: 100%;
}

.content {
    position: fixed;

    width: 100%;
}

/*End of Video Background*/
.copyrights {
    color: white;
    padding-top: 15px;
    padding-bottom: 15px;
}


/*06/05/2026*/
.row {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    padding: 3px 0;
}

.row > div {
    display: flex;
    align-items: center;
    justify-content: center;
}
/* Колонки фіксованої ширини — як були td */
.row > div:nth-child(1) { flex: 0 0 75px; justify-content: center; } /* img */
.row > div:nth-child(2) { flex: 1 1 auto; justify-content: flex-end; } /* назва */
.row > div:nth-child(3) { flex: 0 0 50px; justify-content: flex-end; } /* +update */
.row > div:nth-child(4) { flex: 0 0 80px; justify-content: flex-start; } /* res */
.row > div:nth-child(5) { flex: 0 0 20px; justify-content: center; } /* chart icon */


.cards-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
    max-width: 960px;
    margin: 0 auto;
    padding: 10px;
}

.card {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
    background: rgba(60, 57, 48, 0.6);
    border-radius: 5px;
    padding: 8px 10px;
}

.card img {
    max-height: 40px;
    max-width: 55px;
    flex-shrink: 0;
}

.card-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
    flex: 1;
}

.card-info .ukr,
.card-info .eng {
    text-align: left;
    margin: 0;
}

.card-nums {
    display: flex;
    flex-direction: row;
    align-items: baseline;
    gap: 6px;
}

.card-info a {
    font-size: 11px;
    margin-top: 2px;
}

@media screen and (max-width: 992px) {
    .cards-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .cards-grid {
        grid-template-columns: 1fr;
    }
}




/* Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {}

/* Small devices (portrait tablets and large phones, 600px and up) */
@media only screen and (min-width: 600px) {}

/* Medium devices (landscape tablets, 768px and up) */
@media only screen and (min-width: 768px) {}

/* Large devices (laptops/desktops, 992px and up) */
@media only screen and (min-width: 992px) {}

/* Extra large devices (large laptops and desktops, 1200px and up) */
@media only screen and (min-width: 1200px) {}