/*
Theme Name: Racionisoft
Text Domain: racionisoft
*/

@font-face {
    font-family: OpenSansRegular;
    src: url(./assets/fonts/OpenSans/OpenSans-Regular.ttf);
    /*font-display: swap;*/
}

* {
    --black: #3e3e3e;
    --primary-color: #495d88;
    --primary-color-0: #5971a6;
    --primary-color-1: #aab7d4;

    --secondary-color: #e3080b; 
    
    --header-height: 48px;
    --footer-height: 48px;
}

img {
    width: 100%;
    height: auto;
}

a {
    color: #00a1ff;
}

body {
    font-family: OpenSansRegular;
    color: var(--black);

    height: auto;
    position: relative;
    line-height: 1.8;       
}

header {
    background: var(--primary-color);
    height: var(--header-height);
    display: flex;
    align-items: center;
    position: fixed;
    top: 0;                
    left: 0;
    right: 0;
    z-index: 100;
    box-shadow: 0px 5px 5px rgb(0 0 0 / 25%);                      
}

header a {
    display: block;
}

.brand-image {
    width: 172px;                               
    flex: none;
    padding: 0 16px;
}

main {
    padding-top: var(--header-height);
    padding-bottom: var(--footer-height);
}

.page-content {
    padding: 64px 0 64px 0;
} 

h1, h2, h3, h4, h5, h6 {    
    margin-bottom: 32px;    
    border-left: 10px solid var(--primary-color);
    padding: 8px;
    font-weight: bold;
    color: var(--primary-color);           
    /*background: #f9f9f9;
    border-radius: 5px;*/      
}

.center-limit {
    max-width: 1200px;
    width: calc(100% - 32px);
    margin: auto;  
}

[class^="ratio-container-"] {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;    
    background-color: lightgray;
}

[class^="ratio-container-"] > * {
    display: block;
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    visibility: visible;
    transition: 0.2s transform;
}

.ratio-container-16x9 {    
    padding-bottom: 56.25%;    
}

a [class^="ratio-container-"] img:hover {
    transform: scale(1.05);    
}

footer {
    width: 100%;
    background: var(--black);
    min-height: var(--footer-height);
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;

    display: flex;
    justify-content: center;
    align-items: center;

    text-align: center;
    line-height: 32px;
    padding: 8px 0;  
}

footer * {
    color: lightgrey;
}

#wpadminbar {
    position: fixed !important;
}

#wpadminbar * {
    color: white;    
}

p {
    margin-bottom: 16px;
}

.breadcrumbs {
    margin-bottom: 32px;
}

.wp-content ul li {
    margin-bottom: 8px;
}

.wp-content ul li:last-child {
    margin-bottom: 0;
}

/*wordpres menu*/
[class^="menu-"] ul {
    list-style: none;    
    display: flex;
    align-items: center;
    padding: 0;
    margin: 0;    
}

[class^="menu-"] a {
    color: white;
    text-decoration: none;
    white-space: nowrap;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 16px;    
}

[class^="menu-"] ul li.current-menu-item a{
    background-color: var(--primary-color-0);   
    transition: 0.1s background;
}

[class^="menu-"] ul li a:hover {    
    border-top: 5px solid transparent;
    border-bottom: 5px solid white;
}

[class^="menu-"] .menu-item i{
    margin-right: 0.4rem;
}

.menu-context {
    display: none;    
    position: absolute;
    top: 100%;
    right: 0;
    z-index: 999;
    border: 1px solid lightgrey;
    background: white;
    width: 100%;
    box-shadow: 0px 5px 5px rgb(0 0 0 / 25%);
}

.menu-icon {
    color: white;
    font-size: 32px;
    padding: 16px;
    cursor: pointer;
}

.menu-icon-selected {
    background: var(--primary-color-0);    
}

.menu-context:hover {
    display: block;
}

.menu-top-menu-container, .menu-top-menu-container ul, .menu-top-menu-container, .menu-top-menu-container ul li {
    height: 100%;
}

.vertical-menu ul {
    display: flex;
    flex-direction: column;
}

.vertical-menu ul li{
    width: 100%;
    display: flex;
    justify-content: center;
    position: relative;  
}

.vertical-menu ul li a {
    border: none;
    color: var(--primary-color);
    width: 100%;
    display: flex;    
    align-items: center;
    padding: 16px 32px;
}

.vertical-menu ul li.current-menu-item a {
    background-color: #f4f7ff;
}

.vertical-menu ul li a:hover {
    border: none;
}

.vertical-menu ul li a:hover:before {
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    content: "\f0da";
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    color: var(--primary-color);
    width: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
}