* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
}

html, body {
    height: 100%;
}

body {
    line-height: 1.5;
    background-color: #F1F3F6;
    color: #34495E;
    overflow-y: scroll;
}

header, nav, main, footer {
    padding: 2px calc((100% - 800px) / 2) 0;
}

main {
    margin-top: 54px;
    margin-bottom: 54px;
    min-height: calc(100vh - 285px);
    overflow: auto;
	font-size: 18px; 
}

h1 a {
    font-size: 36px; /*AZ - заголовок*/
    font-weight: bold;
    background-image: url("/static/img/az.png");
    background-repeat: no-repeat;
    background-position: 0px 0px;
    height: 36px;
    padding-left: 50px;
    position: relative;
}

h1 a:hover {
    text-decoration: none;
    color: #34495E;
}

h2 {
    font-size: 24px;
    margin-bottom: 12px;
    position: relative;
    top: 9px;
}
h3 {
    color: #fe32ba;
    font-size: 18px;
    margin-bottom: 18px;
    position: relative;
    top: 9px;
}
h4 {
    color: #1cc44b;
    font-size: 18px;
    margin-bottom: 18px;
    position: relative;
    top: 9px;
}
a {
    color: #62CB31;
    text-decoration: none;
	font-size: 32px; /*18px; - AZ размер ссылки*/
}

a:hover {
    color: #4EB722;
    text-decoration: underline;
}


a {
    color: #14295E;
}
/* 2025-03-13 start*/

section {
    border-radius: 1em;
    padding: 1em;
    position: absolute;
    top: 50%;
    left: 50%;
    margin-right: -50%;
    transform: translate(-50%, -50%) 
}

/* 2025-03-13 end*/
/*
textarea, input:not([type="submit"]) {
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
}
*/
header {
    background-image: -webkit-linear-gradient(left, #34495e, #34495e 25%, #9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, #62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, #e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%);
    background-image: -moz-linear-gradient(left, #34495e, #34495e 25%, #9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, #62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, #e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%);
    background-image: -ms-linear-gradient(left, #34495e, #34495e 25%, #9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, #62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, #e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%);
    background-image: linear-gradient(to right, #34495e, #34495e 25%, #9b59b6 25%, #9b59b6 35%, #3498db 35%, #3498db 45%, #62cb31 45%, #62cb31 55%, #ffb606 55%, #ffb606 65%, #e67e22 65%, #e67e22 75%, #e74c3c 85%, #e74c3c 85%, #c0392b 85%, #c0392b 100%);
    background-size: 100% 6px;
    background-repeat: no-repeat;
    border-bottom: 1px solid #E4E5E7;
    overflow: auto;
    padding-top: 33px;
    padding-bottom: 27px;
    text-align: center;
	font-size: 18px; 
}

header a {
    color: #34495E;
    text-decoration: none;
}

nav {
    border-bottom: 1px solid #E4E5E7;
    padding-top: 17px;
    padding-bottom: 15px;
    background: #F7F9FA;
    height: 60px;
    color: #6A6C6F;
}

nav a {
    margin-right: 1.5em;
    display: inline-block;
}

nav form {
    display: inline-block;
    margin-left: 1.5em;
}

nav div {
    width: 50%;
    float: left;
}

nav div:last-child {
    text-align: right;
}

nav div:last-child a {
    margin-left: 1.5em;
    margin-right: 0;
}

nav a.live {
    color: #34495E;
    cursor: default;
}

nav a.live:hover {
    text-decoration: none;
}

nav a.live:after {
    content: '';
    display: block;
    position: relative;
    left: calc(50% - 7px);
    top: 9px;
    width: 14px;
    height: 14px;
    background: #F7F9FA;
    border-left: 1px solid #E4E5E7;
    border-bottom: 1px solid #E4E5E7;
    /*-moz-transform: rotate(45deg);
    -webkit-transform: rotate(-45deg);*/
}

a.button, input[type="submit"] {
    background-color: #62CB31;
    border-radius: 3px;
    color: #FFFFFF;
    padding: 18px 27px;
    border: none;
    display: inline-block;
    margin-top: 18px;
    font-weight: 700;
}

a.button:hover, input[type="submit"]:hover {
    background-color: #4EB722;
    color: #FFFFFF;
    cursor: pointer;
    text-decoration: none;
}

form div {
    margin-bottom: 18px;
}

form div:last-child {
    border-top: 1px dashed #E4E5E7;
}

form input[type="radio"] {
    position: relative;
    top: 2px;
    margin-left: 18px;
}

form input[type="text"], form input[type="password"], form input[type="email"] {
    padding: 0.75em 18px;
    width: 100%;
}

form input[type=text], form input[type="password"], form input[type="email"], textarea {
    color: #6A6C6F;
    background: #FFFFFF;
    border: 1px solid #E4E5E7;
    border-radius: 3px;
}

form label {
    display: inline-block;
    margin-bottom: 9px;
}

.error {
    color: #C0392B;
    font-weight: bold;
    display: block;
}

.error + textarea, .error + input {
    border-color: #C0392B !important;
    border-width: 2px !important;
}

textarea {
    padding: 18px;
    width: 100%;
    height: 266px;
}

button {
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
    width: 21%;
    height: 40px;
    margin-right: 20px;
    border: none;
    background: #084cdf;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
}

button:hover {
    background: #0a3277;
}

input[type=file] {
    width: 100%; /*350px;*/
    max-width: 70%;
    color: #444;
    padding: 5px;
    background: #ffffff;
    border-radius: 10px;
    border: 1px solid #555;
}

input[type=file]::file-selector-button {
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
    width: 30%;
    height: 40px;
    margin-right: 20px;
    border: none;
    background: #084cdf;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
}
  
input[type=file]::file-selector-button:hover {
    background: #0a3277;
}
/*
input[type=submit] {
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
    width: 30%;
    height: 40px;
    margin-right: 20px;
    border: none;
    background: #084cdf;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
}
*/
input[type=button]{
    font-size: 18px; 
    font-family: "Ubuntu Mono", monospace;
    width: 21%;
    height: 40px;
    margin-left: 5px;
    margin-right: 10px;
    border: none;
    background: #084cdf;
    padding: 10px 20px;
    border-radius: 10px;
    color: #fff;
    cursor: pointer;
    transition: background .2s ease-in-out;
}

input[type=button]:hover {
    background: #0a3277;
}
.snippet {
    background-color: #FFFFFF;
    border: 1px solid #E4E5E7;
    border-radius: 3px;
}

.snippet pre {
    padding: 18px;
    border-top: 1px solid #E4E5E7;
    border-bottom: 1px solid #E4E5E7;
}

.snippet .metadata {
    background-color: #F7F9FA;
    color: #6A6C6F;
    padding: 0.75em 18px;
    overflow: auto;
	/*font-size: 32px; 18px;*/
}

.snippet .metadata span {
    float: right;
	font-size: 32px; /*18px;*/
}

.snippet .metadata strong {
    color: #34495E;
	font-size: 32px; /*18px;* AZ - IP и Path для одног сниппета*/
}

.snippet .metadata time {
    display: inline-block;
	font-size: 32px; /*18px;* AZ - время для одного сниппета*/
}

.snippet .metadata time:first-child {
    float: left;
}

.snippet .metadata time:last-child {
    float: right;
}

div.flash {
    color: #FFFFFF;
    font-weight: bold;
    background-color: #34495E;
    padding: 18px;
    margin-bottom: 36px;
    text-align: center;
}

div.error {
    color: #FFFFFF;
    background-color: #C0392B;
    padding: 18px;
    margin-bottom: 36px;
    font-weight: bold;
    text-align: center;
}

table {
    background: white;
    border: 1px solid #E4E5E7;
    border-collapse: collapse;
    width: 100%;
}

td, th {
    text-align: left;
    padding: 9px 18px;
	font-size: 18px; /*18px;*/
}

th:last-child, td:last-child {
    text-align: right;
    color: #6A6C6F;
}

tr {
    border-bottom: 1px solid #E4E5E7;
}

tr:nth-child(2n) {
    background-color: #F7F9FA;
}

footer {
    border-top: 1px solid #E4E5E7;
    padding-top: 17px;
    padding-bottom: 15px;
    background: #F7F9FA;
    height: 60px;
    color: #6A6C6F;
    text-align: center;
}

.f2b {
    color: #3c2bc0 !important;
}

listbox {
    padding: 0%;
    margin: 0%;
    display: block;
    /*min-height: 100vh;
    max-height: 80%;
    min-width: 100vh;
    padding: 2px calc((100% - 800px) / 2) 0;*/
}

.item-section {
    max-height: 70vh;
    max-width: 90%;
    background-color: #3f3f3f;
    overflow-y: scroll;
}

.item {
    height: 10%;
    padding: 2%;
    margin: 2%;
    background-color: #ffff;
    color: black;
}

.download-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    max-width: 600px;
    margin: 20px auto;
}
.download-item {
    display: flex;
    flex-direction: column;
}
.download-btn {
    padding: 10px 15px;
    background: #4a6ea9;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1.1rem;
    text-align: left;
    transition: background 0.2s;
}
.download-btn:hover {
    background: #3a5a8f;
}
.progress-container {
    width: 100%;
    background: #f0f0f0;
    margin-top: 5px;
    border-radius: 4px;
    height: 20px;
    position: relative;
    overflow: hidden;
}
.progress-bar {
    height: 100%;
    background: #4CAF50;
    width: 0%;
    transition: width 0.1s linear;
}
.progress-text {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 0.8rem;
    color: #333;
    font-family: 'Ubuntu Mono', monospace;
}
