/*
Design by TEMPLATED
http://templated.co
Released for free under the Creative Commons Attribution License

Name       : Prolific
Description: A two-column, fixed-width design with a bright color scheme
Version    : 1.0
Released   : 20120719
*/

* {
    margin: 0;
    padding: 0;
}

a {
    text-decoration: underline;
    color: #5B874B;
}

a:hover {
    text-decoration: none;
}

body {
    color: #4D4D4D;
    font-size: 11.5pt;
    line-height: 2em;
}

#outer {
    padding: 80px 0 0 0;
    background: #EDE8DE;
    box-shadow: inset 0px 0px 130px 0px rgba(70, 48, 25, 0.7);
}

body, input {
    font-family: "Open Sans", sans-serif;
}

br.clearfix {
    clear: both;
}

h1, h2, h3, h4 {
    font-weight: normal;
}

h2 {
    font-size: 2.25em;
}

h2, h3, h4 {
    margin-bottom: 1em;
    color: #333;
    font-family: Abel, sans-serif;
}

h3 {
    font-size: 1.75em;
}

h4 {
    font-size: 1.5em;
}

strong {
    color: #333;
}

img.alignleft {
    float: left;
    margin: 5px 30px 30px 0;
    border-radius: 6px;
}

img.aligntop {
    margin: 5px 0 20px 0;
    border-radius: 6px;
}

p {
    margin-bottom: 1.75em;
}

ul {
    margin-bottom: 1.75em;
    list-style: none;
}

ul h4 {
    margin-bottom: 0.4em;
}

.box {
    margin: 0 0 35px 0;
    overflow: hidden;
}

ul.list li {
    border-top: solid 1px #CFCFCF;
    padding: 10px 0 10px 0;
}

ul.list li.first {
    padding-top: 0;
    border-top: 0;
}

#content {
    padding: 0 40px 0 0;
}

#footer {
    text-align: center;
    padding: 50px 0 130px 0;
    color: #938D82;
    text-shadow: 1px 1px 0px #ffffff;
}

#footer a {
    color: #938D82;
}

#header {
    position: relative;
    padding: 40px;
    background: #73B05E;
    color: #FFF;
    box-shadow: inset 0px -10px 50px 0px #53903E;
    overflow: hidden;
}

#logo {
    text-align: center;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

#logo a {
    color: #FFF;
    text-decoration: none;
}

#logo h1 {
    font-family: Abel, sans-serif;
    font-size: 3.5em;
    margin-bottom: 0;
}

#search {
    padding-top: 30px;
    height: 70px;
    line-height: 34px;
    text-align: center;
}

#search input.form-text {
    border: 0;
    background: #5B874B url(/img/search.png) top right no-repeat;
    box-shadow: inset 0px -3px 20px 0px #466D37;
    border-bottom: solid 1px #93D07E;
    text-shadow: 0px 0px 1px rgba(0, 0, 0, 0.5);
    color: #fff;
    border-radius: 6px;
}

#menu {
    padding: 0 40px 0 40px;
    font-family: Abel, sans-serif;
    line-height: 60px;
    background: #5B874B;
    height: 60px;
    box-shadow: inset 0px -3px 20px 0px #466D37;
    border-bottom: solid 1px #93D07E;
    text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.5);
    border-top-left-radius: 6px;
    border-top-right-radius: 6px;
    text-align: center;
}

#menu a {
    font-size: 1.25em;
    color: #FFF;
    text-decoration: none;
}

#menu ul li {
    display: inline-block;
    padding: 0 20px 0 20px;
}

/* адаптация Bootstrap 5: выпадающее меню на узких экранах */
@media (min-width: 768px) {
    #mainMenu.collapse {
        display: block;
    }
}

@media (max-width: 767px) {
    #menu {
        height: auto;
        padding: 10px 20px;
        text-align: left;
    }

    #mainMenu {
        text-align: center;
    }

    #menu ul li {
        display: block;
        line-height: 2.5em;
    }
}

.btn-toe-menu {
    background: #5B874B;
    border: 1px solid #466D37;
    color: #fff;
    font-family: Abel, sans-serif;
}

.btn-toe-menu:hover {
    background: #466D37;
    color: #fff;
}

#page {
    padding: 70px 40px 0 40px;
    position: relative;
    background: #FFF;
    box-shadow: inset 0px 0px 3px 0px #ffffff, inset 0px 0px 250px 0px #d8d8d8, 0px 10px 20px 0px #D6CCBA;
    text-shadow: 1px 1px 0px #ffffff;
    border-bottom-left-radius: 6px;
    border-bottom-right-radius: 6px;
}

#sidebar {
    padding: 0;
}

#wrapper {
    margin: 0 auto;
}

h1 {
    margin-bottom: 20px;
}

.nextURL {
    text-align: right;
}

/* --- добавлено при переносе на Python --- */

/* в Bootstrap 5 caption таблицы по умолчанию снизу — возвращаем наверх */
.calc-table caption {
    caption-side: top;
}

.calc-table {
    border-collapse: collapse;
    margin: 0.8rem 0;
}

.calc-table th,
.calc-table td {
    border: 1px solid #999;
    padding: 4px 10px;
}

form.calc-form input[type="text"],
form.calc-form textarea {
    font-family: monospace;
}

form.calc-form select {
    font-size: 1.2rem;
}
