/*
Theme Name: DMI Mag
Theme URI: https://anton.sawko.com/
Author: Anton A. Sawko
Author URI: https://anton.sawko.com/
Version: 1.0
Text Domain: dmimag
License: 
License URI:
Description:
Requires at least: 4.9.6
Requires PHP: 5.2.4
Tags:
*/

@import url('https://fonts.googleapis.com/css2?family=Roboto:ital,wght@0,100;0,300;0,400;0,500;0,700;0,900;1,100;1,300;1,400;1,500;1,700;1,900&display=swap');

@import url('assets/css/nav.css');
@import url('assets/css/layout.css');
@import url('assets/css/card.css');
@import url('assets/css/singular.css?v=1.0.8');

html, body, div, span, applet, object, iframe, h1, h2, h3, h4, h5, h6, p, blockquote, pre, a, abbr, acronym, 
address, big, cite, code, del, dfn, em, font, ins, kbd, q, s, samp, small, strike, strong, sub, sup, tt, var, 
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, table, caption, tbody, tfoot, thead, tr, th, td {
	border: 0;
	font-family: inherit;
	font-size: 100%;
	font-style: inherit;
	font-weight: inherit;
	margin: 0;
	outline: 0;
	padding: 0;
	vertical-align: baseline;
}

* {
	-webkit-box-sizing: border-box;
	-moz-box-sizing: border-box;
	box-sizing: border-box;
}

article, aside, details, figcaption, figure, footer,
header, main, nav, section {
	display: block;
}

html, body {
	width: 100%;
	/*min-height:100%;*/
  min-width: 320px;
	font-size:16px;
  line-height: normal;
  font-family: 'Roboto', sans-serif;
	font-style: normal;
  font-weight: normal;
  color: #363636;
  background-color: #ffffff;
}

/* Footer down */

body {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

main {
  flex: 1;
  /*box-shadow: 0 1px 1px 0 rgb(41 39 89 / 15%);
  background-color: #ffffff;*/
}

/* end Footer down */

header, main, footer {
  /*padding: 0 20px;*/
}

a {
  color:#2688c7;
  text-decoration: none;
}

a:hover, .dmi-card a:hover {
  color: #2688c7;
}

/*a:active { 
  color: #f73c52;
}*/

ul {
  padding: 0;
  margin: 0;
}

.dmi-logo {
  /*padding: 20px 0;*/
}

@media only screen and (max-width: 1280px) {
  header {
    margin-bottom: 20px;
  }
}

@media only screen and (max-width: 1100px) {
  
  .dmi-logo {
    padding: 10px 0;
  }
}

.dmi-logo img {
  display: block;
}

@media only screen and (max-width: 768px) {
  .dmi-logo img {
    width: 250px;
    height: auto;
  }
}

@media only screen and (max-width: 480px) {
  .dmi-logo img {
    width:200px;
    height: auto;
  }
}

/* dmi */

.overflow-hidden {
  overflow: hidden;
}

/* Grid */

.dmi-wrap {
  width: 100%;
  margin: 0 auto;
  background-color: #ffffff;
}

@media only screen and (max-width: 1100px) {
  body {
    background-color: #f9f9f9;
  }
  
  .dmi-wrap {
    max-width: 924px;
    box-shadow: 0 1px 2px 0 rgb(41 39 89 / 15%);
  }
}

@media only screen and (max-width: 1024px) {
  .dmi-wrap {
    max-width: 768px;
  }
}

@media only screen and (max-width: 768px) {
  .dmi-wrap {
    max-width: 560px;
  }
}

@media only screen and (max-width: 480px) {
  .dmi-wrap {
    padding: 0;
  }
}

.dmi-grid {
  /*max-width: 1380px;*/
  margin: 0 auto;
}

.dmi-grid > .dmi-grid-row {
  max-width: 1410px;
  margin: 0 auto;
}

.dmi-grid-row.dmi-grid-content {
  /*margin-bottom: 25px;*/
  /*padding: 0 20px;*/
}

.home .dmi-grid-row.dmi-grid-content {
  padding: 0;
}

/* Grid Widget */

.dmi-grid-widget {
  margin-bottom: 20px;
}

/* Row */

.dmi-grid-row {
  display: flex;
  flex-wrap: wrap;
}

.dmi-row-reverse {
  flex-direction: row-reverse;
}

.single .dmi-content .dmi-grid-widget {
  margin: 0 auto 15px;
} 

/* end Row */

/* Col */

.dmi-grid-col {
  flex-basis: 0;
  flex-grow: 1;
  max-width: 100%;
  width: 100%;
}

.dmi-grid-col-adv {
  padding: 0 5px;
}

@media only screen and (max-width: 768px) {
  .dmi-grid-col-adv {
    padding: 0;
  }
}

/*.dmi-news-first > .dmi-grid-col, .dmi-news-second > .dmi-grid-col {
  border-right: 1px solid #f9f9f9;
}

.dmi-news-first > .dmi-grid-col:last-child, .dmi-news-second > .dmi-grid-col:last-child {
  border-right: 0;
}*/

.dmi-grid-col-auto {
  flex: 0 0 auto;
  width: auto;
  max-width: none;
}

.dmi-grid-col-1 {
}

.dmi-grid-col-2 {
  flex: 0 0 12.5%;
  max-width: 12.5%;
}

.dmi-grid-col-3 {
  flex: 0 0 25%;
  max-width: 25%;
}

.dmi-grid-col-sidebar {
  flex: 0 0 21%;
  max-width: 21%;
}

.dmi-grid-col-4 {
  flex: 0 0 33.333333%;
  max-width: 33.333333%;
}

.dmi-grid-col-5 {
  flex: 0 0 41.666667%;
  max-width: 41.666667%;
}

.dmi-grid-col-6 {
  flex: 0 0 50%;
  max-width: 50%;
}

.dmi-grid-col-7 {
}

.dmi-grid-col-8 {
  flex: 0 0 66.666667%;
  max-width: 66.666667%;
}

.dmi-grid-col-9 {
  flex: 0 0 75%;
  max-width: 75%;
}

.dmi-grid-col-10 {
}

.dmi-grid-col-11 {
}

.dmi-grid-col-12 {
  flex: 0 0 100%;
  max-width: 100%;
}

/* end Col */

.dmi-header {
  padding: 0 15px;
  font-size: 18px;
  line-height: 1;
  text-transform: uppercase;
  font-weight: bold;
  color: #2688c7;
  margin-bottom: 30px;
}

.layout-topfeed .dmi-header  {
  margin-bottom: 20px;
}

.dmi-grid-widget.dmi-header span, .dmi-grid-widget .dmi-header span, .dmi-news-readalso .dmi-header span  {
  background-color: #ffffff;
  padding-right: 8px;
  position: relative;
  z-index: 1;
}

.dmi-header .dmi-grid-col {
  position: relative;
}

.dmi-grid-widget.dmi-header .dmi-grid-col:after, .dmi-grid-widget .dmi-header .dmi-grid-col:after, .dmi-news-readalso .dmi-header .dmi-grid-col:after {
  content: '';
  position: absolute;
  height: 4px;
  top: 50%;
  left:0;
  right:0;
  margin-top: -2px;
  background-color: #2688c7;
}

/*.layout-newsfeed .dmi-header {
  margin-bottom: 20px;
  align-items: center;
}*/

.dmi-grid-sidebar .dmi-header, .dmi-news-readalso .dmi-header {
  padding: 0;
}

@media only screen and (max-width: 1100px) {
  .layout-topfeed .dmi-header {
    /*font-size: 16px;*/
  }
  
  /*.dmi-grid-sidebar .layout-newsfeed .dmi-header {
    padding: 0 15px;
  }*/
}

/*.dmi-header .dmi-grid-col > span {
  background-color: #7d7d7d;
  color: #ffffff;
  padding: 6px 10px;
  display: inline-block;
}*/

@media only screen and (max-width: 480px) {
  /*.dmi-header {
    padding: 25px 20px;
  }*/
}

/* Border */

.dmi-border {
  border: 1px solid #f9f9f9;
}

.dmi-border-top {
  border-top: 1px solid #f9f9f9;
}

.dmi-border-left {
  border-left: 1px solid #f9f9f9;
}

.dmi-border-right {
  border-right: 1px solid #f9f9f9;
}

.dmi-border-bottom {
  border-bottom: 1px solid #f9f9f9;
}

/* Background */

.dmi-background {
  background-color: #f9f9f9;
}

/* header */

header .dmi-grid-logo {
  /*box-shadow: 0 1px 2px 0 rgb(41 39 89 / 15%);*/
  background-position: center;
  background-repeat: no-repeat;
  background-image: url('assets/images/header-bg.jpg');
  height: 90px!important;
}

.header-sticky-active .dmi-grid-logo {
  height: auto!important;
}

@media only screen and (max-width: 768px) {
  header .dmi-grid-logo { 
    height: auto!important;
  }
}

header .dmi-grid-logo > .dmi-grid-row > .dmi-grid-col:not(:nth-child(2)) {
  display: none;  
}

.header-sticky-active .dmi-grid-logo > .dmi-grid-row > .dmi-grid-col:not(:nth-child(2)) {
  display: block;
}

header .dmi-grid-logo > .dmi-grid-row {
  justify-content: center;
}

.header-sticky-active .dmi-grid-logo > .dmi-grid-row {
  justify-content: space-between;
}

@media only screen and (max-width: 1280px) {
  header .dmi-grid-logo > .dmi-grid-row > .dmi-grid-col:not(:nth-child(2)) {
    display: block;
  }
  
  header .dmi-grid-logo > .dmi-grid-row {
    justify-content: space-between;
  }
  
  header .dmi-grid-menu {
    display: none;
  }
}

header .dmi-grid {
  padding: 0 15px;
}

@media only screen and (max-width: 768px) {
  /*header {
    height: 70px;
  }*/
  
  /*header > .dmi-grid {
    padding: 10px 20px;
  }*/
}

.dmi-header-bar {
  height: 45px!important;
  background-color: #2688c7;
  color: #ffffff;
}

.dmi-header-bar .dmi-grid-row {
  justify-content: center;
}

.dmi-header-bar a {
  color: #ffffff;
}

.dmi-additional-info ul, .dmi-weather {
  list-style: none;
}

@media only screen and (max-width: 1100px) {
  .dmi-header-bar .dmi-additional-info {
    display: none;
  }
}

.dmi-modal .dmi-additional-info {
  margin-top: 10px;
  justify-content: flex-start;
  
}

.dmi-day, .dmi-currence {
  /*border-left: 1px solid #ffffff;*/
}

.dmi-modal .dmi-day, .dmi-modal .dmi-currence {
  border: none;
}

.dmi-day, .dmi-weather {
  font-weight: bold;
}

.dmi-day, .dmi-weather, .dmi-currence {
  padding-left: 15px;
  /*height: 30px;*/
  display: flex;
  flex-direction: row;
  align-items: center;
  text-transform: uppercase;
  font-size: 14px;
}

.dmi-modal .dmi-day {
  padding-left: 0;
}

.dmi-currence {
  margin-left: 15px;
  padding-left: 0;
}

.dmi-modal .dmi-currence, .dmi-modal .dmi-weather {
  list-style: none;
  margin-left: 0;
}

.dmi-currence li {
  padding-left: 15px;
}

.dmi-modal .dmi-currence  li:first-child {
  padding-left: 0;
}

.dmi-currence li span:first-child {
  font-weight: bold;
  margin-right: 3px;
}

.dmi-weather {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  padding-left: 0;
   
}

@media only screen and (max-width: 1100px) {
  .dmi-sidebar .dmi-grid-widget.widget_dmimag_weather_widget, .dmi-sidebar .dmi-grid-widget.widget_search {
    display: none;
  }
}

.dmi-weather-temp {
  font-size: 42px;
  line-height:1;
  margin-right: 20px;
}

.dmi-weather-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  font-size: 13px;
  line-height: 1.25;
  color: #9b9b9b;
  font-weight: normal;
  text-transform: none;
  text-align: right;
}

.dmi-weather-icon {
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  background-position: center;
  background-size: auto;
  background-repeat: no-repeat;
  font-size: 40px;
}

.header-sticky-active > .dmi-grid, .single .header-sticky {
  padding: 0 20px;
  box-shadow: 0 1px 2px 0 rgb(41 39 89 / 15%);
  background-color: #ffffff;
  margin: 0 auto;
}

.header-sticky-active .dmi-header-bar, .header-sticky-active .dmi-grid-menu {
  display: none;
}

.header-sticky-active .dmi-logo {
  padding: 10px 0;
}

@media only screen and (max-width: 1200px) {
}

@media only screen and (max-width: 1024px) {
}

@media only screen and (max-width: 768px) {
}

.single .header-sticky {
  display: none;
  justify-content: space-between;
  padding: 20px;
}

.single .header-sticky .dmi-grid-col:first-child {
  overflow: hidden;
  font-size: 17px;
  font-weight: 600;
}

/*.single .header-sticky .dmi-grid-col:last-child {
  margin-left: 20px;
}*/

.single .header-sticky .dmi-grid-col:first-child span {
  white-space: nowrap;
}

.single .header-sticky-active {
  display: flex;
}

@media only screen and (max-width: 480px) {
  .single .header-sticky-active {
    display: none;
  }
}

.header-sticky-active {
  position: fixed;
  top:0;
  left:0;
  right:0;
  z-index: 999;
  box-shadow: none; 
}

@media only screen and (max-width: 480px) {
  .header-sticky-active {
    /*position: static;*/
  }
}


header .dmi-grid, header .dmi-grid-row { /*  */
  height: 100%;
}

header .dmi-grid-row {
  justify-content: space-between;
  align-items: center;
  height: inherit;
}

.dmi-top-bar > .dmi-grid-row > .dmi-grid-col {
  margin-right: 25px;
}

@media only screen and (max-width: 480px) {
  .dmi-top-bar > .dmi-grid-row > .dmi-grid-col {
    margin-right: 15px;
  }
}

.dmi-top-bar > .dmi-grid-row > .dmi-grid-col:last-child {
  margin-right: 0;
}

.dmi-search-link a {
  /*margin-right: 30px;*/
  color: #2688c7;
  display: flex;
  flex-direction: row;
  align-items: center;
  font-size: 30px;
}

.dmi-bars {
  display: flex;
  flex-direction: row;
  align-items: center;
  color: #8050ab;
  cursor: pointer;
}

.dmi-bars ul {
  width: 40px;
  height: 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.dmi-bars ul li {
  width:100%;
  height: 4px;
  background-color: #2688c7;
}

@media only screen and (max-width: 480px) {
  .dmi-bars ul {
    width: 30px;
    height: 26px;
  }
  
  .dmi-bars ul li {
    height: 3px;
  }
}

.dmi-bars:hover ul li {
  background-color: #c60a00; 
}

.dmi-search-link a:hover, .dmi-bars:hover {
  color: #f70d28;
}

.dmi-bars .dmi-label, .dmi-search-link .dmi-label {
  text-transform: uppercase;
  font-size: 12px;
  font-weight: 700;
}

/* */

.dmi-close {
  width: 24px;
  height: 24px;
  position: relative;
  cursor: pointer;
}

.dmi-close span {
  position: absolute;
  display: block;
  width: 24px;
  height: 3px;
  background-color: #2688c7;
}

.dmi-close:hover span {
  background-color: #f70d28;
}

.dmi-close span:first-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -o-transform: rotate(45deg);
}

.dmi-close span:last-child {
  top: 11px;
  transition: transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s, -webkit-transform .1596s cubic-bezier(0.52, 0.16, 0.52, 0.84) .1008s;
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
}

/* Main */

main {
  background-color: #ffffff;
  margin-top: 20px;
  position: relative;
}

main .dmi-grid-content {
  max-width: 1440px!important;
}

/*main {
  display: flex;
  flex-direction: column;
}

main .dmi-grid {
  flex: 1;
  width: 100%;
  border: 2px solid #000;
}

*/

.dmi-content {
  padding: 0 15px;
}

@media only screen and (max-width: 1200px) {
  /*.dmi-content {
    padding: 0 20px 20px 20px;
  }*/
}

/*media only screen and (max-width: 480px) {
  .dmi-content {
    padding: 30px 20px;
  }
}*/

div[class*="dmiads-"] { /* , div[id*="dmiads-"]*/
 
  margin: 0 auto;
  padding: 20px;
  text-align: center;
}

div[class*="dmiads-"] img, div[id*="dmiads-"] img {
  display: block!important;
  margin: 0 auto;
  max-width: 100%;
  height: auto;
}

/* Archive */

.dmi-archive-title {
  font-size: 40px;
  font-weight: normal;
  text-transform: none!important;
  /*margin-top: -7px;
  margin-bottom: 20px;*/
}

.dmi-archive-title:first-letter {
  text-transform: uppercase;
}

@media only screen and (max-width: 768px) {
  .dmi-archive-title {
    font-size: 30px;
  }
}

@media only screen and (max-width: 480px) {
  .dmi-archive-title {
    font-size: 24px;
  }
}

/* Pagination */

.dmi-paginate {
  justify-content: center;
  margin: 20px auto;
  font-size: 14px;
}

.dmi-paginate ul {
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
}

.dmi-paginate ul li {
  margin: 0 5px 5px 5px;
}

.dmi-paginate ul li a.page-numbers, .dmi-paginate ul li .current, .dmi-paginate ul li .dots {
  display: block;
  padding: 8px 13px;
  border-radius: 3px;
}

.dmi-paginate ul li a.page-numbers  {
  color: #ffffff;
  background-color: #2688c7;
}

.dmi-paginate ul li .current {
  color: #ffffff;
  background-color: #cccccc;
}

.dmi-paginate ul li a:hover {
  background-color: #f70d28;
}

/* Sidebar */

.dmi-grid-sidebar {
  position: relative;
  top: 0;
  bottom: 0;
  padding: 0 15px;
}

.home .dmi-grid-sidebar {
  padding-bottom: 30px;
}

@media only screen and (max-width: 1100px) {
  .dmi-grid-sidebar {
    flex: 0 0 100%;
    max-width: 100%;
    padding: 0 15px;
  }
  
  .home .dmi-grid-sidebar {
    order: 2;
    padding-bottom: 0;
  }

}

/* Svg */

.svg-inline--fa.fa-w-16 {
  width: .875em;
}

.fa-search {
  /*margin-right: 10px;*/
}

.svg-inline, .svg-inline--fa {
  display: inline-block;
  font-size: inherit;
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
}

.dmi-news-icon .svg-inline {
  width: 60%;
  height: auto;
}

/* footer */

footer {
  margin-top: 25px;
}

footer .dmi-grid {
  padding: 20px;
}

footer .dmi-grid .dmi-grid-widget {
  font-size: 13px;
  line-height: 18px;
  color: #9b9b9b;
}

footer .dmi-grid:last-child {
  background-color: #2688c7;
}

footer .dmi-grid:first-child .dmi-grid-widget {
  text-align: center;
}

footer .dmi-grid:last-child .dmi-grid-widget {
  color: #ffffff;
  font-size: 14px;
}

.sidebar-footer-left {
  flex: 0 0 33%;
  max-width: 33%;
  margin-right: 30px;
}

footer .dmi-grid:last-child .dmi-grid-widget .dmi-grid-row:not(:last-child) {
  margin-bottom: 20px;
}

.textwidget p:not(:last-child) {
  margin-bottom: 10px;
}

.textwidget strong {
  font-weight: bold;
}

@media only screen and (max-width: 1024px) {
  footer .dmi-grid:last-child .dmi-grid-widget {
    flex-direction: column;
  }
  
  footer .dmi-grid:last-child .dmi-grid-widget > .dmi-grid-col > div { /*:first-child */
    margin-bottom: 20px;
  }
  
  footer .dmi-grid:last-child .dmi-grid-widget > .dmi-grid-col:last-child > div:last-child {
    margin-bottom: 0;
  }
}

@media only screen and (max-width: 768px) { 
  .sidebar-footer-left {
    flex: 0 0 100%;
    max-width: 100%;
    margin-right: 0;
  }
}

/* */

.dmi-svg-inline {
  display: inline-block;
  font-size: inherit;
  height: 1em;
  overflow: visible;
  vertical-align: -.125em;
}

.dmi-svg-10 {
  width: 10px;
  height:auto;
}

.dmi-svg-16 {
  width: 16px;
  height:auto;
}

/* search */

.search-form {
  padding: 20px 15px;
  position: relative;
}

.search-form .dmi-grid-col {
  position: relative;
}

.search-form input[type="text"] {
  border: 1px solid #6a727c;
  outline: none;
  padding: 0 15px;
  height: 45px;
  font-size: 15px;
  color: #000000;
  padding: 15px 120px 15px 20px!important;
  width: 100%;
}

.search-form button {
  position: absolute;
  right: 0;
  width: 80px;
  height: 100%;
  font-size: 20px;
  color: #ffffff;
  background-color: #2688c7;
  outline: none;
  border: 1px solid #2688c7;
  cursor: pointer;
}

.search-form button:hover {
  background-color: transparent;
  color: #2688c7;
}

.dmi-not-found {
  font-size: 20px;
  padding: 20px;
}

@media only screen and (max-width: 480px) {
  .search-form, .dmi-not-found {
    padding: 25px 20px;
  }
}

.age {
  width: 40px;
  height: 40px;
  display: flex;
  flex-direction: row;
  justify-content: center;
  align-items: center;
  border-radius: 50%;
  border: 2px solid #ffffff;
  font-size: 18px;
  margin-right: 15px;
}

/* ads */

.dmi-ads {
  margin: 0 auto 25px; 
}

.dmi-ads-header, .dmi-ads-footer {
  padding: 0 15px;
}

.dmi-ads-header + main {
  margin-top: 40px;
}

@media only screen and (max-width: 1024px) {
  .dmi-ads-header + main {
    margin-top: 20px;
  }
}

.a-single {
  margin: 0 auto;
}

.dmi-grid-sidebar .adrotate_widgets {
  margin: 0 auto 25px;
}

.dmi-grid-sidebar .adrotate_widgets .g {
  margin: 0 auto!important;
}

.dmi-ads a img, .dmi-grid-sidebar .adrotate_widgets .g a img {
  width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* */

.dmi-mobile {
  display: none;
}

@media only screen and (max-width: 1100px) {
  .dmi-mobile {
    display: block;
  }
  
  .dmi-desktop {
    display: none;
  }
}

.wq-skin-traditional .wq_singleAnswerCtr.wq_correctAnswer {
  background: #2688c7;
  border-color: #2688c7;
}

.wq_triviaQuestionExplanation .wq-explanation-head-correct {
  color: #2688c7;
}