/*
   Theme Name: Dewey Color System
   Version: 1.0
   Author: Piotr Kaluza
   Text Domain: dewey
   */


/* cwc changes open */
h1
{
  font-family : Avenir;
  font-size : 2em;
  line-height : 1em;
  text-transform : uppercase;
	font-weight: bold;
  color : #000000;
}

h2
{
  font-family : Avenir;
  font-size : 1.8em;
  line-height : 22px;
	font-weight: 600;
  color : #000000;
padding-bottom: 15px;
}
h3
{
  font-family : Avenir;
  font-size : 1.4em;
  line-height : 1em;
  text-transform : uppercase;
  color : #000000;
font-weight: 600;
	padding-bottom: 15px;
}
h4
{
  font-family : Avenir;
  font-size : 9px;
  text-transform : uppercase;
  color : #000000;
}
h5
{
  font-family : Avenir;
  font-size : 8px;
  color : #737373;
  color : rgb(115, 115, 115);
}
h6
{
  font-family : Avenir;
  font-size : 8px;
}

.site-button-link {
font-size: 16px; 
font-weight: 700; 
border: 2px solid black;
background-color: rgba(255, 255, 255, 0.5); 
color: #000000;
display: inline-block;
padding: 14px 28px;
margin: auto;
cursor: pointer;
}

.site-button-link:hover {
background-color: rgba(0, 0, 0, 0.9); 
color: #ffffff;
border: 2px solid #ffffff;
}

.site-button-link-rev {
font-size: 16px; 
font-weight: 700; 
border: 2px solid white;
background-color: rgba(0, 0, 0, 0.9); 
color: #ffffff;
display: inline-block;
padding: 14px 28px;
margin: auto;
cursor: pointer;
}

.site-button-link-rev:hover {
background-color: rgba(255, 255, 255, 0.9); 
color: #000000;
border: 2px solid #000000;
}

/* cwc changes close */


div#popup_overlay {
    background: rgba(0,0,0,.75);
    width:100%;
    height:100%;
    z-index:10;
    top:0;
    left:0;
    position:fixed;
    display: flex;
    justify-content: center;
    align-items:center;

}

div#popup_content {
    flex-flow: row;
    display:flex;
    position: relative;
    background: white;
    padding:30px;
    border:2px solid #333;
}


div#popup_content #content {
    min-height: 300px;
    min-width: 300px;
}
div#popup_content #content iframe {
    background: black;
    width:100%;
    height:100%;
}

#popup_close {
    position:absolute;
    right:15px;
    top:-15px;
    color:#000;
    font-size:3em;
    text-decoration: none;
}

ul  {
    list-style:none;
}
#report {
    position:relative;
}


ol {
   margin:0 0 2em 2em;
    
}

table tr  td {
    font-size:1em;
}
ol li::before {
    content: '';
    border: 0;
    background: transparent;
    position: static;
    margin-left:-20px;
    padding:0;
}
a.heading {
    font-size:1em;
}
a.heading.yellow {
    color: #ffcc00;
}
.cci {
    margin: 1.5em 0 2em 0;
}
.cci table tr td {
    min-width:50px;
    text-align: center;
}

.cci .wp-block-image img {
    display:block;
    margin: 0 auto;


}

.cci h2, .cci h1 {
    margin: 1em 0 1em 0;
    padding: .5em 0 0 0;
}


table.wp-block-table td {

    font-family: Arial, Helvetica, sans-serif;
    font-size:1em;
    color: #666;
    text-align: left !important;
    padding: 0 2em 2em 0;
    vertical-align: text-top !important;
}
#report header {
    text-align: center;
}
#report h1 {

    margin-top:2em;
}

footer {
    margin-top:3em;
}

#report h2, #report h3, #report h4 {
    margin-bottom:1em;
    text-transform: capitalize;
}

.prepared-for {
    display:none;
}

div.colors {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}

div.colors  .swatch.small .color-box, .report-swatch.small .color-box {
    max-width:50px;
    max-height: 50px;
}
div.colors p {
    margin-top:.5em;
    text-align: center;
    text-transform: capitalize;
}
.swatch.small .color-box, .report-swatch.small .color-box {
    max-width:75px !important;
    max-height:75px !important;
    margin:0 auto;
    display:block;
}

.swatch.small cite, .report-swatch.small cite {
    display:inline-block;
    display:block;
    clear:both;
}

.box:nth-last-of-type(even) {

    background: #E7EBEC;
}
.box {
    padding: 0 1em;
}
.box.bottom-border {
    border-bottom: 1px solid #777;
}
.box.bottom-border:last-child {
    border-bottom:none;
}
#report h2.pagehdr {
    margin-top:2em;
    text-transform: uppercase;
}

.links-container {
    text-align: center;


}
.links-container h3 {
    padding-top:2em;
}


#report ul.links {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap:wrap;
    
    
}

.colors-container {
    display: flex;
    flex-direction: column;
}

/* Reset  inherited list style */
#report ul.links li::before {
    content: '';
    display:none;
    height:0;
    width:0;

}


.site-button-link {
    width:350px;
    display:block;
    text-transform: uppercase;
    height:76px;
    text-align: center;
}

@media print {

    .prepared-for {
        display:block;
    }

    .swatch.small .color-box {
        display:none;
    }
    .colors {
        justify-content: center;
        position:relative;
    }

    .colors .bold{
        font-weight:bold;
    }
#report h2 {
    page-break-before: always;
}

.prepared-for {
    margin-top:3em;
    text-align:right;
}
.prepared-for-name {
    font-weight:bold;
}
footer {
    border: 2px solid #AAA;
}
}

#report .bold {

    font-weight: bold;
}


#report h2 {
    font-size: 2rem;
    font-weight: bolder;
}

#report h3 {
    font-weight: 1.5rem;
}

#report h3 > p {
    display:none;
    font-weight:bold;
}

#report p span.bold {
    font-weight:bold;

}

table.ccijobs {
    width:98%;
    font-size:1em;
    color: #333;



}

table.ccijobs th {
    text-align: center;
}
.ccijobs tr {
    font-size:1em;
    border: 1px solid #222;
    height:2em;
}
.ccijobs td a {
    color: #222;
}

table.ccijobs tr:nth-child(2n) {
    background-color:#fefefe;
}

/* new test styles */
		.test {
			margin-top: 1em;
			position: relative;
			height: 100vh;
		}
		.tabs {
			display:none;
		}

		.tab-bar {
			background: inherit;
			position: relative;
			box-shadow:none;
			border: 1px solid black;
			border-radius: 1em;
		}
		.tab-bar .content {
			box-shadow: none;
		}



		.mode.info {
			display:block;
			background: rgba(255,255,255,1);
			position: absolute;
			color: #000;
			left:28vw;
			padding-top:.5em;
			font-size: 1.5em;
			height: 3em;
			text-align: center;
			box-sizing: border-box;
			z-index: 1;
		}

		ul li::before {
			content: '' ;
		}
		ul.sidebar {

			list-style:none !important;
		}
			.widget_polylang {
			position: absolute;
			left:90%;
			top:1em;
		}

		#content-part {
			position: static;
		}

		.top {
			position: relative;
			display:none;
		}
	
		.content-part {
			border: 1px solid black;
		}
          
        


		p.bold.narrow {
			max-width: 100px;
			text-align:center;
        }
        

        .colors-container {
            width:100%;
            display: flex;
            flex-direction: row;
        }


        .colors-group {

            border-right: 1px solid #CCC;
            margin-left: 2px;
            flex:1;
            display:flex;
            align-content: space-around;
            flex-direction: column;
            min-height:200px;

        }

        .group-name {
            
            text-align: center;
            padding:0;
            margin:1em 0 .5em 0;
    

        }
        .colors-group:last-child {
            border-right:none;
        }
        .colors.rank .color-box {

            max-width: 75px;

        }
        .colors.rank .color-box + p {
            max-width:75px;
        }
        

.ccijobs thead , .cci-jobs  thead {

    background:#666;
    color: #fff;

}

.cci-jobs td:nth-of-type(3) {
    border-left: 1px solid #000;
    border-right: 1px solid #000;
}
.cci-jobs .cci-action {
text-decoration: none;
font-size: 12px; 
font-weight: 700; 
border: 1px solid black;
background-color: rgba(255, 255, 255, 0.5); 
color: #000000;
display: inline-block;
padding: 7px 14px;
margin: auto;
cursor: pointer;
}

.cci-action:hover {
background-color: rgba(0, 0, 0, 0.9); 
color: #ffffff;
border: 1px solid #ffffff;
}
 
.cci-wizard-nav {
    display:flex;
    justify-content: center;
    
    padding: 2em 0;
}

.cci-wizard-nav .site-button-link {
    height: inherit;
}

.cci {
    background: #E7EBEC;
}

dt, dd {
    color:#6e6e6e;
    font-size:18px;

}
dl {
    margin-bottom:2em;
}
dt {
    font-style:bold;
    color:#000;
}

.content {
    height:100%;
}
.content.copy h2 {
margin-bottom:2rem;
text-align:left;
}

.content.copy .reminder {
    font-weight: bold;  
    font-size: 1.5rem;
    margin-top: 3rem;
    text-align: center;
}
.content.copy ol {
margin: 0 auto;
width: 80%;
padding: .5rem 0;
max-width:100%; 
text-align: justify;
list-style: upper-latin !important;
}
.content.copy ol li {
    text-align: left;
   padding: .5rem 1rem;
   text-align:center;
    font-weight:bold;
    font-size:1.4rem;
    list-style:upper-roman;
font-style:normal;



}
.content.copy ol li:before {
    content:'\0203A'; 
    font-size:2rem;
    margin-top:2px;
    font-weight: bold;
    margin-right:5px; 
    display: inline-block;

}
.content.copy p{
    text-align:left;
    font-size:1.4rem;
}

.content .start {
    display:block;
    margin: 0 auto; 
   
}

.content {
    padding-top: 1rem !important;
    margin:0 !important;

}


#wrapper .instructions p {
   
text-align: center;
font-size:2rem;
        
    }
    
#wrapper .instructions p.smaller {
font-size: 1.5rem;
line-height: 1rem;
    
}

#wrapper .instructions p.cta {
    font-weight: bold;
}

.content ul.swatches {
   display: grid    ;
      

   
   align-items: center;
   
   max-width: 60vw;
   padding-top:0 !important;
   align-content: center;
  

 
 
}
_:-ms-input-placeholder, :root .content ul.swatches {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;    
}

_:-ms-input-placeholder, :root .content ul.swatches li {
  
 flex-basis: 33%;   
}

_:-ms-input-placeholder, :root .content ul.swatches.c5r3 li {
  
    flex-basis: 20%;   
   }
.content ul.swatches.c3r1 {
    grid-template-columns:  1fr 1fr 1fr;
    grid-template-rows: 1fr;
}
.content ul.swatches.c3r2 {
    grid-template-columns:  1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
}
.content ul.swatches.c5r3 {
    grid-template-columns:  1fr 1fr 1fr 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
}
.swatch {
    padding:0 !important;
    margin: 0 !important;
}
.color-box {
    width: 10vw !important;
    height: 10vw !important;
    max-width:150px !important;
    max-height: 150px !important;
    border-radius: calc(10%);
   
}



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

    .content ul.swatches {
        display: grid    ;
      

   
        align-items: center;
        min-height: 40vh;
        max-width: 80vw;
        padding-top:0 !important;
        align-content: center;
       
     }

     .color-box {
        width: 15vw !important;
        height: 15vw !important;
        max-width: 125px;
        max-height: 125px;
        border-radius: calc(10%);
        padding:0 !important;
        margin: 0 !important;
    }

    #wrapper .instructions p {
   
        text-align: center;
        font-size:1rem;
                
            }
            
        #wrapper .instructions p.smaller {
        font-size: 0.75rem;
        line-height: 1rem;
            
        }
        
        #wrapper .instructions p.cta {
            font-weight: bold;
        }
}
