/*
    This is the main CSS file of Catlair
*/

/* Include config parameters */


/* Include layout elements css */
/* 
    layout.css 
*/

*
{
    margin: 0;
    padding: 0;
    border: 0;
    box-sizing: border-box;
}



html
{
    height: 100%;
}



body {
    display: flex;
    flex-direction: column;
    min-width: 100%;
    height: 100%;
    font-family: sans-serif;
    line-height: 1.6;
}




/*
    Site page description
*/
.top,
.page,
.bottom
{
    padding: 1em;
}



.top
{
    min-height: 7em;
}



.page
{
    flex: 1 1 auto;
}



.bottom
{
    min-height: 3em;
    position: sticky;
    bottom: 0;
    z-index: 100;
}



.page .section
{
    margin-bottom: 3em;
}



/* page content */
.page p
{
    margin-bottom: 1em;
}



.page ul,
.page ol
{
    margin-left: 2em;
    margin-bottom: 1em;
}



.page blockquote
{
    margin: 1em 2em;
    padding-left: 1em;
    border-left: 4px solid;
    font-style: italic;
}



.page pre
{
    padding: 1em;
    overflow-x: auto;
    font-family: monospace;
    margin-bottom: 1em;
}



.page code
{
    padding: 0.2em 0.4em;
    border-radius: 4px;
}





/******************************************************************************
    Forms
*/
form
{
    border: 1px solid #00000033;
    padding: 0.6em;
    display: flex;
}



/* Form label */
form label
{
    display: block;
    margin-bottom: 0.3em;
    font-weight: bold;
}



/* Form input elements */
input,
select,
button,
textarea
{
    font-size: 1.1em;
    padding: 0.6em;
    border: 1px solid black;
    border-radius: 4px;
    box-sizing: border-box;
    display: inline-block;
}



/******************************************************************************
    Menu 
*/
.menu
{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding: 0.5em 1em;
    position: sticky;
    top: 0;
    z-index: 100;
}



.scroll-margin-top
{
    scroll-margin-top: var(--focus-offset, 4em);
}



.menu .item
{
    text-decoration: none;
    color: inherit;
    padding: 0.5em 1.5em;
    border-radius: 4px;
}



.menu .space
{
    flex: 1 1 auto;
}



/*
    Horizontla elements    
*/
.horizontal
{
    display: flex;
    align-items: center;
    flex-direction: row;
    flex: 1 1 auto;
    gap:1em;
    flex-wrap: wrap;
}

.label
{
    display: flex;
    align-items: center;
    flex:0 0 auto;
}

.label:after
{
    content: ":";
}

.value
{
    flex:1 1 auto;
}

.string
{
    text-align: left;
}

.float
{
    text-align: right;
}

.cell
{
    display: flex;
    align-self: stretch;
}



.record {
    flex-wrap: nowrap;
}

.record > *:not(:first-child) {
    border-left: 1px solid #000; /* вертикальная черта */
    padding-left: 0.5em;         /* отступ слева от черты */
}

.record > *:not(:last-child) {
    padding-right: 0.5em;        /* отступ справа от черты */
}


/* Include color scheme */
body 
{
    background-color: #f4f7fa;
    color: #1e1e1e;
}




.top
{
    background-color: #3b4b5c;
    background-image: url(/content/read/images/pusa.svg);
    background-position: 1em 1em;
    background-repeat: no-repeat;
    background-size: 5em 5em;
    color: #fff;
    padding-left: 7em;
}



.page
{
    background-color: #ffffff;
}



.bottom
{
    background-color: #dfe6ec;
    color: #333;
}



.page blockquote
{
    border-left: 4px solid #ccc;
    color: #555;
}



.page pre
{
    background-color: #f0f0f0;
}



.page code
{
    background-color: #eef;
}



.page a
{
    color: #3366cc;
}



/* Menu */
.menu
{
    background-color: #3b4b5c;
    color: #fff;
}



.menu .item
{
    color: #fff;
    background-color: transparent;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}



.menu .item:hover
{
    background-color: #1b2b3c;
    color: #fff;
}



input
{
    padding: 0.5em 1.0em;
}



button
{
    background-color: #3b4b5c;
    padding: 0.5em 1.0em;
    color: #fff;
    transition: background-color 0.1s;
}



button:active
{
    background-color: #7b8b9c;
}



.selectable {
    padding: 0.5em 1.0em;
    color: #000;
    transition: background-color 0.1s;
}



.selectable:hover {
    background-color: #d5dae0;
}



.selectable:active {
    background-color: #c2c8cf;
}