/*
 Theme Name:   Rapid Racing
 Description:  Custom theme
 Author:       Carnoustie Creative
 Author URI:   https://www.carnoustiecreative.co.uk
 Template:     baseline
 Version:      1.0.3
 License:      GNU General Public License v2 or later
 License URI:  http://www.gnu.org/licenses/gpl-2.0.html
 Text Domain:  baseline-child


font-family: "neo-sans", sans-serif;
font-weight: 400;
font-style: normal;

font-family: "neo-sans", sans-serif;
font-weight: 400;
font-style: italic;

font-family: "neo-sans", sans-serif;
font-weight: 700;
font-style: normal;

.mr-dafoe-regular {
  font-family: "Mr Dafoe", cursive;
  font-weight: 400;
  font-style: normal;
}

*/

@font-face {
    font-family: 'Mr Dafoe';
    src: url('mr-dafoe-normal-400.woff2') format('woff2'),  /* modern browsers */         
         url('MrDafoe-Regular.ttf') format('truetype'); /* legacy fallback */
    font-weight: normal;
    font-style: normal;
    font-display: swap; /* prevents FOIT (flash of invisible text) */
  }

:root {
    --rr-sail-blue: #B8E1F6;
    --rr-pale-mint: #DDF4D6;
    --rr-radius: 2rem;
}

.baseline {
    --baseline-aos-distance: 20px;
    --baseline-aos-distance-negative: -20px;
}

body.baseline {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    line-height: 1.6;
    font-family: "neo-sans", sans-serif;
    font-weight: 400;
    font-style: normal;
    font-size: clamp(1.6rem, 2vw, 1.8rem);
    background: linear-gradient(180deg, #000000 0%, #95B2C0 100%);
}

.baseline .header-wrap {
    background: transparent;
    border-bottom: none;
}

.header-wrap .container,
#footer-bottom-container.container {
    max-width: 94%;
    width: 94%;
}

.baseline h1 {
    font-family: "Mr Dafoe", cursive;
    font-size: clamp(4.5rem, 5.6vw, 9rem);
}

.baseline h2,
.baseline h3,
.baseline h4,
.baseline h5 {
    font-weight: 700;
}

.cde-text-header .container,
.cde-image-header {
    position: relative;    
    min-height: 22rem;
    max-height: 40rem;
    height: 30vw;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;    
    border-radius: var(--rr-radius);
    border: 0.3rem
    solid var(--rr-pale-mint);
}

.cde-text-header .container {
    background-image: url('default-bgnd.jpg');
    background-size: cover;
    background-position: center bottom;
    padding: 4rem;
}

.cde-image-header .wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.cde-image-header .img {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    background-size: cover;
    border-radius: var(--rr-radius);    
}

.cde-image-header .inner {
    position: relative;
    padding: 4rem;
    z-index: 2;
}

@media ( max-width: 720px ) {

    .cde-text-header .container,
    .cde-image-header .inner {
        padding: 2.5rem;
    }

    .baseline .flex-elm.cde-image-header .wrapper {
        margin-top: 0;
        margin-bottom: 0;
    }

}

.cde-text-header .container:after,
.cde-image-header .img:after {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,.7);    
    background-blend-mode: multiply;
    border-radius: var(--rr-radius);
}

.cde-image-header .img:after {
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0) 100%);
}

.baseline h1:last-child {
    margin-bottom: 0;
}

.cde-text-header .inner {
    position: relative;
    z-index: 4;
}

#canvas {
    position: relative;
    z-index: 1;
}

#canvas:after {
    content: "";
    width: 40rem;
    height: 38rem;
    position: absolute;
    z-index: -1;
    background-image: url('corner-flag.svg');
    background-size: contain;
    background-position: left top;
    background-repeat: no-repeat;
    pointer-events: none;
}

.baseline .menu-bar .menu-label {
    color: var(--rr-sail-blue);
}

.baseline #burger-button {
    top: -0.5rem;
    left: -0.5rem;
    position: relative;
}

@media ( max-width: 720px ) {

    #canvas:after {
        width: 20rem;
        height: 19rem;
    }

}

.logotitle .logo {
    position: relative;
    z-index: 2;
}

header .menu-main-container {
    background-color: var(--rr-pale-mint);
    padding: 3rem;
    border-top-left-radius: var(--rr-radius);
    border-bottom-right-radius: var(--rr-radius);
}

header .second {
    top: 2rem;
    display: flex;
    flex-direction: column ;
    justify-content: center;
}

header .widget_nav_menu .current-menu-item a {
    font-weight: 700;
}

.baseline header .menu,
.baseline footer .menu {
    display: flex;
    flex-direction: row;    
    justify-content: space-around;
}

@media ( max-width: 720px ) {

    .baseline footer .menu {
        display: block;        
    }

    .baseline footer .widget-area .menu li {
        display: block;
        margin: 2rem 0;
    }

}

.baseline footer .menu {
    padding: 0 4rem;
}

.baseline footer {
    position: relative;
    padding-top: 8rem;
}

.baseline footer:before {
    content: "";
    position: absolute;
    height: 5rem;
    width: 100%;
    display: block;
    background-size: contain;
    left: 0;
    top: 0;
    background-repeat: repeat-x;
    background-image: url('footer-flag.svg');    
}

.school-link {
    padding-top: 2em;
    border-top: 0.1rem solid var(--rr-sail-blue);
    margin-top: 2rem;
    text-align: center;
}

.baseline .mobile-nav {
    background: transparent;
}

.baseline .mobile-nav .custom-logo {
    height: 8rem;
}

.flex-elm .before {
    margin-bottom: 3rem;
}

.container .has-bgcolor {
    border-top-left-radius: var(--rr-radius);
    border-bottom-right-radius: var(--rr-radius);
}

.item-icon i {
    font-size: clamp(4rem, 4vw, 7rem);
}

.cde-grid-item-inner > *,
.cde-grid-item-inner a > * {
    margin-bottom: 1.5rem;
}

.cde-grid-item-inner > *:last-child {
    margin-bottom: 0;
}

.baseline p:last-child {
    margin-bottom: 0;
}

.baseline .flex-elm.first {
    margin-top: 2rem;
}

.baseline .cde-tabs .tabs {
    background: unset;
}

.cde-tabs .panel {
    color: #000;
}

.baseline .item-label {
    font-weight: 700;
    font-size: clamp(1.9rem, 1.8vw, 2.5rem);
}

.person_title {
    text-transform: uppercase;
    font-size: clamp(1.2rem, 1.9vw, 1.5rem);
    letter-spacing: 0.05rem;
}

#sponsors > * {
    text-align: center;
}

#sponsors .item-image {
    padding: 0 5vw 0 5vw;
}

.baseline .widget a {
    line-height: unset;
}

.people {
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-column-gap: 4rem;
}

@media ( max-width: 720px ) {

    .people {
        grid-template-columns: 1fr;
    }

}

.person * {
    text-align: center;
}

.person_name h3 {
    color: #000;
}

.person_data {
    color: #000;
    background-color: var(--rr-sail-blue);
    padding: 4rem 2rem 2rem 2rem;
    margin-top: -3rem;
    border-top-left-radius: var(--rr-radius);
    border-bottom-right-radius: var(--rr-radius);
}

.person_photo {
    text-align: center;
}

.person_photo img {
    border-radius: 50%;
    width: 70%;
    aspect-ratio: 1/1;
}

.person_bio {
    margin-top: 1rem;
}