/*
Theme Name: wpvc
Theme URI: http://tidythemes.com/blankslate/
Description: Based on blankslate 2023
Author: Geoff Dawson and TidyThemes
License: GNU General Public License | This theme is completely free and open source to use as you like for both personal and commercial projects without any limitations.

Default CSS
*/
*
{
    box-sizing: border-box;
}
BODY 
{
    line-height: 1.2;
    padding: 0;
    border: 0;
    margin: 0;
    /*Prevent IPhone from automatically scaling up the content font*/
    -webkit-text-size-adjust: 100%; 
}
TABLE 
{
    border-collapse: collapse;
    border-spacing: 0;
}
.clear 
{
    clear: both;
}
.hidden
{
    display: none;
}
/* Theme specific CSS */
:root
{
    --default-text: #666666;
    --link: #5D5C5C;
    /*--header-bg: #c0d7fb;*/
    --header-bg: #87CEFA;
    --header-border: #625E5E;
    --header: #1b2d71;
    --menu-text: #1b2d71;
    --current-menu-text: #3e5dd2;
    --mob-top-border: #393939;
    --mob-bottom-border: #636363;
    --mob-text: #838383;
    --main-bg: #f7f7f7;
    --input-bg: #FFFFFF;
    --input-border: #8c8f94;
    --button-bg: #555555;
    --button-border: #305448;
    --button-text: #FFFFFF;
    --footer-border: #B1B1B1;
    --footer-bg: #1b2d71;
    --footer-text: #FFFFFF;

    --speed: 0.5s;
}

/* rock-salt-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Rock Salt';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/rock-salt-v18-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('fonts/rock-salt-v18-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/rock-salt-v18-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/rock-salt-v18-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/rock-salt-v18-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/rock-salt-v18-latin-regular.svg#RockSalt') format('svg'); /* Legacy iOS */
}
/* caveat-regular - latin */
@font-face {
  font-display: swap; /* Check https://developer.mozilla.org/en-US/docs/Web/CSS/@font-face/font-display for other options. */
  font-family: 'Caveat';
  font-style: normal;
  font-weight: 400;
  src: url('fonts/caveat-v17-latin-regular.eot'); /* IE9 Compat Modes */
  src: url('fonts/caveat-v17-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
       url('fonts/caveat-v17-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
       url('fonts/caveat-v17-latin-regular.woff') format('woff'), /* Modern Browsers */
       url('fonts/caveat-v17-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
       url('fonts/caveat-v17-latin-regular.svg#Caveat') format('svg'); /* Legacy iOS */
}


/* Float the footer to the bottom of the screen
    Needs a structure of 
    <body>
        <div id="wrapper"></div>
        <div id="footer"></div>
    </body>

*/
BODY
{
    background-color: var(--main-bg);
    color: var(--default-text);
    
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}
HTML
{
    font-family: Verdana, Helvetica, sans-serif;
    color: var(--default-text);
}
#wrapper
{
    flex-grow: 1;
    padding-bottom: 20px;
}

P
{
    line-height: 1.3;
    font-size: 0.9em;
}
UL
{
    margin: 0;
    padding: 0;
    font-size: 0.9em;
    list-style-position: inside;
    line-height: 1.8;
}
ul ul
{
    padding-inline-start: 40px;
}
A
{
    color: var(--link);
}
IMG
{
    max-width: 100%;
    height: auto;
}
h1, h2
{
    font-family: "Rock Salt", sans-serif;
}
h3, h4, h5, h6
{
    font-family: Caveat, sans-serif;
    margin: 8px 0;
}
h3
{
    font-size: 200%;
}
h4
{
    font-size: 160%;
}
h5
{
    font-size: 120%;
}
H1, H2, H3, H4, h5
{
    color: var(--header);
}
/* Ensure it is only applied to the first occurance */
#wrapper > HEADER
{
    background-color: var(--header-bg);
    border-bottom: 1px solid var(--header-border);
}
#header
{
    width: 90%;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    padding-bottom: 14px;
    padding-top: 14px;
}
/* 
    Menu entries 
*/

#navigation-wrapper
{
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
#top-navigation ul
{
    display: flex;
    justify-content: flex-end;
    line-height: normal;
}
#top-navigation li
{
    list-style: none;
    text-align: center;
    padding: 0 10px;
}
#top-navigation a
{
    text-decoration: none;
}
#top-navigation .tn-wrapper
{
    display: flex;
    justify-content: center;
}
#top-navigation img
{
    width: 29px;
}
#top-navigation .tn-label
{
    display: block;
    font-size: 0.7em;
}
#navigation
{
    font-size: 0.9em;
}
#navigation.hidenav
{
    position: absolute;
    left: -2000px;
}
#navigation NAV
{
    display: flex;
    justify-content: flex-end; 
}
UL.menu, .menu UL
{
    list-style: none;
    margin: 0;
    padding: 0;
}
.menu LI.current_page_item A
{
    color: var(--current-menu-text);
}
.menu li
{
    /* Needs to be relative so that sub-menu can be absolute*/
    position: relative;
}
.menu A
{
    text-decoration: none;
    color: var(--menu-text);
    padding: 5px 10px;
    display: block;
    line-height: 20px;
    
}
.menu A:hover
{
    color: var(--current-menu-text);
}
#menutoggle
{
    background-image: url(images/menu.png);
    height: 24px;
    width: 24px;
    cursor: pointer;
    flex-shrink: 0;
    display: none;
}
#full-menu-content
{
    display: flex;
    flex-wrap: wrap;
}
.sub-menu
{
    text-align: left;
    position: absolute;
    top: 24px;
    left: 0;
    white-space: nowrap;
}
.sub-menu .sub-menu
{
    position: relative;
    top: auto;
}
.open .sub-menu
{
    display: block;
}
.menu SPAN.menuarrow
{
    position: relative;
    top: -1px;
    border-style: solid dashed dashed;
    border-color: transparent;
    border-top-color: var(--menu-text);
    display: inline-block;
    border-width: 7px 5px 0;
    padding-top: 1px;
    left: 4px;
    margin-right: 10px;
}
.menu .sub-menu
{
    background-color: var(--header-bg);
    padding-top: 6px;
    z-index: 999;
    /*height: 0;*/
    /*overflow: hidden;*/
    display: none;
    transition: all var(--speed) ease;
}
.menu .sub-menu .sub-menu
{
    padding-top: 0;
    padding-left: 20px;
}
.menu li.open > .sub-menu
{
    display: block;
}
#mob-menu
{
    height: 0;
    overflow: hidden;
    transition: all var(--speed) ease;
    font-size: 0.9em;
}
#mob-menu.rm-mobexpand
{
    height: auto;
}
#mob-menu LI
{
    border-top: 1px solid var(--mob-top-border);
    /*border-bottom: 1px solid var(--mob-bottom-border);*/
}
#mob-menu-content
{
    border-bottom: 1px solid var(--mob-bottom-border);
}
#mob-menu A
{
    color: var(--mob-text);
}
#mob-menu SPAN.menuarrow
{
    border-top-color: var(--mob-text);
}
#mob-menu .sub-menu
{
    background-color: var(--main-bg);
}
#mob-menu .sub-menu
{
    padding-top: 0;
    position: relative;
    top: 0;
    margin-top: 0;
}
#mob-menu .sub-menu .sub-menu a
{
    padding-left: 20px;
}
#mob-menu .sub-menu A
{
    margin-left: 25px;
}
#navigation.rm-mob #menutoggle
{
    display: block;
}
#navigation.rm-mob #full-menu
{
    display: none;
}

#container
{
    width: 90%;
    margin: 3vw auto 0 auto;
    max-width: 960px;
}
#footer-wrapper
{
    border-top: 1px solid var(--footer-border);
    background-color: var(--footer-bg);
}
#footer
{
    width: 90%;
    margin: 0 auto;
    color: var(--footer-text);
}
#footer-left{
    float: left;
    display: flex;
    margin-top: 5px;
}
#footer-sm
{
    margin-right: 10px;
    margin-top: 5px;
}
#footer-widget
{
}
#menu-footer li:not(:last-child) a:after
{
    content: '|';
    padding-left: 10px;
}
#footer-widget LI
{
    list-style: none;
}
#footer-widget P
{
    margin: 2px 0 0;
    padding: 0;
}
#footer-widget .menu,
#footer-widget .menu li
{
    display: inline-block;
}
#footer-widget .menu a
{
    color: var(--footer-text);
    font-size: 0.9em;
    padding-left: 10px;
    padding-right: 0;
}
#footer-right
{
    float: right;
}
#footer-content
{
    margin-top: 7px;
    margin-bottom: 10px;
    font-size: 0.8em;
}
#copyright
{
    line-height: 1.8;
}
@media only screen and (max-width: 800px)
{
    #footer
    {
        text-align: center;
    }
    #footer-left
    {
        float: none;
        justify-content: center;
    }
    #footer-right
    {
        float: none;
        /*font-size: 0.7em;*/
    }
}
@media only screen and (max-width: 540px)
{
    #footer-left
    {
        display: block;
    }
    #footer-widget .menu,
    #footer-widget .menu li
    {
        display: block;
    }

    #menu-footer li:not(:last-child) a:after
    {
        content: '';
        padding-left: 10px;
    }
    #footer-sm
    {
        position: absolute;
    }
    #footer-widget
    {
        text-align: left;
        display: flex;
        justify-content: center;
    }
    #menu-footer a
    {
        padding-top: 3px;
        padding-bottom: 3px;
    }
}
.wp-block-gallery.has-nested-images.trade-images figure.wp-block-image img
{
    width: fit-content;
}
@media only screen and (max-width: 480px) {
    div.wp-block-buttons > .wp-block-button.wp-block-button__width-25
    {
        width: auto;
    }
}

/* Formatting for Boats page */
.image-group .wp-block-group__inner-container
{
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    justify-items: center;
    gap: 10px 10px;
    text-align: center;
}
.image-group .wp-block-group__inner-container figcaption
{
    font-size: 0.8em;
    color: var(--header);
}
@media only screen and (max-width: 460px) {
    .image-group .wp-block-group__inner-container
    {
        grid-template-columns: 1fr 1fr;
    }
}
/* Formatting for Contact page */
@media only screen and (max-width: 500px) {
    body.contact .wp-block-image .alignleft,
    body.contact .wp-block-image .alignright
    {
        float: none;
        display: table;
        margin-left: auto;
        margin-right: auto;
    }
    body.contact .wp-block-image img
    {
        width: auto !important;
    }
}
/* Formatting for Greenland Paddles page */
@media only screen and (min-width: 500px) {
    body.greenland-paddles figure.is-type-video
    {
        max-width: 50%;
    }
}
/* Formatting for lists */
.list-bullet-dash
{
    list-style-type: "- ";
}
.list-indent
{
    padding-left: 10px;
}
ul.list-item-collapse
{
    line-height: 1.3em;
}
ul.list-item-collapse > *:not(:last-child)
{
    padding-bottom: 0.3em;
}

