/*
Theme Name: CULS Racing
Version: 1.0.4
Description: Custom theme for CULS Formula Racing team
Tags: CULS, Racing, Formula Student
Author: Vlastimil Lisák
Author URI: www.linkedin.com/in/vlastimil-lisak-jr
*/

/*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */

/* Document
   ========================================================================== */

/**
 * 1. Correct the line height in all browsers.
 * 2. Prevent adjustments of font size after orientation changes in iOS.
 */

html {
  line-height: 1.15; /* 1 */
  -webkit-text-size-adjust: 100%; /* 2 */
}

/* Sections
   ========================================================================== */

/**
 * Remove the margin in all browsers.
 */

body {
  margin: 0;
}

/**
 * Render the `main` element consistently in IE.
 */

main {
  display: block;
}

/**
 * Correct the font size and margin on `h1` elements within `section` and
 * `article` contexts in Chrome, Firefox, and Safari.
 */

h1 {
  font-size: 2em;
  margin: 0.67em 0;
}

/* Grouping content
   ========================================================================== */

/**
 * 1. Add the correct box sizing in Firefox.
 * 2. Show the overflow in Edge and IE.
 */

hr {
  box-sizing: content-box; /* 1 */
  height: 0; /* 1 */
  overflow: visible; /* 2 */
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

pre {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/* Text-level semantics
   ========================================================================== */

/**
 * Remove the gray background on active links in IE 10.
 */

a {
  background-color: transparent;
}

/**
 * 1. Remove the bottom border in Chrome 57-
 * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari.
 */

abbr[title] {
  border-bottom: none; /* 1 */
  text-decoration: underline; /* 2 */
  text-decoration: underline dotted; /* 2 */
}

/**
 * Add the correct font weight in Chrome, Edge, and Safari.
 */

b,
strong {
  font-weight: bolder;
}

/**
 * 1. Correct the inheritance and scaling of font size in all browsers.
 * 2. Correct the odd `em` font sizing in all browsers.
 */

code,
kbd,
samp {
  font-family: monospace, monospace; /* 1 */
  font-size: 1em; /* 2 */
}

/**
 * Add the correct font size in all browsers.
 */

small {
  font-size: 80%;
}

/**
 * Prevent `sub` and `sup` elements from affecting the line height in
 * all browsers.
 */

sub,
sup {
  font-size: 75%;
  line-height: 0;
  position: relative;
  vertical-align: baseline;
}

sub {
  bottom: -0.25em;
}

sup {
  top: -0.5em;
}

/* Embedded content
   ========================================================================== */

/**
 * Remove the border on images inside links in IE 10.
 */

img {
  border-style: none;
}

/* Forms
   ========================================================================== */

/**
 * 1. Change the font styles in all browsers.
 * 2. Remove the margin in Firefox and Safari.
 */

button,
input,
optgroup,
select,
textarea {
  font-family: inherit; /* 1 */
  font-size: 100%; /* 1 */
  line-height: 1.15; /* 1 */
  margin: 0; /* 2 */
}

/**
 * Show the overflow in IE.
 * 1. Show the overflow in Edge.
 */

button,
input { /* 1 */
  overflow: visible;
}

/**
 * Remove the inheritance of text transform in Edge, Firefox, and IE.
 * 1. Remove the inheritance of text transform in Firefox.
 */

button,
select { /* 1 */
  text-transform: none;
}

/**
 * Correct the inability to style clickable types in iOS and Safari.
 */

button,
[type="button"],
[type="reset"],
[type="submit"] {
  -webkit-appearance: button;
}

/**
 * Remove the inner border and padding in Firefox.
 */

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

/**
 * Restore the focus styles unset by the previous rule.
 */

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

/**
 * Correct the padding in Firefox.
 */

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

/**
 * 1. Correct the text wrapping in Edge and IE.
 * 2. Correct the color inheritance from `fieldset` elements in IE.
 * 3. Remove the padding so developers are not caught out when they zero out
 *    `fieldset` elements in all browsers.
 */

legend {
  box-sizing: border-box; /* 1 */
  color: inherit; /* 2 */
  display: table; /* 1 */
  max-width: 100%; /* 1 */
  padding: 0; /* 3 */
  white-space: normal; /* 1 */
}

/**
 * Add the correct vertical alignment in Chrome, Firefox, and Opera.
 */

progress {
  vertical-align: baseline;
}

/**
 * Remove the default vertical scrollbar in IE 10+.
 */

textarea {
  overflow: auto;
}

/**
 * 1. Add the correct box sizing in IE 10.
 * 2. Remove the padding in IE 10.
 */

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box; /* 1 */
  padding: 0; /* 2 */
}

/**
 * Correct the cursor style of increment and decrement buttons in Chrome.
 */

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

/**
 * 1. Correct the odd appearance in Chrome and Safari.
 * 2. Correct the outline style in Safari.
 */

[type="search"] {
  -webkit-appearance: textfield; /* 1 */
  outline-offset: -2px; /* 2 */
}

/**
 * Remove the inner padding in Chrome and Safari on macOS.
 */

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

/**
 * 1. Correct the inability to style clickable types in iOS and Safari.
 * 2. Change font properties to `inherit` in Safari.
 */

::-webkit-file-upload-button {
  -webkit-appearance: button; /* 1 */
  font: inherit; /* 2 */
}

/* Interactive
   ========================================================================== */

/*
 * Add the correct display in Edge, IE 10+, and Firefox.
 */

details {
  display: block;
}

/*
 * Add the correct display in all browsers.
 */

summary {
  display: list-item;
}

/* Misc
   ========================================================================== */

/**
 * Add the correct display in IE 10+.
 */

template {
  display: none;
}

/**
 * Add the correct display in IE 10.
 */

[hidden] {
  display: none;
}

/* Konec normalizace */

/* Obecné nastavení */

html {
  scroll-behavior: smooth;
  scroll-padding-top: 4rem;
}

/* Font */

@font-face {
font-family: 'Montserrat';
font-style: normal;
font-weight: 400;
font-display: swap;
src: local('Montserrat Regular'), local('Montserrat-Regular'), url(https://fonts.gstatic.com/s/montserrat/v14/JTUSjIg1_i6t8kCHKm459WlhyyTh89Y.woff2) format('woff2');
unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

html {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.5;
}

h1 {
  font-size: 2.5rem;
  padding: 2rem 1rem;
}

h2 {
  font-size: 2rem;
}

p {
  padding: 1rem;
  font-size: 1.2rem;
}

a {
  color: #000;
  font-weight: 600;
}

a:hover {
  background-color: var(--highlight-color);
}

.section-white.partners a:hover,
footer a:hover {
    background-color: transparent;
}

/* Proměnné */

:root {
  --navColor: #fff;
  --navBackground: #00000099;
  --navActiveBackground: #000;
  --highlight-color: #d3c400;

  --sectionWhiteBackground: #f5f5f5;
}

/* Obrázek na pozadí */

.wp-theme-background {
  z-index: -1;
  position: fixed;
  top: -4rem;
  background: url("assets/css/body-background-min.jpg");
  background-size: cover;
  height: calc(100vh + 4rem + 60px);
  width: 100%;
}

/* Navigace */

body {
  padding-top: 4rem;
}

.main-navigation {
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 999;
    display: flex;
    justify-content: center;
    height: 4rem;
    background: var(--navBackground);
    transition: 300ms ease-out;
}

.main-navigation a > img {
  height: 100%;
  max-width: unset;
}

.main-navigation p {
  padding: 0;
  line-height: unset;
}

.main-navigation ul {
  padding-inline-end: 0;
}

.nav-burger {
  display: none;
  position: absolute;
  padding: 0.5rem;
  right: 0.5rem;
}

.nav-burger div {
  position: relative;
  width: 2rem;
  height: 3px;
  background-color: var(--navColor);
  margin: 10px;
  transition: 300ms;
}

.main-navigation.active {
  background: var(--navActiveBackground);
}

.main-navigation.active .nav-content{
  background: var(--navActiveBackground);
}

.main-navigation.active .nav-burger div {
  background-color: red;
}

.main-navigation.active .nav-burger .line1 {
  transform: rotate(45deg);
  top: 13px;
}

.main-navigation.active .nav-burger .line2 {
  opacity: 0;
}

.main-navigation.active .nav-burger .line3 {
  transform: rotate(320deg);
  top: -13px;
}

.nav-content {
  display: flex;
  transition: 300ms ease-out;
}

.main-navigation li {
  list-style: none;
}

.main-navigation .nav-links {
    display: flex;
    align-items: center;
    justify-content: space-around;
    width: 60rem;
}

.main-navigation .nav-links a {
  display: inline-block;
  position: relative;
  bottom: 0;
  color: var(--navColor);
  text-decoration: none;
  font-weight: bold;
  text-shadow: none;
  box-shadow: inset 0px 0px 0px 0px #000000, 0px 0px 0px 0px #ffffff;
  transition: ease 300ms;
}

.main-navigation .nav-links a:hover,
.main-navigation .nav-links > .current-menu-item a {
  background: linear-gradient(167deg,#0e0d00, var(--highlight-color));
  padding: 8px 33px;
  box-shadow: inset 4px 4px 10px -2px #000000, 1px 1px 7px -3px #ffffff;
}

@media screen and (max-width: 1166px) {

  .nav-burger {
    display: block;
  }

  .nav-content {
    height: calc(100% - 4rem);
    width: 100%;
    background: var(--navBackground);
    position: fixed;
    top: 100vh;
  }

  .main-navigation.active .nav-content {
    top: calc(4rem);
  }

  .main-navigation .nav-links {
    flex-direction: column;
    padding-inline-start: 0;
  }
}

/* Content */

.wp-block-group__inner-container {
  margin: 4rem auto;
  max-width: 1000px;
}

.wp-block-image img {
  height: auto;
}

/* Bílá sekce */
.section-white {
  padding: 0.1px;
  background: var(--sectionWhiteBackground);
}

/* H1 mimo bílou sekci */
h1.white-bg{
  color: white;
  max-inline-size: 33rem;
  margin: 0 auto;
}

a.button-link {
  display: inline-block;
  padding: 1rem;
  margin: 1rem 0;
  background: white;
  border: 2px solid var(--highlight-color);
  box-shadow: 1px 1px 4px 0 var(--highlight-color);
}

/* instagram sekce */

#sb_instagram .sb_instagram_header .sbi_header_text.sbi_no_bio h3 {
  color: white;
}

#sb_instagram.sbi_medium .sbi_type_carousel .sbi_photo_wrap .fa-clone {
  z-index: 0;
}

.sbi_header_img > img {
  object-fit: contain;
}

.sb_instagram_header {
  padding: 10px;
  max-width: calc(100% - 20px);
}

#sb_instagram .sb_instagram_header a {
    color: white;
}

/* Sponzoři sekce */

.section-white.partners h2 {
  inline-size: 13rem;
  padding: 3px 1rem;
  margin: 3rem auto;
  text-shadow: 0px 4px 4px rgba(0, 0, 0, 0.25);
}

.section-white.partners h2.platinum {
  background: linear-gradient(123.6deg, #d1d1d1 33%, #FFFFFF 50%, #d1d1d1 66%);
  box-shadow: 0px 0px 21px rgb(0 0 0 / 25%);
}

@media (max-width: 599px) {
	.partners .wp-block-columns:not(.is-not-stacked-on-mobile)>.wp-block-column {
	    flex-basis: 50% !important;
	}
}

.section-white.partners img {
  object-fit: scale-down;
  transition: 300ms ease-out;
  transform: scale(1);
}

.section-white.partners img:hover {
  transform: scale(1.2);
}

@media (max-width: 1045px){
	  .section-white.partners img:hover {
		transform: scale(1);
	}
}

.section-white.partners .wp-block-image a::after {
	display: block;
	position: relative;
	content: "";
    height: 2rem;
    width: 2rem;       
    top: -30px;
	left: 80%;
    background: url(https://culs-racing.czu.cz/wp-content/uploads/2022/03/click-icon-partners.png);
    background-size: cover;
}

/* Kontaktní sekce */

.contact-main,
.contact-sub .wp-block-column {
  background: var(--sectionWhiteBackground);
}

.contact-main iframe{
  width: 100%;
}

.contact-sub {
  margin: 2rem auto;
  max-width: 1200px;
}

.contact-sub .wp-block-column {
  margin: 1rem;
}

.wp-block-columns.contact-sub a {
    font-size: 1rem;
}

.contact-main .wp-block-column strong:first-child,
.contact-sub .wp-block-column strong:first-child{
  font-size: 1.5rem;
}

@media screen and (min-width: 1000px){
	.wp-block-column:first-child {
    	margin-left: 0;
	}
	.wp-block-column:last-child {
    	margin-right: 0;
	}
}

.contact-boxes > .wp-block-group__inner-container {
    max-width: 1125px;
}

/* Monoposty */

h1.bottom-date > strong{
  font-size: 1.5rem;
}

div.monopost {
  margin-top: 6rem;
}

div.monopost .wp-block-table {
  background: white;
  position: relative;
  top: -50px;
  left: -50px;
  box-shadow: 1px 1px 20px -3px white;
}

div.monopost .mobile-only {
  display: none;
  box-shadow: 3px 2px 10px -3px white;
}

@media screen and (max-width: 1020px) {
  div.monopost .mobile-only {
    display: block;
  }
}

@media screen and (max-width: 1130px) {
  div.monopost .wp-block-table {
    position: static;
  }
}

div.monopost .wp-block-table table td{
  padding: 1rem;
}


/* BLOG - archiv*/

.blog-posts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
}

@media screen and (min-width: 1830px) {
  .blog-posts {
    justify-content: flex-start;
  }
}

.blog-posts > .post {
  position: relative;
  background: var(--sectionWhiteBackground);
  max-width: 30rem;
  padding: 1rem 1rem 4rem;
  margin: 3rem;
}

@media screen and (max-width: 425px) {
  .blog-posts > .post {
    margin: 1rem;
  }
}

.blog-posts > .post > img {
  position: relative;
  top: -1rem;
  left: -1rem;
  width: calc(100% + 2rem);
  max-width: unset;
  height: 16rem;
  object-fit: cover;
}

.blog-posts > .post .title > a{
  color: black;
  font-size: 1.5rem;
}

.blog-posts a.more-link {
  position: absolute;
  bottom: 0;
  display: inline-block;
  padding: 1rem;
  margin: 1rem 0;
  background: white;
  border: 2px solid var(--highlight-color);
  box-shadow: 1px 1px 4px 0 var(--highlight-color);
}

/* News feed HomePage */

.blog-posts--homepage {
    max-width: 900px;
	margin: 0 auto;
}

.blog-posts--homepage > li {
	background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.blog-posts--homepage > li > *:not(div){
	margin: 1rem;
	display: block;
}

/* paginace */
.navigation.pagination .nav-links {
  text-align: center;
    padding: 1rem;
    background: linear-gradient(45deg, var(--highlight-color), transparent);
}

.navigation.pagination .nav-links .page-numbers {
    color: white;
    margin: 0 1rem 0 0;
    font-size: 1.2rem;
}

/* BLOG - single */

article.blog-article {
  max-width: 1000px;
  margin: 0 auto;
  background: white;
}

article.blog-article .thumbnail-title {
  height: 20rem;
  background-position: center;
  background-size: cover;
}

article.blog-article .thumbnail-title h1 {
  position: relative;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  max-inline-size: 600px;
  font-size: 2.5rem;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--sectionWhiteBackground);
}

.date-comments {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-evenly;
  padding: 1rem;
}

/* popisek obrázku */

article.blog-article figcaption {
  margin: 1rem;
  text-align: center;
}

/* Audio přehrávač */

.wp-block-audio {
    margin: 1rem;
}

/* Zobrazení komentářů */

article.blog-article h3.comment-reply-title,
article.blog-article h3#comments{
  padding: 3rem 1rem 0;
  text-align: center;
  font-size: 1.5rem;
}

article.blog-article .comment-form textarea#comment,
article.blog-article .comment-form input {
  max-width: 100%;
}

.comment-respond {
  text-align: center;
}

p.form-submit > input#submit {
  padding: 1rem;
  background: white;
  box-shadow: 1px 1px;
  cursor: pointer;
}

article.blog-article .commentlist .comment-body {
    margin: 2rem 0;
}

/* Patička */

footer {
  color: white;
  text-align: center;
  background: #1c1c1c;;
  padding: 0.5rem;
}

footer > a:not(last-child) {
  text-decoration: none;
}

footer > a > img {
  height: 1.6rem;
  margin: 0.5rem;
  padding: 1rem;
  box-shadow: 6px 6px 9px #000000a3, -6px -6px 9px #ffffff26, inset -6px -6px 9px #000000a3, inset -6px -6px 9px #ffffff26;
  transition: 300ms ease-out;
}

footer > a > img:hover {
  box-shadow: 0px 0px 9px #000000a3, 0px 0px 9px #ffffff26, inset 6px 6px 9px #000000a3, inset -6px -6px 9px #ffffff26;
}

/* Form na heslo na stránku */

form.post-password-form {
 background: #fff;
 max-inline-size: 41rem;
 text-align: center;
 margin: 3rem auto;
}

/* Audio */

audio{
	filter: invert(1);
	border: solid 5px #00afff;
    border-radius: 2em;
}

/* Progress bar čtení článku */

.article-progress-bar {
  display: none;
  position: fixed;
  bottom: 0;
  z-index: 1;	
  width: 100%;
  height: 1rem;
  background: var(--navBackground);
}

.article-progress-bar > div {
  background: var(--highlight-color);
  height: 100%;
  z-index: 2;
}



