/*
Theme Name: Spansklararforeningen
Theme URI: 
Author: SupportKompaniet i Väst
Author URI: https:/www.suuportkompaniet.se
Description: 
Requires at least: 5.8
Tested up to: 5.9
Requires PHP: 5.7
Version: 0.0.1
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Template: frost
Text Domain: spansklararforeningen
Tags: one-column, wide-blocks, accessibility-ready, block-patterns, block-styles, custom-colors, custom-logo, custom-menu, editor-style, full-site-editing, template-editing, threaded-comments, translation-ready
*/

/* Color Theme Swatches in Hex */
.spanien-balkon-1-hex { color: #5A86BF; }
.spanien-balkon-2-hex { color: #698EBF; }
.spanien-balkon-3-hex { color: #96B9D9; }
.spanien-balkon-4-hex { color: #F2E0BD; }
.spanien-balkon-5-hex { color: #593E2E; }

/* Color Theme Swatches in RGBA */
.spanien-balkon-1-rgba { color: rgba(89, 133, 191, 1); }
.spanien-balkon-2-rgba { color: rgba(105, 142, 191, 1); }
.spanien-balkon-3-rgba { color: rgba(149, 184, 216, 1); }
.spanien-balkon-4-rgba { color: rgba(242, 223, 188, 1); }
.spanien-balkon-5-rgba { color: rgba(89, 61, 45, 1); }

/* Color Theme Swatches in HSLA */
.spanien-balkon-1-hsla { color: hsla(0, 44, 55, 1); }
.spanien-balkon-2-hsla { color: hsla(0, 40, 58, 1); }
.spanien-balkon-3-hsla { color: hsla(0, 46, 71, 1); }
.spanien-balkon-4-hsla { color: hsla(0, 67, 84, 1); }
.spanien-balkon-5-hsla { color: hsla(0, 31, 26, 1); }

/* Main Layout
--------------------------------------------- */

/* Remove default BlockGap */
.entry-content > .wp-block-cover, .entry-content > .wp-block-group {
    margin-top: 0px !important;
}

/*
.entry-content > .wp-block-cover {
    min-height: 500px !important;
}

@media only screen and (max-width: 800px) {
    .entry-content > .wp-block-cover {
        min-height: 300px !important;
    }
}
*/

/* CTA Design
--------------------------------------------- */

.spanien-text-shadow {
    text-shadow: 2px 2px 5px #000000;
}

.spanien-box-shadow {
    box-shadow: 2px 2px 5px #e1e1e1;
}

.spanien-box-shadow-dark {
    box-shadow: 2px 2px 5px #2F3C40;
}

.spanien-search .wp-block-search__input {
    padding: 0px 20px;
}

.spanien-image img{
    border-radius: 5px;
    width: 50%;
    height: 75px;
    object-fit: cover;
} 
.spanien-image-kategori img{
    border-radius: 5px;
    width: 100px;
    height: 75px;
    object-fit: cover;
} 


/*https://developer.mozilla.org/en-US/docs/Web/CSS/:nth-child
"2n+1" kan också skrivas "odd" (eller för den delen "even")

Den som Jon och jag skrev

.spanien-nicebg li:nth-child(2n+1){
    background-color: #eee !important;
    border-radius: 5px;
    
}
*/

/* Mobile Navigation
--------------------------------------------- */
.wp-block-navigation__responsive-container.is-menu-open {
    background-color: #04305Bcc !important;
    color: #000;
    padding: 50px 20px;
    font-size: var(--wp--preset--font-size--medium);
    font-weight: 600;
}

.wp-block-navigation__responsive-container.is-menu-open .wp-block-navigation__responsive-container-content {
    background-color: #ffffff;
    padding: 20px;
    border-radius: 10px;
}

.wp-block-navigation__responsive-container-close {
    top: 10px;
    right: 10px;
}

/* Links
--------------------------------------------- */

a {
    text-decoration: none;
}

.spanien-link-white a, .spanien-link-white a:visited {
    color:#fff !important;
}

.spanien-link-white a:hover {
    color:#c1c1c1 !important;
}

/* XTRA
--------------------------------------------- */
.spanien-nicebg li:nth-child(odd) {
    background-color: #eee !important;
    border-radius: 5px;
    border: 1px solid lightgrey;
    box-shadow: 2px 2px 5px rgba(0,0,0, 0.5);
}

.spanien-nicebg li:nth-child(even) {
    background-color: #ddd !important;
    border-radius: 5px;
    border: 1px solid lightgrey;
    box-shadow: 2px 2px 5px rgba(0,0,0, 0.5);
}

/*
.spanien-nicebg li {
   margin-block-start: 10px !important;
}
*/

.wp-block-navigation .current-menu-item a {
    font-weight: bold;

}
@media (max-width: 800px) {
    .spanien-reverse.wp-block-columns {
        flex-direction: column-reverse;
    }
}