/* FONTS
--------------------------------------------- */

@font-face {
    font-family: 'Reiswar';
    src: url('/wp-content/themes/generalstudio/assets/fonts/reiswar.woff2') format('woff2'),
         url('/wp-content/themes/generalstudio/assets/fonts/reiswar.woff') format('woff');
    font-weight: normal;
    font-style: normal;
}

/* VARIABLES
--------------------------------------------- */

:root {
    /* Fonts */
    --fnt-family-primary: "IBM Plex Sans", sans-serif;
    --fnt-family-secondary: "Reiswar", serif;

    /* Font sizes */
    --fnt-size-xxxl: 3rem;
    --fnt-size-xxl: 2rem;
    --fnt-size-xl: 1.75rem;
    --fnt-size-lg: 1.5rem;
    --fnt-size-md: 1.2rem;
    --fnt-size: 1rem;
    --fnt-size-sm: 0.875rem;

    /* Colors */
    --clr-primary: #002799;
    --clr-light: #ffffff;
    --clr-dark: #002799;
    --clr-muted: #adb9dc;
    --clr-success: #76e148;
    --clr-warning: #f4ce53;
    --clr-danger: #ea3a4c;

    /* Links */
    --clr-link: var(--clr-light);
    --clr-link-hover: var(--clr-muted);

    /* Shadows */
    --shadow-small: 0 3px 6px rgba(0, 0, 0, .15);
    --shadow-default: 0 8px 16px rgba(0, 0, 0, .15);
    --shadow-large: 0 16px 32px rgba(0, 0, 0, .15);

    --icon-arrow-right: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 -960 960 960' fill='%23ffffff'%3E%3Cpath d='M633.85-434.5H197.37q-19.15 0-32.33-13.17-13.17-13.18-13.17-32.33t13.17-32.33q13.18-13.17 32.33-13.17h436.48L447.17-712.17q-13.67-13.68-13.29-32.07.38-18.39 14.05-32.06 13.68-12.68 32.07-13.06 18.39-.38 32.07 13.29l264 264q6.71 6.72 9.81 14.92 3.1 8.19 3.1 17.15 0 8.96-3.1 17.15-3.1 8.2-9.81 14.92L511.83-183.7q-12.92 12.92-31.57 12.92t-32.33-12.92q-13.67-13.67-13.67-32.44 0-18.77 13.67-32.45L633.85-434.5Z'/%3E%3C/svg%3E");
}

/* BASE
--------------------------------------------- */

*,
*:before,
*:after {
    box-sizing: border-box;
}

html {
    font-size: 18px;
    font-size: clamp(16px, 1.2vw, 20px);
}

body {
    font-family: var(--fnt-family-primary);
    line-height: 1.5;
    color: var(--clr-light);
    background-color: var(--clr-dark);
    margin: 0;
    padding: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: currentColor;
    font-family: var(--fnt-family-primary);
    line-height: 1.2;
    margin: 2em 0 1em 0;
}

h1:first-child, h2:first-child, h3:first-child, h4:first-child, h5:first-child, h6:first-child {
    margin-top: 0;
}

h1 { font-size: var(--fnt-size-xl); }
h2 { font-size: var(--fnt-size-lg); }
h3 { font-size: var(--fnt-size-md); }
h4 { font-size: var(--fnt-size-sm); }

a, a:visited {
    color: var(--clr-link);
    transition: all .25s ease;
    text-decoration: none;
}

a:hover, a:focus, a:active {
    color: var(--clr-link-hover);
    text-decoration: none;
}

strong {
    font-weight: bold;
    color: inherit;
}

em {
    font-style: italic;
    color: inherit;
}

/* LAYOUT
--------------------------------------------- */

/* - Header - */

.site-header {
    background-color: var(--clr-light);
    color: var(--clr-dark);
    padding: 1.5rem 0;
}

.site-header--front {
    background-color: var(--clr-dark);
    color: var(--clr-light);
    border-bottom: 1px solid var(--clr-light);
}

.logo {
    max-width: 80px;
    color: currentColor;
    fill: currentColor;
}

@media only screen and (min-width : 960px) {
    .logo {
        max-width: 100px;
    }
}

.logo-cmal {
    max-width: 90px;
    color: currentColor;
    fill: currentColor;
}

@media only screen and (min-width : 960px) {
    .logo-cmal {
        max-width: 120px;
    }
}


.site-header__toggle {
    color: currentColor;
    fill: currentColor;
    display: block;
    margin: -4%;
}

.site-header a {
    color: currentColor;
}

/* - Navigation - */

.site-nav {
  display: grid;
  grid-template-columns: 2fr 6fr 2fr;
  align-items: center;
  gap: 2rem;
}

.site-nav > * {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.site-nav__left   { justify-content: flex-start; }
.site-nav__center { justify-content: center; }
.site-nav__right  { justify-content: flex-end; }

/* mobile */
@media (max-width: 960px) {
  .site-nav {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: auto auto;
  }

  .site-nav__left   { grid-column: 1; grid-row: 1; }
  .site-nav__right  { grid-column: 2; grid-row: 1; justify-content: flex-end; }
  .site-nav__center { grid-column: 1 / -1; grid-row: 2; justify-content: center; }
}

.offcanvas-nav {
    background-color: var(--clr-dark);
}

/* - Main - */

.site-main {

}

/* - Footer - */

.site-footer {
    display: flex;
    flex-direction: column;
    gap: 3rem;
    position: relative;
}

.site-footer .letter-path {
    color: var(--clr-light);
    fill: var(--clr-light);
    opacity: .25;
    position: absolute;
    bottom: 0;
    right: 0;
}

/* COMPONENTS
--------------------------------------------- */

.intro {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
    text-align: center;
}

.intro__title {
    font-family: var(--fnt-family-secondary);
    font-size: 1.5rem;
    margin: 0;
}

.intro__description {
    margin: 0;
    font-size: .9rem;
}

.panel-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 2rem;
    width: 100%;
}

.panel-header__number {
    border-radius: 9999px;
    border: 2px solid currentColor;
    font-family: var(--fnt-family-secondary);
    width: 58px;
    height: 58px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: var(--fnt-size-lg);
    flex-shrink: 0;
}

.panel-header__title {
    font-size: var(--fnt-size-lg);
    font-weight: bold;
    margin: 0;
}

.panel-header__location {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: .5rem;
    line-height: 1.2;
    text-align: right;
}

.panel-header__location-icon {
    fill: currentColor;
    width: 42px;
}

.panel-header__location-name {
    font-weight: bold;
    font-size: 1.2rem;
}


.panel-header__location-action {
    font-size: .8rem;
}

.panels-nav {
    position: relative;
}

.panels-nav::before {
    content: '';
    display: block;
    position: absolute;
    top: 16px;
    bottom: 16px;
    left: 32px;
    width: 1px;
    background-color: var(--clr-light);
    z-index: 1;
}

.panels-nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    position: relative;
    z-index: 2;
}

.panels-nav__item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    width: 100%;
}

.panels-nav__number {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 9999px;
    background-color: var(--clr-light);
    color: var(--clr-dark);
    font-family: var(--fnt-family-secondary);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.panels-nav__name {
    font-family: var(--fnt-family-secondary);
    font-size: 1.5rem;
    padding: .5rem 0;
    display: block;
}

.panels-nav__posts {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.panels-nav__post-link {
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
}

.panels-nav__post-link::after {
    content: var(--icon-arrow-right);
    display: block;
    width: 48px;
    height: 48px;
}

.panel-section__item {
    margin-bottom: 3rem;
    scroll-margin-top: 40px;
}

.panel-section__content {
    padding-bottom: 2rem;
}

.panel-section__toggle {
    border-bottom: 1px solid var(--clr-light);
    display: flex;
    min-height: 1em;
    align-items: center;
}

.panel-section__toggle > .uk-icon {
    color: var(--clr-light);
    padding: .5rem 0;
    margin-left: auto;
}

.panel-section__toggle > .uk-icon > svg {
    width: 24px;
}

.panel-section__title {
    display: flex;
    align-items: center;
    gap: .5rem;
    padding: .35rem 0;
}

.panel-media {
    margin-bottom: 4rem;
}

.panel-media__image {
    margin-bottom: 1rem;
}


.panel-media__caption {
    font-weight: bold;
    font-size: 1.2rem;
}

.quiz__replies {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 2rem 0;
}

.quiz__reply {
    padding: .75rem 1.25rem;
    background-color: var(--clr-dark);
    opacity: 1;
    color: var(--clr-light);
    font-weight: bold;
    border: 4px solid var(--clr-light);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

/*.quiz__reply::before {
    content: '';
    display: block;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--clr-light);
}*/

.quiz__reply::after {
    content: '';
    display: none;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 16px;
    background-color: rgba(255, 255, 255, 0);
    border: 2px solid var(--clr-light);
}

.quiz__reply:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: var(--clr-light);
}

.quiz__reply--selected {
    background-color: rgba(255, 255, 255, 1);
    color: var(--clr-dark);
}

.quiz__reply--selected:hover {
    background-color: rgba(255, 255, 255, 0.8);
    color: var(--clr-dark);
}

.quiz__reply--true {
    border-color: var(--clr-success);
    color: var(--clr-success);
}

.quiz__reply--false {
    border-color: var(--clr-danger);
    color: var(--clr-danger);
}

.quiz__icon--correct {
    color: var(--clr-success);
}

.quiz__icon--wrong {
    color: var(--clr-danger);
}

.languages {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
    align-items: center;
    /*justify-content: center;*/
}

.languages a {
    text-transform: uppercase;
    font-weight: bold;
    font-size: 1.1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background-color: transparent;
}

.languages .current-lang a {
    background-color: var(--clr-light);
    color: var(--clr-dark);
}

/* UTILITIES
--------------------------------------------- */

.text-lg {
    font-size: var(--fnt-size-lg);
}

/* WORDPRESS
--------------------------------------------- */

.wp-block-button__link,
.button {
    background-color: var(--clr-light);
    color: var(--clr-dark);
    border: none;
    margin: 0;
    overflow: visible;
    font: inherit;
    text-transform: none;
    -webkit-appearance: none;
    border-radius: 9999px;
    display: inline-block;
    box-sizing: border-box;
    padding: .75em 1.75em;
    vertical-align: middle;
    text-align: center;
    text-decoration: none;
    text-transform: none;
}

.wp-block-button__link:hover,
.button:hover {
    background-color: var(--clr-light);
    color: var(--clr-primary);
}

/* OVERRIDES
--------------------------------------------- */

.uk-offcanvas-bar { 
    background-color: var(--clr-light);
    color: var(--clr-dark);
    padding: 0;
}

.uk-offcanvas .uk-offcanvas-close {
    color: var(--clr-dark);
}

.uk-modal-close-full {
    top: 1rem;
    right: 1rem;
    border-radius: 9999px;
    color: var(--clr-dark);
}

.material-symbols-rounded {
  font-variation-settings:
  'FILL' 1,
  'wght' 400,
  'GRAD' 0,
  'opsz' 24
}

.uk-modal {
    color: var(--clr-dark);
}

/* MEDIA QUERIES
--------------------------------------------- */

/* Custom, iPhone Retina */
@media only screen and (min-width : 320px) {}

/* Extra Small Devices, Phones */
@media only screen and (min-width : 640px) {}

/* Small Devices, Tablets */
@media only screen and (min-width : 768px) {}

/* Medium Devices, Desktops */
@media only screen and (min-width : 960px) {}

/* Large Devices, wide Screens */
@media only screen and (min-width : 1200px) {}

/* Extra large Devices */
@media only screen and (min-width : 1400px) {}