@font-face {
    font-family: Ambassador;
    src: url(../fonts/ambassador-font.woff2);
    font-style: normal;
    font-display: optional;
}

@font-face {
    font-family: Gotham;
    src: url(../fonts/gotham.woff2);
    font-style: normal;
    font-display: optional;
}

body {
    background-color: #000000;
    color: #ffffff;
    margin: 0;
    padding: 0;
}

.clearfix::after {
    content: "";
    display: table;
    clear: both;
}
h1, h2, h3, h4, h5, a, th {
    font-family: Ambassador;
    margin: 0;
}

p, td {
    font-family: Gotham;
    margin: 0;
    font-size: 90%;
    line-height: 140%;
}

h1 {
    font-size: 200%;
    transform: scaleX(1.5);
    font-weight: normal;
    color: #ffffff;
    margin: 0;

}

h2 {
    font-size: 150%;
    font-weight: normal;
     margin: 0;
}

h3, th {
    font-size: 100%;
    font-weight: normal;
    line-height: 130%;
    margin: 0;
}

a {
    text-decoration: none;
    color: #ffffff;
}

table {
    border: 1px solid white;
    border-collapse: collapse;
}

th {
    border: 2px solid white;
    border-collapse: collapse;
}
td {
    border: 1px solid white;
    border-collapse: collapse;
}

.header-container {
    position: relative;
    margin: 0;
    padding: 0 0 1% 0;
    background-image: url(../img/bg.jpg);
    width: 100%;
    background-size: cover;
    background-position: 50%;
}

.header-shadow {
    position: absolute;
    z-index: 1;
    left: 5%;
    width: 200px;
    height: 100%;
    background-color: rgba(255,255,255,0.20);
}

.header-top {
    z-index: 2;
    position: relative;
    display: flex;
    align-items: baseline;
    margin: 0 0 10% 0;
}

.header-top h1{
    margin-right: 30px;
    margin-left: 30%;
}

.header-menu {
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    height: 26px;
    background-color: rgba(0,0,0,0.7);
    padding: 5px 0;
    align-items: center;
}
    
.left-content {
    min-width: 200px;
    max-width: 200px;
    margin-left: 5%;
}

.right-content {
    min-width: 200px;
    max-width: 200px;
    margin-right: 5%;
}

.submenu-container {
    color: #dcb150;
    background-color: rgba(255,255,255,0.15);
    height: 100%;
    padding: 10px 15px;
}

.submenu {
    display: none;
}

.margin-top {
    height: 20px;
}

.submenu {
    text-align: right;
    margin-bottom: 7px;
}

.submenu a {
    font-size: 125%;
    color: #dcb150;
    text-decoration: none;
    line-height: 140%;
    display: inline-block;
}
.article-submenu {
    border-bottom: 1px solid rgba(255,255,255,0.20);
}

.header-menu a, .footer-menu a {
    font-size: 150%;
    border-top: 3px solid transparent;
    color: #dcb150;
    text-transform: uppercase;
    vertical-align: middle;
}

.header-menu a:visited, .footer-menu a:visited, .submenu a:visited{
    color: #dcb150;
}

.header-menu a:hover, .footer-menu a:hover, .submenu a:hover {
    color: #ffffff;
    box-shadow: 0px 2px 0px 0px rgba(255,255,255,0.5),  0px -2px 0px 0px rgba(255,255,255,0.5);
    transition: .3s;
}

.header-menu a:active, .footer-menu a:active, .submenu a:active, a.active, a.submenu-active, a:visited.active, a:visited.submenu-active {
    color: #ffffff;
}

.content-container {
    background-color: black;
    display: flex;
    flex-direction: row;
    color: #ffffff;
    margin: 0 auto;
    padding: 0;
}

.left-content {
    width: 200px;
    margin-left: 5%;

}

.center-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2% 3% 3% 3%;
}

.right-content {
    width: 200px;
    margin-right: 5%;
}

.article-header{
    text-align: center;
    margin-bottom: 2%;
}

.article-short-content{
    margin-bottom: 5%;
}

.article-short-content p {
    font-family: Gotham;
    font-weight: bolder;
}
p.article-short-content-left{
    text-indent: 15%;
}

.article-short-content-right{
    float: right;
    text-align: right;
    color: #dcb150;
    margin-bottom: 3%;
    margin-left: 3%;
}

.article-full-content {
    display: flex;
    flex-direction: row;
    margin-bottom: 5%;
}

.article-scheme-pic{
    height: 300px;
    position: relative;
    width: 100%;
    margin-right: 5%;
    background-size: cover;
}
.article-full-content p {
    text-indent: 15%;
    width: 150%;

}

.article-full-content.kata-article p {
    height: 300px;
    overflow: hidden;
}

.article-full-content p img {
    float: left;
    margin-right: 3%;
    margin-top: 3%;
}

.button-to-full {
    position: absolute;
    bottom: 2%;
    right: 2%;
    width: 45px;
    height: 45px;
    background-color: rgba(255,255,255,0.7);
    cursor: pointer;
}

.article-video {
    border: 1px solid #dcb150;
    position: relative;
    padding-bottom: 56.25%;
    padding-top: 30px;
    margin-bottom: 3%;
}

.article-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.right-content .article {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: rgba(255,255,255,0.15);
    padding: 5px 10px;
    margin-top: 50px;
    text-align: right;
    height: 200px;
 }

.right-content .article h3, .article h5 {
    margin-bottom: 4%;
}

.right-content .article p {
    font-size: 12px;
    text-align: justify;
   // height: 50%;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 3%;
}

.footer-container {
    border-top: 20px solid transparent;
    position: relative;
    margin: 0;
    padding: 0 0 0 0;
    width: 100%;
    background-size: cover;    
    height: 200px;
}

.footer-shadow {
    position: absolute;
    z-index: 1;
    left: 5%;
    width: 200px;
    height: 100%;
    background-color: rgba(255,255,255,0.15);
}

.footer-links {
    z-index: 2;
    position: relative;
    float: right;
    align-items: center;
    margin-top: 50px;
    margin-right: 5%;
    
}
.footer-links a {
    margin-left: 150px;
}

.footer-menu {

    border-top: 2px solid rgba(255,255,255,0.20);
    border-bottom: 2px solid rgba(255,255,255,0.20);
    z-index: 2;
    position: relative;
    display: flex;
    justify-content: space-around;
    width: 100%;
    margin: 10px 0;
    padding: 5px 0;
}

.enter-btn {
    width:  50px;
    height: 50px;
    margin: 3%;
    padding:0;
    border: 0;
    float: right;
}

.promo-Modal {
    color: #54575a;
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 3; /* Sit on top */
    //padding-top: 5%; /* Location of the box */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
}


.modal-content {
    position: relative;
    background-color: #000000;
    color: #ffffff;
    margin: auto;
    padding: 0;
    width: 90%;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    -webkit-animation-name: animatetop;
    -webkit-animation-duration: 0.4s;
    animation-name: animatetop;
    animation-duration: 0.4s
}


@-webkit-keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}

@keyframes animatetop {
    from {top:-300px; opacity:0}
    to {top:0; opacity:1}
}


.close {
    color: white;
    float: right;
    font-size: 24px;
    font-weight: bold;
}

.close:hover,
.close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.modal-header {
    background-color: rgba(255,255,255,0.20);
    padding: 2px 16px;
    color: white;
    text-align: center;
}

.modal-body {
    padding: 2px 16px;
    text-align: left;
}

.modal-body img {
    float: left;
    margin: 10px;
}


.modal-footer {
    padding: 2px 16px;
    background-color: rgba(255,255,255,0.20);
    color: white;
}


/* input.php Редактор статей */

.input-center-content {
    display: flex;
    flex-direction: column;
    width: 100%;
    padding: 2% 3% 3% 3%;
}
.input-center-content h2 {
    text-align: left;
    text-indent: 25%;
}

.input-form {
    display: flex;
    flex-direction: column;
    /*margin-left: 5%;*/
}

.input-form-group {

    display: flex;
    flex-direction: column;
    font-family: "Gotham";
    font-size: 14px;
    text-transform: uppercase;
}

.input-form-container {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-items: baseline;
}

.input-form-container h3 {
    width: 25%;
}

.scheme-pic-group {
    display: flex;
    flex-direction: row;
}
.scheme-pic-container {
    width: 28.5%;
    display: flex;
    flex-direction: column;
    align-items: baseline;
    justify-content: left;
    margin-right: 3%;
}

#scheme_pic, #new_scheme_pic, .scheme-pic-container label {
    width: 100%;
    margin-right: 0;
}

p.input-note, p.input-result-note {
    vertical-align: middle;
    font-style: italic;
    text-transform: none;
    text-indent: 5%;
}

p.input-note {
   width: 30%;
   box-sizing: border-box;
}

.input-form-group label {
    font-family: "Ambassador";
    text-indent: 15px;
    font-size: 16px;
}

.input-form-group-phone-mail {
    width: 50%;
    display: flex;
}

.input-form-group-left-part {
    margin-right: 10%;
}

.input-form-group input, .input-form-group select {
    width: 60%;
    height: 30px;
    border: 2px solid #54575a;
    margin-top: 5px;
    margin-bottom: 10px;
    margin-right: 5%;
    font-family: "Gotham";
    font-size: 16px;
    padding: 0 5px;
}

.input-form-group select {
    box-sizing: content-box;

}

.input-form-group input, .input-form-group select, .input-form-group textarea, .input-form-group option {
    background-color: black;
    color: white;
}

.input-form-group input, .input-form-group select, .input-form-group textarea, .input-form-group option {
    background-color: black;
    color: white;
}

.article-pic-list li{
    text-transform: none;
    letter-spacing: 0.1em;
}

output#list {
    margin-bottom: 2%;
}

#short_text, #text_preview, #u_video {
    width: 60%;
    height: 100px;
    border: 1px solid #54575a;
    margin-top: 5px;
    margin-bottom: 30px;
    margin-right: 5%;
    font-family: "Gotham";
    font-size: 16px;
    padding: 0 5px;
}

#full_text {
    width: 60%;
    height: 400px;
    border: 1px solid #54575a;
    margin-top: 5px;
    margin-bottom: 30px;
    margin-right: 5%;
    font-family: "Gotham";
    font-size: 16px;
    padding: 0 5px;
}

#send-btn {
    width: 150px;
    font-family: "Ambassador";
    text-decoration: none;
    text-transform: uppercase;
    font-size: 22px;
    background-color: #54575a;
    color: #ffffff;
    text-align: center;
    padding: 9px 5px 7px;
    border: 2px solid transparent;
}

#send-btn:hover {
    background-color: #54575a;
    color:#dcb150;
    border: 2px solid #dcb150;
    cursor: pointer;
}

#send-btn:active {
    background-color: #54575a;
    color:#dcb150;
    border: 2px solid #dcb150;
}

#send-btn:focus {
    background-color: #54575a;
    color:#dcb150;
    border: 2px solid #dc8c00;
}

#send-btn:disabled {
    color: darkgrey;
}

.auth-key  {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background-color: #000000;
    background-position: center;
    width: 36px;
    height: 36px;
    border: 3px solid #000000;
    border-radius: 50%;
}

.auth-key:hover {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: #000000 url(../img/key-white.png) center no-repeat;
    background-size: 20px 20px;
    width: 36px;
    height: 36px;
    border: 3px solid white;
    border-radius: 50%;
    cursor: pointer;
    transition: .5s;
    cursor: pointer;
}

.auth-form {
    background-color: black;
    color: white;
}

.display-none {
    display: none;
}

.display-block {
    display: block;
}