/*
Theme Name: Imoptimal
Theme URI: https://imoptimal.com/portfolio/imoptimal-wordpress-theme/
Author: Ivan Maljukanović @imoptimal
Author URI: imoptimal.com
Description: Simplistic theme, with an option (available inside of admin menu, at Appearance/Customize) to enable users to build their whole website either through: a) Widgets - best if used with Pagebuilder by Siteorigin plugin, and its widgets bundle; b) Elementor - most popular website builder plugin. Intended for technically advanced users that build their own websites or websites for others, as a tool to make this process more efficient. IMPORTANT: Both widget and elementor option should be used to build a website through pages (not posts).
Version: 1.5.6
Requires at least: 4.9.8
Requires PHP: 5.6
Tested up to: 5.5.1
License: GNU General Public License v3 or later
License URI: https://www.gnu.org/licenses/gpl-3.0.en.html
Text Domain: imoptimal
Domain Path: /lang
Tags: theme-options, translation-ready, one-column, full-width-template, two-columns, right-sidebar, custom-menu, custom-logo, featured-images, footer-widgets
*/

/* Style order:
1. Basic HTML
2. Theme Elements
    2a. Elementor
3. Required
4. Block custom colors
5. Accessibility
6. Scrollbars
7. Customizer Styling
8. 404 Error Page
9. Responsive Design
*/

/* 1. Basic HTML */
* {
    position: relative;
    -webkit-box-sizing:border-box;
            box-sizing:border-box;
    -webkit-transition: all 0.25s;
    -o-transition: all 0.25s;
    transition: all 0.25s;
}

html {
    text-align: center;
    padding: 0;
    margin: 0;
}

body {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    letter-spacing: .05em;
    background-color: #050303;
    padding: 0;
    margin: 0;
    overflow-x: hidden;
}

p {
    line-height: 1.65em;
}

a {
    word-wrap: break-word;
    text-decoration: none;
    color: #f4c951;
}

a:hover,
a:focus {
    text-decoration: underline;
    color: #efedf5; 
}

img {
    max-width: 100%;
    height: auto;
}

@media \0screen {
    img {
        width: auto; /* for IE 8 */
    }
}

input,
textarea,
select {
    max-width: 100%;
    border: solid 5px transparent;
}

input:hover,
input:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus {
    border: solid 5px #f4c951;
}

ul {
    list-style: none;
    padding-left: 10px;
    text-align: left;
}

/* 2. Theme Elements */
.imothm-container {
    color: #efedf5;
    background-color: #27061c;
    min-height: 100vh;
    max-width: 1920px;
    min-width: 320px;
    margin: 0 auto;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
    overflow-x: hidden;
}

.imothm-container .site-header {
    -ms-flex-preferred-size: 15%;
        flex-basis: 15%;
    background-color: #050303;
    background-image: -o-linear-gradient(right, #050303, #27061c, #84285b);
    background-image: -webkit-gradient(linear, right top, left top, from(#050303), color-stop(#27061c), to(#84285b));
    background-image: linear-gradient(to left, #050303, #27061c, #84285b);
    padding: 20px;
    margin-bottom: 10px;
    -webkit-box-shadow: 0 10px 10px #efedf5;
            box-shadow: 0 10px 10px #efedf5;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .site-header .logged-in {
    height: 50px;
    width: 100%;
}

.imothm-container .site-header .dropdown-menu {
    padding: 0;
    -ms-flex-preferred-size: 25%;
        flex-basis: 25%;
}

.imothm-container .site-header .dropdown-menu .handle {
    position: absolute;
    top: 0;
    left: 0;
}

.imothm-container .site-header .toggle {
    display: block;
    font-size: 24px;
    font-style: bold;
    color: #f4c951;
    cursor: pointer;
    text-align: center;
}

.imothm-container .site-header .toggle .icon {
    width: 55px;
    height: 55px;
    margin: 0 auto;
    -webkit-transform: scale(0.66);
        -ms-transform: scale(0.66);
            transform: scale(0.66);
}

.imothm-container .site-header .toggle .icon.menu {
    background-image: url("./img/icons.png");
    background-repeat: no-repeat;
    background-position: left top;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

.imothm-container .site-header .icon.menu:hover,
.imothm-container .site-header .handle:focus + .toggle > .icon.menu,
.imothm-container .site-header .toggle.clicked > .icon.menu {
    background-position: left -65px top;
}

.imothm-container .site-header li.current-menu-item > a:visited {
    text-decoration: underline;
    color: #efedf5; 
}

.imothm-container .site-header .dropdown-menu .handle:focus ~ .header-menu,
.imothm-container .site-header ul:hover ~ .header-menu,
.imothm-container .site-header a:active ~ .header-menu,
.imothm-container .site-header .dropdown-menu .header-menu.slided {
    left: 5%;
    visibility: visible;
}

.imothm-container .site-header .dropdown-menu .header-menu {
    position: absolute;
    left: -9999px;
    top: 75px;
    visibility: hidden;
    max-height: 250px;
    overflow-y: scroll;
    background-color: #050303;
    border: solid 2px #f4c951;
    padding: 20px;
    -webkit-box-shadow: 10px 10px 10px #efedf5;
            box-shadow: 10px 10px 10px #efedf5;
    z-index: 10;
}

.imothm-container .site-header li {
    margin: 10px 0;
}

.imothm-container .site-header li.has-children > a:first-child::after {
    content: '▼';
}

.imothm-container .site-header .close-menu {
    position: absolute;
    top: 5px;
    right: 5px;
    font-size: 24px;
    cursor: pointer;
}

.imothm-container .site-header .close-menu:hover {
    text-decoration: none;
}

.imothm-container .site-header .close-menu::after {
    content: '✖';
}

.imothm-container .site-header .auto-close {
    position: absolute;
    bottom: 0;
    right: 0;
}

.imothm-container .site-header .bloginfo {
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .site-header .bloginfo .custom-logo {
    max-width: 120px;
}

.imothm-container .site-header .bloginfo .custom-logo-link:hover,
.imothm-container .site-header .bloginfo .custom-logo-link:focus {
    -webkit-transform: scale(1.1);
        -ms-transform: scale(1.1);
            transform: scale(1.1);
}

.imothm-container .site-header .bloginfo .custom-logo-link:active {
    -webkit-transform: scale(1);
        -ms-transform: scale(1);
            transform: scale(1);
}

.imothm-container .site-header .bloginfo .spans span {
    display: block;
}

.imothm-container .site-header .bloginfo .description {
    font-size: 14px;
}

.imothm-container .site-header .search-toggle {
    -ms-flex-preferred-size: 25%;
        flex-basis: 25%;
}

.imothm-container .site-header .search-toggle .content {
    padding: 10px;
}

.imothm-container .site-header .search-toggle .handle {
    position: absolute;
    top: 0;
    right: 0;
}

.imothm-container .site-header .toggle .icon.search {
    background-image: url("./img/icons.png");
    background-repeat: no-repeat;
    background-position: left -130px top 0;
    -webkit-transition: none;
    -o-transition: none;
    transition: none;
}

.imothm-container .site-header .icon.search:hover,
.imothm-container .site-header .handle:focus + .toggle > .icon.search,
.imothm-container .site-header .toggle.clicked > .icon.search {
    background-position: left -195px top;
}

.imothm-container .site-header .search-toggle .handle:focus ~ #searchform,
.imothm-container .site-header .search-toggle .content:hover ~ #searchform,
.imothm-container .site-header .search-toggle input:focus ~ #searchform,
.imothm-container .site-header .search-toggle #searchform.slided {
    right: 5%;
    visibility: visible;
}

.imothm-container .site-header .search-toggle #searchform {
    position: absolute;
    right: -9999px;
    top: 75px;
    visibility: hidden;
    max-height: 120px;
    background-color: #050303;
    border: solid 2px #f4c951;
    padding: 20px;
    -webkit-box-shadow: 10px 10px 10px #efedf5;
            box-shadow: 10px 10px 10px #efedf5;
    z-index: 10;
}

.imothm-container .site-header #search-submit,
.imothm-container .imothm-content-404 #search-submit {
    border: solid 2px #f4c951;
    color: #f4c951;
    background-color: #27061C;
    padding: 5px;
    margin: 10px;
}

.imothm-container .site-header #search-submit:hover,
.imothm-container .site-header #search-submit:focus,
.imothm-container .imothm-content-404 #search-submit:hover,
.imothm-container .imothm-content-404 #search-submit:focus {
    border: solid 2px #efedf5;
    color: #efedf5;
    background-color: #84285B;
    cursor: pointer;
}

.imothm-container .imothm-content {
    padding: 10px 0;
}

.imothm-container .homepage {
    padding: 0 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .columns {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
}

.imothm-container .main-column {
    max-width: 960px;
    padding: 0 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
}

.imothm-container .side-column {
    -ms-flex-preferred-size: 20%;
        flex-basis: 20%;
    max-width: 480px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: start;
        -ms-flex-pack: start;
            justify-content: flex-start;
}

.imothm-container .post {
    border-bottom: solid 2px #f4c951;
    margin: 0 20px;
}

.imothm-container .post:last-of-type {
    border-bottom: none;
}

.imothm-container .post .post-info {
    padding-bottom: 20px;
}

.imothm-container .post-info a.current {
    -webkit-box-shadow: none;
            box-shadow: none;
    text-decoration: underline;
    color: #efedf5;
}

.imothm-container .post .excerpt {
    text-align: left;
    padding-bottom: 10px;
}

.imothm-container .post.full-post {
    padding: 10px;
}

.imothm-container .entry-content p {
    text-align: left;
}

.imothm-container .nav-links {
    margin: 10px 0;
}

.imothm-container .comments-area {
    border-top: solid 2px #f4c951;
    max-width: 100%;
    padding: 10px;
    margin: 0;
}

.imothm-container .comments-area p {
    margin: 5px 0;
}

.imothm-container .comments-area form {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .comments-area form label {
    display: block;
    width: 100%;
}

.imothm-container .comments-area form .logged-in-as,
.imothm-container .comments-area form .comment-form-comment {
    margin: 0;
    max-width: 95%;
}

.imothm-container .comments-area form .form-submit {
    margin: 5px 0;
}

.imothm-container .comments-area form #submit {
    margin: 5px 0;
    border: solid 2px #f4c951;
    color: #f4c951;
    background-color: #27061C;
    padding: 5px;
}

.imothm-container .comments-area form #submit:hover,
.imothm-container .comments-area form #submit:focus {
    border: solid 2px #efedf5;
    color: #efedf5;
    background-color: #84285B;
    cursor: pointer;
}

.imothm-container .comment-list {
    padding: 0;
}

.imothm-container .comment-author.vcard img {
    vertical-align: middle;
    padding: 10px;
}

.imothm-container .site-footer {
    -ms-flex-preferred-size: 20%;
        flex-basis: 20%;
    background-color: #050303;
    background-image: -o-linear-gradient(left, #050303, #27061c, #84285b);
    background-image: -webkit-gradient(linear, left top, right top, from(#050303), color-stop(#27061c), to(#84285b));
    background-image: linear-gradient(to right, #050303, #27061c, #84285b);
    padding: 20px 10px 30px 10px;
    margin-top: 10px;
    -webkit-box-shadow: 0 -10px 10px #efedf5;
            box-shadow: 0 -10px 10px #efedf5;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: stretch;
        -ms-flex-align: stretch;
            align-items: stretch;
}

.imothm-container .site-footer .footer-content {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .footer-menu {
    padding: 0 0 0 20px;
}

.imothm-container .site-footer .menu {
    padding: 0;
    margin: 20px 0;
    list-style: none;
    text-align: left;
    background-color: #050303;
    border: solid 2px #f4c951;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -ms-flex-pack: distribute;
        justify-content: space-around;
    -webkit-box-align: start;
        -ms-flex-align: start;
            align-items: flex-start;
    max-height: 250px;
    overflow-x: scroll;
}

.imothm-container .site-footer ul {
    list-style: none;
}

.imothm-container .site-footer .menu li {
    text-align: left;
    margin: 1px 5px;
}

.imothm-container .site-footer .menu li.has-children > a:first-child::after {
    content: '▼';
}

.imothm-container .site-footer .menu li a {
    max-width: 10px !important;
}

.imothm-container .footer-widget-area {
    -ms-flex-preferred-size: 50%;
        flex-basis: 50%;
    padding: 0 20px 0 0;
    text-align: center;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -ms-flex-wrap: wrap;
        flex-wrap: wrap;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .branding {
    position: absolute;
    bottom: 0;
    width: 100%;
    color: #efedf5;
    font-size: 12px;
}

.imothm-container .widget {
    margin: 10px;
}

/* 2a. Elementor */

.imothm-elementor {
    padding: 0;
    margin: 0 auto;
}

.imothm-elementor .imothm-content,
.imothm-elementor .columns,
.imothm-elementor .post {
    padding: 0;
    margin: 0;
}

.imothm-elementor .site-header,
.imothm-elementor .site-footer,
.imothm-elementor .side-column,
.imothm-elementor .page-title {
    display: none;
}

.imothm-elementor .main-column {
    padding: 0;
    -ms-flex-preferred-size: 100%;
        flex-basis: 100%;
    max-width: 100%;
}

.imothm-elementor .elementor-container {
    max-width: 1920px !important;
}

/* 3. Required */
.wp-caption {
    font-size: 14.9328px;
    font-size: 0.9333rem;
    max-width: 100%;
}

.wp-caption img[class*="wp-image-"] {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption .wp-caption-text {
    margin: 0.8075em 0; 
}

.wp-caption-text {
    text-align: center;
}

.gallery-caption {
    display: block;
    font-size: 13.8656px;
    font-size: 0.8666rem;
    line-height: 1.3999;
}

.alignleft {
    display: inline;
    float: left;
    margin-right: 1.9833em;
}

.alignright {
    display: inline;
    float: right;
    margin-left: 1.9833em;
}

@media (max-width: 480px) {
    .alignleft,
    .alignright {
        clear: both;
        display: block;
        margin-left: auto;
        margin-right: auto;
        float: none; }
}

.aligncenter {
    clear: both;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.sticky,
.bypostauthor {
    display: block;
}

/* 4. Block custom colors */
.has-imo-dark-background-color {
    background-color: #050303;
}

.has-imo-dark-color {
    color: #050303;
}

.has-imo-ice-background-color {
    background-color: #efedf5;
}

.has-imo-ice-color {
    color: #efedf5;
}

.has-imo-latte-background-color {
    background-color: #f4c951;
}

.has-imo-latte-color {
    color: #f4c951;
}

.has-imo-dark-purple-background-color {
    background-color: #27061c;
}

.has-imo-dark-purple-color {
    color: #27061c;
}

.has-imo-light-purple-background-color {
    background-color: #84285b;
}

.has-imo-light-purple-color {
    color: #84285b;
}

/* 5. Accessibility */
.imothm-container .skip-link {
    display: block;
    padding: 5px;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    color: #990000;
    background-color: #efedf5;
    position: absolute !important;
    top: 10px;
    right: -10px;
    word-wrap: normal !important;
    -webkit-transition: all 0.2s;
    -o-transition: all 0.2s;
    transition: all 0.2s;
    z-index: 100000;
    /* Above WP toolbar. */
}

.imothm-container .skip-link:focus {
    right: 10px !important;
    clip: auto !important;
    -webkit-clip-path: none;
    clip-path: none;
    height: auto;
    width: auto;
    text-decoration: none;
}

.imothm-container .screen-reader-text {
    display: block;
    padding: 5px;
    border: 0;
    clip: rect(1px, 1px, 1px, 1px);
    -webkit-clip-path: inset(50%);
    clip-path: inset(50%);
    height: 1px;
    width: 1px;
    margin: -1px;
    overflow: hidden;
    color: #990000;
}

/* 6. Scrollbars */
::-webkit-scrollbar {
    width: 9px;
}

::-webkit-scrollbar-track {
    background: #050303;
}

::-webkit-scrollbar-thumb {
    background: #f4c951;
}

::-webkit-scrollbar-thumb:hover {
    opacity: 0.75; 
}

/* 7. Customizer Styling */
.customize-partial-edit-shortcut {
    position: absolute;
    top: 45% !important;
    left: 50% !important;
    z-index: 100 !important;  
}

.customize-partial-edit-shortcut button {
    top: 0 !important;
    left: 2% !important;
}

.customize-partial-edit-shortcut:hover ~ * { 
    opacity: 0.75;
    -webkit-transform: translate(10px, 10px) scale(1.05);
        -ms-transform: translate(10px, 10px) scale(1.05);
            transform: translate(10px, 10px) scale(1.05);
    -webkit-transition: 0.3s all;
    -o-transition: 0.3s all;
    transition: 0.3s all;
}

/* 8. 404 Error Page */
.imothm-container .imothm-content-404 {
    position: relative;
    color: #efedf5;
    background-color: #27061c;
    background-image: -o-linear-gradient(bottom, #050303, #27061c, #84285b);
    background-image: -webkit-gradient(linear, left bottom, left top, from(#050303), color-stop(#27061c), to(#84285b));
    background-image: linear-gradient(to top, #050303, #27061c, #84285b);
    min-height: 100vh;
    padding: 20px 10px;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}

.imothm-container .imothm-content-404 h2 span {
    font-style: bold;
}

/* 9. Responsive Design */
@media only screen and (max-width: 1250px) {

    .imothm-container .main-column {
        -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
        max-width: 100%; 
    }

    .imothm-container .side-column {
        -ms-flex-preferred-size: 100%;
            flex-basis: 100%;
        max-width: 100%; 
        border-top: solid 2px #f4c951;
        margin: 10px 25px;
    }
}
