/*
Theme Name:   SV Het Spaarne
Theme URI:    https://voorbeeld.nl/svhetspaarne
Author:       Paul M
Description:  WordPress theme voor SV Het Spaarne
Version:      1.1
*/

/* Basisstijlen */
html{
	font-size:  18px;
}
body {
    font-family: 'Georgia', 'Times New Roman', serif;
    line-height: 1.5;
    color: #2c3e50;
    margin: 0;
    padding: 0;
    padding-top: 10px;
    color: #333;
    background: #333;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
font-family: 'Garamont', 'Georgia', serif;
font-weight: 500;
letter-spacing: -0.02em; /* iets strakker */
}

h1 { font-size: 1.5rem; }    
h2 { font-size: 1.25rem; }
h3 { font-size: 1.00rem; }
h4 { font-size: 0.90rem; }
h5 { font-size: 0.80rem; }
h6 { font-size: 0.70rem; }


/*.site-content */ 
a { 
  color: #461B7E; 
text-decoration: none;
}
a:hover {
text-decoration: underline;
}

/* Maximale breedte voor de hele site */
.site-header,
.site-content {
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    background: #fff;
    box-sizing: border-box;
}

.site-content {
    padding: 0px 20px;
}

/* Header stijlen */
.site-header img {
	/* Bij margin != 0 juiste breedte berekenen  */
    width: calc(100% - 0px);
    height: auto;
    display: block;
    margin: 0px;
    border: 5px solid #fff;
    box-sizing: border-box;
}

/* Header stijlen */
.site-header img {
    width: 100%;
    height: auto;
    display: block;
}

/* Menu stijlen */
.main-navigation {
    display: flex;
    align-items: center;
    background-color: #3F1F6A;
    padding: 5px 0;
    flex-wrap: wrap;
    position: relative;
    justify-content: space-between;
    margin: auto;
    width: 99%;
}

.main-navigation  {
  border-radius: 5px; /* kan problemen geven met knopbreedte icm flexbox? */
  box-shadow: 0 0 5px 5px rgba(63, 31, 106, 0.3) ;
/*  
  padding-bottom: 6px;
  padding-top: 6px;
*/
}

/* Menu items */
.main-navigation ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-grow: 1;
    order: 2;
}

.main-navigation li {
    margin: 0 0px;
    position: relative;

}

.main-navigation a {
	font-family: 'Helvetica', 'Arial', sans-serif;
	font-size: 0.9rem;
/*	font-size: 18px; */
	letter-spacing: 0.03rem;
	text-decoration: none;
    color: white;
    padding: 5px 10px;
    display: block;
    height: 100%
}

.main-navigation a:hover {
    color: #ffd700;
/* 
    transition: all 0.2s ease;
*/
}

/* Submenu dropdowns */
.main-navigation ul ul {
    display: none;
    position: absolute;
    padding: 10px;
    text-align: left;
    width: 300px;
    left: 0;
    top: 100%;
    margin-top: 4px;
    box-shadow: 0 0 5px 5px rgba(63, 31, 106, 0.3);
    z-index: 10; /* vereist position attribute relative/absolute/fixed/sticky */
    background-color: rgba(63, 31, 106, 0.9); /* rgb(63, 31, 106) = #3F1F6A */
    border-radius: 0 0 10px 10px;
}


.main-navigation ul li:hover > ul {
    display: block;
}

/* Hamburgermenu */
.menu-toggle {
    display: none;
    background: #333;
    color: #fff;
    padding: 10px 15px;
    cursor: pointer;
    text-align: center;
    order: 1;
}

/* Responsive */
@media (max-width: 768px) {
    .menu-toggle {
        display: block;
        order: 1;
    }

    .main-navigation {
        flex-wrap: wrap;
        justify-content: space-between;
    }

    .main-navigation ul {
        display: none;
        flex-direction: column;
        text-align: left;
        flex-basis: 100%;
        order: 2;
    }

    .main-navigation ul.active {
        display: block;
    }

    .main-navigation ul ul {
        display: none;
        position: static;
        width: 85%;
        padding-left: 20px;
        border: none;
        box-shadow: none;
        margin-top: 0px; /* herstel margin */
    }

    .main-navigation ul li.active > ul {
        display: block;
    }

    .search-container {
        order: 3;
        margin-left: auto;
        width: auto;
    }

    .search-popup {
        right: 0px;
        left: auto;
        position: absolute;
    }
    
    .main-navigation li li {
		background-color: rgba(63, 31, 106, 1); /* rgb(63, 31, 106) = #3F1F6A */
		background-color: color-mix(in oklch, rgb(63, 31, 106), white 10%);
	}
}



/* Main content en sidebar */
.site-content {
    display: flex;
    flex-wrap: nowrap;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    overflow: hidden;
}

.content-area {
    flex: 1 1 auto;
    min-width: 0;
    padding: 20px;
    overflow-x: auto;
}

.widget-area {
    flex: 0 0 300px;
    padding: 20px;
    margin-left: 20px;
}

@media (max-width: 768px) {
    .site-content {
        flex-wrap: wrap;
    }

    .content-area {
        width: 100%;
        overflow-x: auto;
    }

    .widget-area {
        width: 100%;
        margin-left: 0;
    }
}

/* Zoekcontainer en icoon */
.search-container {
    position: relative;
    order: 3;
    margin-left: auto;
}

.search-icon {
    display: inline-block;
    padding: 10px 15px;
    color: #fff;
    background: transparent;
    cursor: pointer;
    border-radius: 3px;
    font-size: 22px;
    line-height: 1;
}

/* Popup zoekveld */
.search-popup {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    color: #461B7E;
    background: #fff;
    opacity: 0.9;
    padding: 15px;
    z-index: 100;
    width: 335px;
    border-radius: 3px;
}

/* input zoek popup */
.search-popup input {
	padding: 5px;
    border-radius: 5px; /* kan problemen geven met knopbreedte icm flexbox? */
    box-shadow: 0 0 2px 2px rgba(0,0,0, 0.1);
    transition: box-shadow 0.3s ease; /* Zorgt voor een soepele overgang */
}

.search-popup input:hover {
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3);
    transition: box-shadow 0.3s ease; /* Zorgt voor een soepele overgang */
}


.search-popup.active {
    display: block;
}

/* Berichten samenvattingen */
.entry-summary {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.entry-meta, .post-navigation {
    background-color: #f8f8f8;
    padding: 10px;
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 10px;
}

/* BOF user buttons */
/* Paginering knoppen */
.pagination, .user-buttons {
    text-align: center;
    margin: 10px;
}


.searchform input[type='submit'],
.search-popup input[type='submit'],
.pagination a, .user-buttons a, .form-submit input, .iframe-nav button {
    padding: 8px 16px;
    margin: 5px 5px;
    width: 10em;
	background-color: #E5CE7F; /* probeer: #846D1F #84552B; #78631A; #B59E50; #3F1F6A;#B59E50 */
    color: #461B7E; /* dark-gray */
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 0.7rem;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px; /* kan problemen geven met knopbreedte icm flexbox? */
    box-shadow: 0 0 4px 2px rgba(0,0,0, 0.2);
    transition: box-shadow 0.3s ease; /* Zorgt voor een soepele overgang */
/* display: block; */
    border: 1px solid #ddd;
}

.searchform input[type='submit']:hover,
.search-popup input[type='submit']:hover,
.pagination a:hover, .user-buttons a:hover, .form-submit input:hover, .iframe-nav button:hover  {
    color: #6A0DAD; /* #ffd700 */
    text-decoration: none;
    /* box-shadow: 0 0 6px 2px rgba(106, 13, 173, 0.5); */ /* met 50% transparantie */
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.4); /* met 40% transparantie */
}
/* EOF user buttons */

/* stijlen tbv knoppen en iframes interne uitslagen */
.iframe-container {
    margin: 10px auto;
    max-width: 100%;
}
.iframe-nav {
    margin-bottom: 5px;
    text-align: center;
}
.iframe-nav button {
    padding: 2px 4px;
    margin: 5px 4px 5px 4px;
    cursor: pointer;
}
.iframe-nav button:disabled {
    cursor: not-allowed;
    opacity: 0.5;
}
.responsive-iframe {
    width: 100%;
    //height: 400px;
    border: 3px solid #ddd;
}

/* BOF Categories dropdown */
.wp-block-categories-dropdown select {
  width: 100%;
  background-color: white;
  border: 1px solid rgba(0,0,0, 0.2);
  border-radius: 4px;
  box-shadow: 0 0 4px 2px rgba(0,0,0, 0.2);
  transition: box-shadow 0.3s ease; /* Zorgt voor een soepele overgang */  
  padding: 6px;
}
.wp-block-categories-dropdown select:hover {
    box-shadow: 0 0 4px 2px rgba(0, 0, 0, 0.3); /* met 40% transparantie */
}
/* EOF Categories dropdown */

/* In conjuction with Seconday Title addon */
/* <h1 class="header-post-title-class">Een soort van gelijkspelen. <span class="secondary-title"> */

.secondary-title {
/*font-size: 14px;*/
font-size: 1rem;
color: gray; 
text-indent: 5px;
display: block;
}

/* horizontaal scrollen voor brede uitslagen tabel (o.a. Serious Request tabel) */
.scrolling-wrapper {
    overflow-x: scroll; /* Horizontale scrollbar */
}

/* box opmaak reacties en zo */
.wp-block-latest-comments{
  padding: 5px;
}

.wp-block-latest-comments li, .comment-list .comment-body, .post-navigation, .entry-meta, ul.wp-block-latest-posts li {
  border: 1px dotted #777;
  border-radius: 5px;
  background: #f8f8f8;
}
ul.wp-block-latest-posts li {
  margin: 10px 0;
  padding: 10px;
}
.wp-block-latest-comments li {
  padding: 5px 12px;
}
.comment-list .comment-body {
  padding: 10px;
  margin: 15px;
}

/* Agenda Clubavonden intern/agenda-clubavonden/ */
#post-94 p {
  background: #f8f8f8;
  padding: 5px;
  border: 1px dotted #555;
  border-radius: 5px;
}

/* gradient op menubalk */
.main-navigation {
    background: linear-gradient(to bottom, #5D3E89, #2B0C56, #5D3E89);
    position: relative;
}

/* BOF Tijdelijke fixes tbv theme migratie */
.default-sidebar .widget_search {
  display: none;
}
.widget-area .widget_search {
  display: none;
}
/* EOF Tijdelijke fixes tbv theme migratie */


/* tekst boven header */
/*
div .small-info-text {
  margin: auto;
  width: 100%;
  text-align: center;
  font-size: 0.9em;
}
*/

/* ChessTempo puzzel */
#puzzle-container form button
 {
    padding: 5px;
    margin: 3px;
	  background-color: #E5CE7F; /* probeer: #846D1F #84552B; #78631A; #B59E50; #3F1F6A;#B59E50 */
    color: #461B7E; /* dark-gray */
    font-family: 'Helvetica', 'Arial', sans-serif;
    font-size: 10px;
    font-weight: bold;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 0 4px 2px rgba(0,0,0, 0.2);
    transition: box-shadow 0.3s ease; /* Zorgt voor een soepele overgang */
/* display: block; */
/*    border: 1px solid #ddd; */
}
#puzzle-container {
 white-space: nowrap
  max-width: 200px;
  padding 0;
  display: block;
  overflow: hidden;
  float: right;
}
.ct-nav-buttons{
  display: none;
}
#ct-link{
  font-size: smaller;
  display: block;
  text-align: center;
}
#puzzle-container form {
text-align: center;
}
#puzzle-puzzleHelp {
  display: none;
}
/
/* zorg dat popup niet verdwaald */
#puzzle-container form {
  position: relative;
}
/* bord kleuren gelijk aan RPB Chess board */
.ct-black-square-brown {
  background:#b5876b !important;
}
.ct-white-square-brown {
  background: #f0dec7 !important;
}
