@font-face {
    font-family: 'UbuntuMono-Regular';
    src: url('../fonts/UbuntuMono/UbuntuMono-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Tektur';
    src: url('../fonts/Tektur/Tektur.ttf') format('truetype');
}

@font-face {
    font-family: 'Roboto Medium';
    src: url('/fonts/Roboto/Roboto-Medium.ttf') format('truetype');
}


* {
    border: 0;
    padding: 0;
    font-family: "Jura";
    font-family: "Roboto Black";
    font-family: "Roboto Medium";
    font-family: Tektur;
    margin: 0;
    font-weight: 400;
    outline: none;
    border-radius: 0px;
    accent-color: #1C85D7;
}

select {
    -moz-appearance: none;
    -webkit-appearance: none;
    appearance: none;
    appearance: none;
    background-image: url(data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%231C85D7%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E);
    background-repeat: no-repeat;
    background-position: right 0.7rem top 50%;
    background-size: 0.65rem auto;
}


#update-banner-1 {
    height: 55px;
    transition: .3s ease;
}

#update-banner-1 .content {
    margin: 0 auto;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#update-banner-1 .headline {
    font-weight: 800;
    font-size: 15px;
    color: #fbfbfb;
    font-family: 'Roboto', sans-serif;
}

#update-banner-1 .subhead {
    font-size: 13px;
    text-align: center;
    color: #fbfbfb;
    font-family: 'Roboto', sans-serif;
}

#update-banner-1[data-state="noupdate"] {
    display: none;
}

#update-banner-1[data-state="updateavailable"] {
    display: flex;
    cursor: pointer;
    background: #1C85D7;
    color: #fbfbfb;
    transition: .3s ease;
    opacity: 0.95;
    z-index: 9999;
    position: fixed;
    width: calc(100% - 30px);
    margin: 10px;
    padding: 5px;
    top: 0;
    align-items: center;
    border-radius: 15px;

}

#update-banner-1-icon {
    display: none;
}

#update-banner-1-icon svg {
    padding: 0px 50px;
    width: 25px;
    height: 25px;
    margin: -4px;
    fill: #fbfbfb;
}

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    background: transparent;
    cursor: pointer;
    width: 100%;
}

input[type="range"]:focus {
    outline: none;
}

input[type="range"]::-webkit-slider-runnable-track {
    background-color: #282927;
    border-radius: 5px;
    height: 8px;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    margin-top: -6px;
    background-color: #1C85D7;
    height: 20px;
    width: 20px;
    border-radius: 8px;
}

input[type="range"]::-moz-range-track {
    background-color: #282927;
    border-radius: 5px;
    height: 8px;
}

input[type="range"]::-moz-range-thumb {
    border: none;
    margin-top: -6px;
    background-color: #1C85D7;
    height: 20px;
    width: 20px;
    border-radius: 8px;
}

body {
    background-color: #f4f4f4;
    font-family: "Roboto Medium";
}

button {
    border: 1px solid #ccc;
    background: #282927;
    color: #fbfbfb;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 10px 0;
    text-transform: uppercase;
    width: calc(50% - 10px);
}

button:disabled {
    opacity: 0.6;
}

progress[value] {
    border: 1px solid #ccc;
    -webkit-appearance: none;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: none;
    width: 100%;
    height: 10px;
    margin: 20px 0 10px;
    position: relative;
    overflow: hidden;
}

progress[value]::-webkit-progress-bar {
    background-color: #dfe2e5;
    border-radius: 10px;
    overflow: hidden;
}

progress[value]::-webkit-progress-value {
    position: relative;
    background-color: #1C85D7;
    border-radius: 10px;
    animation: animate-stripes 5s linear infinite;
}

@keyframes animate-stripes {
    100% {
        background-position: -100px 0;
    }
}

#app {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 850px;
}

@media (min-width: 842px) and (min-height: 700px) {
    #app {
        /* height: 100vh; */
    }
}

#menu {
    display: flex;
    flex-direction: column;
    width: 842px;
    align-items: center;
}

.menu_buttons {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
}

.menu_buttons>button {
    width: 100%;
}

.menu_buttons>.bat_block {
    border: 1px solid #ccc;
    background: #282927;
    color: #fbfbfb;
    border-radius: 10px;
    padding: 10px 20px;
    margin: 10px 0px 10px 20px;
    text-transform: uppercase;
    width: 50px;
    text-align: center;
}

.firmware_block {
    display: flex;
    justify-content: space-between;
    max-width: 800px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    border: 1px solid #282927;
    border-radius: 15px;
    padding: 20px 20px 20px 20px;
    border-style: dashed;
    margin: 0 0 25px 0;
}

.firmware_block>.info {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: space-between;
    font-size: 13px;
    align-items: center;
}

.firmware_block>button {
    width: 100%;
    margin: 5px 0 0 0;
}

#menu input[type="number"] {
    border: 1px solid #ccc;
    background: #e0e2e5;
    color: #282927;
    border-radius: 10px;
    padding: 10px 4px;
    margin: 10px 0 10px 5px;
    text-transform: uppercase;
    width: 150px;
    text-align: center;
}

#app div {
    position: relative;
}

#pwm_block {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    border: 1px solid #282927;
    border-radius: 12px;
    padding: 10px 0 5px 0;
    border-style: dashed;
    margin: 0 0 25px 0;
}

#pwm_block>input[type="range"] {
    width: calc(100% - 40px);
    margin: 10px;
}

#pwm_block>div {
    position: relative;
    width: calc(100% - 40px);
    display: flex;
    flex-direction: row;
    justify-content: space-between;
}

#pwm_block>.settings_block {
    height: 60px;
    width: calc(100% - 62px);
    background: #fbfbfb;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px;
    margin: 0 10px;
}

#pwm_block>div>div {
    height: 60px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    font-size: 14px;
}

#pwm_block>div>svg {
    height: 60px;
    width: 675px;
}

#pwm_block>div>#pwm_button {
    display: flex;
    width: 100%;
}


.draw_block {
    display: flex;
    max-width: 800px;
    width: 100%;
    flex-direction: column;
    align-items: center;
    border: 1px solid #282927;
    border-radius: 15px;
    padding: 20px 20px 14px 20px;
    border-style: dashed;
    margin: 0 0 25px 0;
}


.draw_block>.settings_block {
    display: flex;
    width: 100%;
    justify-content: space-between;
}

.draw_block>select {
    margin: 10px 20px 0px 20px;
    border: 1px solid #ccc;
    height: 35px;
    background-color: #fbfbfb;
    color: #282927;
    font-size: 12px;
    cursor: pointer;
    border-radius: 10px;
    padding: 5px 8px;
    width: 100%;
}

.point_block,
.timer_block {
    display: flex;
    width: calc(50% - 10px);
    flex-direction: column;
    align-items: center;
    border: 1px solid #ccc;
    border-radius: 10px;
    padding: 10px 0px;
    background: #fbfbfb;
}

.buttons_block {
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.point_block label,
.timer_block label {
    font-size: 14px;
}

.point_block input,
.timer_block input {
    width: calc(100% - 40px);
    margin: 10px;
}


#mySVG {
    border: 1px solid #ccc;
    border-radius: 10px;
    width: 802px;
    height: 450px;
    max-height: 450px;
    max-width: 1200px;
    min-height: 450px;
    min-width: 800px;
    position: relative;
}

#title {
    position: absolute;
    z-index: 9;
    font-size: 20px;
    top: 15px;
    left: 20px;
    width: 500px;
    background: #dfe2e5;
    padding-left: 5px;
}

#article {
    position: absolute;
    z-index: 9;
    font-size: 16px;
    top: 40px;
    left: 20px;
    width: 500px;
    background: #dfe2e5;
    padding-left: 5px;
}

.history_block {
    width: calc(100% - 20px);
}

.history_block input {
    width: 100%;
    margin: 10px;
    display: none;
}