/*
 Theme Name: twentyseventeen-child
 Template: twentyseventeen
 Version: 1.0
 */

/*Ovanstående kommentatrer med Themes Names och Template behövs finnas med för att childtemat ska fungera ha med version kan göra det lättare att uppdatera */

/* ================ RESET =================
   From: http://meyerweb.com/eric/tools/css/reset/ 
   v2.0 | 20110126
   License: none (public domain)
*/

html, body, div, span, applet, object, iframe,
h1, h2, h3, h4, h5, h6, p, blockquote, pre,
a, abbr, acronym, address, big, cite, code,
del, dfn, em, img, ins, kbd, q, s, samp,
small, strike, strong, sub, sup, tt, var,
b, u, i, center,
dl, dt, dd, ol, ul, li,
fieldset, form, label, legend,
table, caption, tbody, tfoot, thead, tr, th, td,
article, aside, canvas, details, embed,
figure, figcaption, footer, header, hgroup,
menu, nav, output, ruby, section, summary,
time, mark, audio, video {
    font-size: 100%;
    vertical-align: baseline;
    font-family: inherit;
    color: #030303;
}
/* HTML5 display-role reset for older browsers */
article, aside, details, figcaption, figure,
footer, header, hgroup, menu, nav, section {
    display: block;
}

body {
    line-height: 1;
    font-family: helvetica, arial, sans-serif;
}


/* ================ End RESET ================= */

/* ================ GENERAL SETTINGS MOBIL AND DESKTOP ================= */



 
/* Mobile-indicator is hidden except on @media only screen and (max-width: 767px) as a way for JavaScript to detect media queries */

 #mobile-indicator {
        display: none;
  }

#main h1 {
    font-size: 23px;
    font-weight: bold;
    padding: 40px 0px 0px 0px;
	color: #AD2601;
}

#main h2 {
    font-size: 19px;
    font-weight: bold;
    padding: 20px 0px 0px 0px;
	margin-top: 12px;
    margin-bottom: 12px;
}

#main h3, #page #main h3 a {
    font-size: 16px;
    font-weight: bold;
    padding: 15px 0px 0px 0px;
    margin-top: 12px;
    margin-bottom: 12px;   
    
}

/* If h3 is direct sibling to h2 */
#main h2 + h3 { 
    padding: 0px;
}

#main fieldset {
	margin-top: 28px;
}

#main legend {
    font-size: 16px;
    font-weight: bold;
}

#main p {
    font-size: 14px;
    margin-bottom: 17px;
    line-height: 20px;
    margin-top: 12px;
    margin-bottom: 12px;
}

a, a:link, a:visited, a:active {
    /*Remove theme box shadow links*/
    box-shadow: none !important;
    color: #000000;
	text-decoration: none;
}

#main a, #main a:link, #main a:visited, #main a:active {
   
    color: darkblue;
	font-size: 14px;
    margin-bottom: 17px;
    line-height: 20px; 
}

    #main a:hover {
        color: blue;
    }

  #main a:hover img {
        opacity: 0.8;     
          }

/* Avgränsar blocket */
#main hr, #main .wp-block-separator {
	margin-top: 25px;
	margin-bottom: 25px;
}

/*Lists */

#main .entry-content ul, #main .entry-content ol {
    margin-top: 12px;
	margin-bottom: 12px;
}

/*Padding header och main content*/

.site-branding .wrap, .panel-content .wrap {
    padding-right: 10px;
    padding-left: 10px;
}

.custom-logo-link:hover, .custom-logo:hover {
	opacity: 1 !important;
}

/*Mainheadern width  Header, Nav och Breadcrumbs */

.site-header {
    width: 100%;
    background-color: white;
    z-index: 500;
}

/* Hide sidetitle on pages */
.page .entry-header {
    display: none;
}

/* Feutered image */

.single-featured-image-header {
    max-width: 1200px !important;
     margin: 0px auto;
    padding: 0px 10px;
	 background-color: transparent;
}



.site-title a {
	font-weight: normal;
	text-transform: none;
	color: #AD2601 !important;
}

.home .panel-image {
	margin: 0px 10px !important;
	max-height: 400px;
   background-size: cover !important;
	
}

/* Small fix to WordPress columns */
.wp-block-column {
    margin-right: auto !important;
    margin-left: auto !important;
    padding: 3px;
    text-align: center;
}

#main .wp-block-media-text__content h1, #main .wp-block-media-text__content h2, #main .wp-block-media-text__content h3 {
	padding-top: 0px !important;
	margin-top: 0px !important;
}

/* Code needed for that footer display bottom page*/
#page {
    height: 100% !important;
}



#content {
    background-color: #fdfdfd !important;
}

/* Uppercase mainmenu */
#top-menu > li {
    text-transform: uppercase;
}


/* Footer settings */
footer {
    border-top: 1px solid #AD2601 !important;
    height: 50px;
    width: 100%;
    position: absolute;
    bottom: 0px;
    left: 0px;
    margin: 0px !important;
    padding: 0px !important;
    font-weight: bold;
    background-color: #ffffff;
}

footer .wrap {
    margin: 0px auto !important;
    padding: 0px !important;
    max-width: 1200px !important;
}

footer .widget-area {
    width: 100%;
    padding: 0px !important;
    height: 50px !important;
}

.footer-widget-1 {
    width: 100% !important;
    padding: 18px 0px 0px 0px;
    margin: 0px;
}


.widget_text, .widget_text * {
    margin: 0px !important;
    padding: 0px !important;
    height: 0px !important;
    color: #B94909;
    font-size: 12px;
    text-align: center;
}

.widget-column.footer-widget-1 a {
color: #B94909;
}

.widget-column.footer-widget-1 a, .widget-column.footer-widget-1 a:visited, .widget-column.footer-widget-1 a:hover, .widget-column.footer-widget-1 a:active {
color: #B94909;
}

/* Hide "Powered by wordpress footer */

.site-info {
    display: none;
}


/*
 Design on pages like search
*/

.specialPage article {
	padding-bottom: 5px !important;
}


/* ================ END GENENERELL SETTINGS MOBIL AND DESKTOP ================= */

/* ================ ELEMENTS SETTINGS MOBIL AND DESKTOP ================= */

/*
 Buttons
*/


#main .wp-block-button .wp-block-button__link, #main .wpforms-submit {
    background-color: #B94909;
    color: #ffffff;
    padding: 12px 20px !important;
	margin: 17px 0px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    border-radius: 5px;
    font-size: 12px;
    display: inline-block;
	
}

.wp-block-button .wp-block-button__link:hover, #main .wpforms-submit:hover {
   opacity: 0.9;
	
}

/* Header Images */


.cwHeaderImage {
	margin-top: 0px;
}



/*
    Tabels

*/

#main table {
    padding-left: 100px !important;
    border-collapse: collapse;
    border-spacing: 0;
     width: 100%; 
	word-wrap:break-word;
     table-layout: fixed;
}

#main td:first-child, #main th:first-child {
    padding-left: 10px;
}

#main table th {
    padding-bottom: 5px;
    padding-top: 2px;
    font-size: 16px;
    line-height: 22px;
    vertical-align: bottom;
    text-align: left;
    font-weight: bold;
}

#main table h3 {
    margin: 0px;
    padding: 0px;
    line-height: 0px;
    font-size: 16px;
    line-height: 20px;
}






/* ================  ELEMENTS SETTINGS MOBIL AND DESKTOP ================= */


/* ================ GENEREL SETTINGS MOBILE ================= */

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

    .site-branding {
        padding: 0px !important;
    }
    
    
    
    
    
    
    
    
    

 #mobile-indicator {
        display: block;
  }

    /* Code for footer should be position at bottom on page min-height:100% - heigh of header is just for not getting strange effects on specific heighert*/
    .site-content-contain {
        min-height: calc(100% - 102px) !important;
        position: relative;
        margin-right: auto;
        margin-left: auto;
        padding-bottom: 120px;
		background-color: #fdfdfd !important
    }

	.cwHeaderNav {
		width: 100%;
	}

    .panel-content .wrap {
        padding-top: 10px;
    }
    
  
    .site-header {
        width: 100% !important;
    }
	


    /* logo header */
    .custom-header {
        float: left;
      
        padding-top: 10px;
    }
	
	#masthead {
		border-bottom: 1px solid #AD2601; 
	height: 70px !important;
	
		
}
 
    
 .cwHeaderNav {
    height: 100px;
     position: absolute
}
	.custom-logo-link {
		z-index: 3000;
	}
		.custom-logo-link img {
	
	
	border: 4px solid white;
	border-radius: 100px;
	width: auto !important;
	max-height: 80px;

		border: 4px solid white;
	border-radius: 100px;
			
	
}

    /* Topgle knapp för mobilmenyn */
    .menu-toggle {
        margin: 35px 10px 0px 0px !important;
        padding: 0px !important;
        float: right;
    }

        .menu-toggle:focus, .menu-toggle:active, menu-toggle:focus:active {
            padding: 0px !important;
        }

    /* Make mobil menu cover entire site */
    .menu-cogwork-huvudmeny-container {
        position: absolute;
        top: 0px;
        left: 0px;
        right: 0px;
        padding: 0px !important;
    }

	
	.menu-huvudmeny-container {
		padding-top: 60px;
	}
    #top-menu {
	
        padding: 0px 0px 0px 5px !important;

 
    }


        #top-menu li {
            border-bottom: 1px solid rgb(219, 87, 10, .5);
        }

            #top-menu li a {
                line-height: 40px;
            }

        #top-menu a {
            padding-left: 5px;
        }

    .current-menu-item {
        background-color: #973C07 !important;
    }

        .current-menu-item > a {
            color: #ffffff !important;
        }
    
    .site-content-contain {
        clear: both !important;
    }    

    .custom-header .site-branding {
        margin: 0px !important;
        padding: 0px !important;
        height: 0px !important;
    }

	#site-navigation #top-menu {
		z-index: 30;
		background: white;
		padding-left: 0px;
		border-top: none;
	
	}
	
	
	#site-navigation #top-menu li {
			background: white;	
		z-index: 30;
	}
	
	
	#site-navigation #top-menu > li:hover a {		
		color: black;		
	}	
	
    #primary, #content {
         padding-top: 0px !important;
    }
    
	#content > .wrap {
		padding: 0px 10px;
		margin: 0px;
        max-width: 100%;
        width: 100%;
	}
	
	.panel-content .wrap {
		padding-top: 0px;
	}
	

    .cwSiteHeader {
        height: 150px;
    }	

   

    /* Turn of position absolute for footer on mobil */

    .post .entry-footer {
        width: 1200px;
        position: relative !important;
    }

    /* CW klasser */

    .wp-block-columns, .wp-block-nextend-smartslider3 {
        margin-bottom: 0px;
    }
}

@media only screen and (max-width: 850px) {
    
 #main .wp-block-columns.cwFirstPageColumns {
        flex-wrap: wrap !important;
    }
.cwFirstPageColumns .wp-block-column {
    flex-basis: 100% !important;
}
    
}

/* ================ END GENEREL SETTINGS MOBIL ================= */


/* ================ GENERELL SETTINGS DESKTOP ================= */




@media only screen and (min-width: 768px) {
    /*Coded needed for footer to poistion att bottom of page */

    html, body {
        height: 100% !important;
        margin: 0;
        padding: 0;
    }



    .site-header a:hover {
        color: #B94909;
        cursor: pointer;
    }

    #page {
        height: 100% !important;
    }


    .site-content-contain {
        min-height: calc(100% - 109px);
    }

    /* Header with logo, nav menu och breadcrumb menu. Set height in relation with padding cwTopNavigation to align top menu and logo */
     #masthead {
        z-index: 700;
		 /*		 height: 108px; */
		 height: 400px !important;
    }
	
	
.custom-header {
	padding: 0px;
	height: 80px;
	
}

.site-branding-text {
	padding-top: 33px !important;
}


#masthead {
		border-bottom: 1px solid #AD2601; 
	height: 102px !important;
}

.custom-header {
	
	
}




	


    /* Div with header och Nav elementet */
    .cwHeaderNav {
        position: relative;
        max-width: 1200px;
        margin-right: auto;
        margin-left: auto;
        clear: both;
    }

	
	
    /* Div elementet logo */
    .custom-header {
        float: left;
        margin: 0px;
		height: 80px !important;
        
    }   

    .site-branding {
        margin: 0px !important;
        padding: 0px !important;
        height: 0px !important;
    }

        .site-branding .wrap {
            margin: 0px !important;
            padding: 0px !important;
            height: 0px !important;
        }

    .custom-header a {
        margin: 0px;
    }

	.custom-logo-link {
		padding-right: 10px;
	}
	
	.custom-logo-link img {
	
	
	border: 4px solid white;
	border-radius: 100px;
	width: auto !important;
	max-height: 120px;

		border: 4px solid white;
	border-radius: 100px;
	
}


    /* Div header menu */
    .cwTopNavigation {
        position: relative;
        margin: 0px;
        padding-top: 62px;
        padding-right: 10px;
    }

    /*Huvudmenyn */

    #site-navigation {
        float: right;
        margin: 0px;
        padding: 0px 2px 0px 0px;
		
    }
	
	  #top-menu > li > a {
        padding: 0px;
        font-size: 14px;
    }
	
		  #top-menu > li  {
        padding: 0px 0px 0px 15px;
      
    }
    
   
    .sub-menu li {
        font-size: 11px;
		position: relative !important;
    }
	
/* Add margin to sub menu so the menu will not close the hovering a bit outside menu items */
	 .sub-menu li:before { 
      content: '';
       height: 100%;
       width: 20px;
       background-color: rgba(255,255,255, 0);
        position: absolute;
        left: -21px;

	}
	
	.sub-menu:after { 
  content: '';
  width: 100%;
  height: 20px;
  background-color: rgba(255,255,255, 0);
  position: absolute;
  bottom: -21px;

	}


    .site-content-contain a:hover {
        color: #B94909;
        cursor: pointer;
    }

    #top-menu > .current-menu-item > a {
        color: #973C07;
    }   

    .sub-menu li:hover {
        background-color: #B94909 !important;
        color: #ffffff !important;
    }

    .sub-menu .current-menu-item > a {
        background-color: #973C07 !important;
        color: #ffffff !important;
    }

    .sub-menu .sub-menu {
        margin-left: -355px !important;
    }

    .menu-item-has-children > a:after {
        display: none !important;
    }

    #content {
        margin-top: 0px !important;
        padding-top: 0px !important;
    }


    #primary, #main {
        width: 100%;
        max-width: 800px !important;
        margin: auto !important;
    }

	 .home #primary, .home #main, .page-id-45 #primary, .page-id-45 #main {
     
        max-width: 1200px !important;
        
    }
	
	.home #main article {
		width: 100%;
	}
	

	.site-content-contain {
   background-color: #fdfdfd !important
	   
	}
    .site-content .wrap {
        max-width: 1200px !important;
        margin: 0px auto;
        padding: 0px 10px;
    }

    
      
   /* Search fielde top of page */

    .panel-content .wrap {
        padding-top: 0px !important;
    }


	#content .wrap {
		position: relative !important;
	}
 
	.home #main .article {
		width: 100% !important;
	}

    #main {
        padding-bottom: 50px;
    }
    /* panen-content verkar vara unikt för första sida därför använda den klassen för att sätta vidd förstasida */
    .panel-content .entry-content > * {
        max-width: 1200px !important;
    }

    /* Coded needed for footer displayed correctly on post pages */
    .post .entry-content {
        padding-bottom: 300px !important;
        min-height: 300px !important;
    }
	
	.cwHeadervideo:hover video {
    opacity: 0.8;
     }
}
/* ================ END GENEREL SETTINGS DESKTOP ================= */



