*{
    padding:0;
    margin:0;
}

body{
    background-color: white;
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
    /* --blue:#168edf;
    --darkblue:rgb(0, 76, 138); */
    --blue:#106ebe;
    --darkblue:#2b579a;
    --lightblue:#cdddfd;
    --grey:gainsboro;
    --darkgrey:#4A4A4A;
}

a{
    color: var(--blue);
}

p + p, p + .tiles_block, form + .tiles_block, p + div, div + p, address + p, p + iframe{
    margin-top:20px;
}

.stripe{
    padding-left:20%;
    padding-right:20%;
    padding-top:30px;
    padding-bottom:30px;
}

header, .header{
    background-color:black;
    color:white;
    line-height:60px;
    font-weight: lighter;
    font-size: 30px;
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    height:60px;
    display:flex;
}

header.stripe, .header.stripe{
    padding-top:0;
    padding-bottom:0;
}

#site_title{
    flex-grow: 1;
}

header nav{
    font-family: Arial, Helvetica, sans-serif;
    font-size:0px;
    display:flex;
}

header a, .header a{
    color:white;
    text-decoration: none;
}

div.h1 h1{
    color:white;
}

nav ul{
    margin:0;
}

address{
    font-style:normal;
}

#ipro_logo{
    height:50px;
    float: left;
    margin:5px 10px 5px 0;
}

#ipro_text_mid{
    display:none;
}

#ipro_text_short{
    display:none;
}

.banner_feature{
    display:inline-block;
    position:relative;
    z-index: 1;
}

.banner_button{
    display:inline-block;
    height:60px;
    font-size:20px;
    cursor:pointer;
    overflow:hidden;
}

.banner_button img{
    height:24px;
    margin:18px 0px;
}

.banner_button:hover{
    background-color: var(--darkgrey);
}

#banner_flag{
    border:1px solid var(--darkgrey);
    margin: 17px 0px;
}

#login{
    position:absolute;
    background:black;
    font-size:20px;
    top:60px;
    right:0;
    min-width:max-content;
    height:0px;
    display: flex;
    overflow:hidden;
    transition: height 0.3s ease;
}

#account_checkbox:checked ~ .banner_feature #login{
    height: 280px;
    border-top:1px white solid;
    border-bottom:1px white solid;
}

#login form{
    display: inline-block;
    align-self: flex-end;
    padding:20px 30px;
}

#login input[type="text"], #login input[type="password"]{
    width:200px;
}

#retrieve_login{
    font-size:14px;
    font-style: italic;
    text-align: center;
    margin:5px;
    text-decoration: underline;
}

.banner_button_open, .banner_button_close{
    padding-left:15px;
    padding-right:15px;
    text-align: center;
    height:60px;
}

.banner_menu li:hover{
    background-color: var(--darkgrey);
}

.screen_mask{
    width:0;
    height:0;
    background-color:rgba(0,0,0,0);
    transition: background-color 0.3s ease, width 0s ease 0.3s, height 0s ease 0.3s;
    position:fixed;
    top:0;
    left:0;
}

.nav_checkbox:checked + .banner_feature .banner_button .screen_mask{
    width:100vw;
    height:100vh;
    cursor:auto;
    background-color:rgba(0,0,0,0.5);
    transition: background-color 0.3s ease; 
}

.nav_checkbox:checked ~ .banner_feature{
    position:static;
}

.nav_checkbox:checked + .banner_feature{
    position:relative;
}

.banner_menu{
    position:absolute;
    top:60px;
    right:0;
    background-color: black;
    list-style:none;
    max-height:calc(100vh - 60px);
    overflow-y:auto;
    direction:rtl;
    font-size:20px;
    min-width:max-content;
}

#menu_checkbox:checked ~ .banner_feature .banner_menu{
    border-bottom: 1px white solid;
}

.banner_menu::-webkit-scrollbar {
    width: auto;
}

.banner_menu::-webkit-scrollbar-track{
    background: gainsboro;
}

.banner_menu::-webkit-scrollbar-track-piece{
    background: gainsboro;
}

.banner_menu::-webkit-scrollbar-thumb{
    background-color: rgb(100,100,100);
    border:3px gainsboro solid;
}

.banner_menu-webkit-scrollbar-thumb:hover{
    background-color: rgb(131, 131, 131);
}

.banner_button_close{
    opacity:0;
}

.banner_menu li{
    line-height: normal;
    border-top: 1px white solid;
    cursor:pointer;
    margin-top:-80px;
    /* transition: margin-top 0.3s ease; Moved to JS to avoid Chrome bug on pageload*/
    text-align: left;
}

.banner_menu a{
    display:block;
    padding:20px 30px;
}

nav input[type="checkbox"]{
    display:none;
}

.nav_checkbox:checked + .banner_feature .banner_button .banner_button_open{
    opacity:0;
    height:0;
}

.nav_checkbox:checked + .banner_feature .banner_button .banner_button_close{
    background-color:rgb(150, 0, 0);
    opacity:1;
    z-index:10;
    position:relative;
}

.nav_checkbox:checked + .banner_feature .banner_button .banner_button_close:hover{
    background-color:rgb(200, 0, 0);
}

.nav_checkbox:checked + .banner_feature .banner_menu li{
    margin-top:0;
}

#logged_in_icon{
    background-color: purple;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    line-height: 40px;
    position: relative;
    top: 10px;
    font-size:16px;
}

h1,h2,h3,h4,h5,h6,.modal_head{
    font-family: 'Trebuchet MS', 'Lucida Sans Unicode', 'Lucida Grande', 'Lucida Sans', Arial, sans-serif;
    color:black;
}

h1{
    font-weight: lighter;
    font-size: 60px;
}

.h1{
    background-color: var(--blue);
    color:white;
    padding-top:60px;
    padding-bottom:60px;
}

h2{
    font-size: 36px;
    margin-bottom:16px;
}

.h2{
    background-color: var(--grey);   
    padding-top:40px;
    padding-bottom:40px;
    color: var(--darkgrey);
}

.h2 h2{
    margin-bottom:0;
    color: var(--darkgrey);
}

.country h2{
    color: var(--darkgrey);
}

h3{
    margin-top: 30px;
    font-size: 30px;
    margin-bottom:16px;
}

h4{
    margin-top: 30px;
    font-size: 24px;
    margin-bottom:16px;
}

h5{
    margin-top: 30px;
    font-size: 18px;
    margin-bottom:16px;
}

main, .main{
    min-height:calc(100vh - 244px);
}

form{
    width:100%;
}

p + form{
    margin-top:10px;
}

.intro{
    background-color: var(--grey);
}

.country{
    background-color:var(--grey);
    display:flex;
    align-items: center;
}

.country div{
    flex-grow: 1;
}

.flag_container{
    text-align: right;
    margin-left: 20px;
    align-self: flex-start;
    max-width:120px;
}

.flag_container p{
    font-size:14px;
    text-align: center;
}

footer, .footer{
    background-color: black;
    color:white;
    padding-top:20px;
    padding-bottom:20px;
    min-height:104px;
    display:flex;
    align-items: center;
    margin-top:40px;
}

#ipro_logo_footer{
    height:100px;
}

#footer_text div{
    padding:10px 5%;
}

#disclaimer{
    font-size:12px;
}

#terms a{
    font-size:14px;
    color:white;
}

#cookieMsg{
    position:fixed;
    bottom: -100px;
    left:10px;
    color: var(--darkgrey);
    border: 1px solid var(--grey);
    padding:20px 20px 5px;
    border-radius: 10px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5); 
    max-width:250px;
    font-size:13px;
    transition: 0.5s ease;
    animation: slide-in 2s forwards;
    background: rgb(229,229,229);
    background: linear-gradient(180deg, rgba(229,229,229,1) 0%, rgba(255,255,255,1) 100%);
}

@keyframes slide-in {

    0% {
        transform: translateY(0);
        opacity: 0;
    }

    75% {
        transform: translateY(0);
        opacity: 0;
    }    

    100% {
        transform: translateY(-120px);
        opacity: 1;
    }
}

#cookieMsg.cookieMsgDismissed{
    animation: slide-out 0.5s forwards;
}

@keyframes slide-out {

    0% {
        transform: translateY(-120px);
        opacity: 1;
    }

    100% {
        transform: translateY(0px);
        opacity: 0;
    }
}

#cookieMsg h2{
    font-size: 24px;
    margin-bottom: 12px;
}

#cookieFrame, #printFrame{
	width:0px;
	height:0px;
	padding:0;
	overflow:hidden;
	border:none;
	opacity:0;
}

.tiles_block{
    display:flex;
    flex-wrap: wrap;
    width:calc(100% + 40px);
    margin:0 -20px;
}

.tile{
    width:calc(33.3% - 40px);
    margin:-1px 20px 0;
    padding: 20px 0;
    flex-grow: 0;
    border-top: gainsboro 1px solid;
    border-bottom: gainsboro 1px solid;
}

.tile h3{
    margin-top:0;
    font-size: 24px;
}

.tile h4{
    margin-top:0;
    font-size: 20px;
}

.tile img{
    width:60px;
    float:right;
    margin-left:20px;
}

.tile img.flag{
    border: 1px gainsboro solid;
}

td{
    padding:5px;
    vertical-align: top;
}

td label{
    text-align: right;
    display:block;
    padding:10px;
}

input[type="text"], input[type="password"], input[type="number"], select{
    width:95%;
    max-width:500px;
    padding:8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
    margin:5px;
    box-sizing: border-box;
}

.form input[type="text"], .form input[type="password"], .form input[type="number"], .form select, .form textarea{
    display: block;
    margin: 10px 5px;
}

.search_bar{
    margin-left:-5px;
}

.search_bar input[type="text"]{
    width: calc(100% - 130px);
}

textarea{
    width:95%;
    max-width:500px;
    height:200px;
    padding:8px;
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
    box-sizing: border-box;
    margin:5px;
}

button, input[type="button"], input[type="submit"], .faux_button{
    background-color: var(--blue);
    color:white;
    padding:10px 20px;
    border:none;
    margin:5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size:16px;
}

button:hover, input[type="button"]:hover, input[type="submit"]:hover, .faux_button:hover{
    background-color: var(--darkblue);
}

.faux_button{
    display: inline-block;
}

ul,ol{
    margin: 20px 0 20px 40px;    
}

.error{
    background: pink;
    border: 1px darkred solid;
    text-align: center;
    padding: 16px;
    color: darkred;
    font-weight: bold;
    margin: 20px 0;    
}

#CRS_logo{
    width: 160px;
    float: right;
    margin-top: -45px;
    margin-left: 20px;
}

.h1.stripe.crs{
    background-image: url(../images/seal-white-400.png);
    background-repeat: no-repeat;
    background-size: auto calc(100% - 20px);
    background-position-y: center;
    background-position-x: calc(80% - 45px);
    padding-right: calc(20% + 260px);
}

.form, .crs_section{
    background: var(--lightblue);
    padding: 20px;
    margin: 20px 0;
    border: 1px solid var(--blue);
}

.center{
    text-align: center;
}

.helpHeading{
    width: 95%;
    max-width: 500px;
    text-align: right;
    margin-left:40px;
}

.helpButton{
	display:inline-block;
	position:absolute;
	top:9px;
	margin:0 8px;
	cursor:pointer;
	padding: 1px 0 0 0;
	text-align:center;
	font-size:16px;
    box-sizing: border-box;
}

.helpButton::before{
	content:"[?]";
}

.emailField input {
    width: calc(50% - 15px);
    max-width:235px;
}

.emailField input:first-of-type {
    margin-right: 2px;
}

.emailField span{
    margin-right:2px;
}

.inlineButtons{
	overflow:hidden;
	margin:auto;
}

.inlineButtons input{
	float:left;
	margin: 5px;
}

.example, .exampleSeal{
	background:white;
	border:1px black solid;
	padding:25px;
	display:inline-block;
	overflow:hidden;
	box-shadow: 4px 4px 8px rgba(0,0,0,0.3);
	border-radius:12px;
}

.exampleSeal{
	font-family:"Times New Roman", Times, serif;
}

p+.example{
	margin-top:30px;
}

.example+.example{
	margin-top:30px;
}

span.IPROemail{
    font-weight:bold;
    color:var(--blue);
}

span.IPROemail::before{
    content:"helpdesk";
}

span.IPROemail::after{
    content:"iprightsoffice.org";
}

.hiddenSection{
	height:0;
	overflow:hidden;
}

/* ==================================================================================
Tables
================================================================================== */

table{
    border: 1px solid var(--blue);
    width:100%;
    margin: 20px 0;
    border-collapse: collapse;
    border-spacing: 0;
}

#payOptions table{
    border:none;
    width:auto;
    margin:auto;
}

table tr:nth-child(odd) {
    background-color: var(--lightblue);
}

#payOptions table tr:nth-child(odd) {
    background-color: white;
}

table tr td:first-child{
    font-style: italic;
}

table td:first-child{
    width: 25%;
}

.table{
	margin-bottom:20px;
	padding:0 20px;
}

.table.seals{
	margin:10px 0 0;
	padding:0 30px 0 20px;
}

.table input[type="text"], .table input[type="password"], .table select, .table textarea{
    margin-left:0;
}

.tableRow{
	width:100%;
}

.table.helpHeadRow{
	margin-top:-14px;
}

.tableLeftCell{
	padding:20px 5px 5px 5px;
	vertical-align:top;
	font-weight:bold;
}

.seals .tableLeftCell{
	padding:0 20px 20px;
}

.tableLeftCell.text{
	font-weight:normal;
	text-align:left;
}

.tableLeftCell.optional{
	font-weight:normal;
}

.tableLeftCell.optional::before{
	content:"(Optional) ";
	font-style:italic;
}

.tableRightCell{
	padding:20px 5px 5px 5px;
	vertical-align:top;
	position:relative;
}

form .tableRightCell{
	padding:5px;
}

.seals .tableRightCell{
	background:white;
	border-radius:20px;
	padding:20px;
	margin:20px 20px 0 0;
	box-shadow:3px 3px 6px rgba(0,0,0,0.3);
}

@media screen and (min-width: 1000px){
	.table{
		display:table;
		table-layout: fixed;
		width: 100%;
	}
	
	.tableRow{
		display:table-row-group;
	}
	
	.tableLeftCell{
		display:table-cell;
		width:25%;
		text-align:right;
	}
	
	.seals .tableLeftCell{
		width:calc(100% - 300px);
	}
	
	.tableRightCell{
		display:table-cell;
		width:75%;
	}
	
	.seals .tableRightCell{
		width:300px;
	}
	
}

@media screen and (max-width: 999px){
	.table{
		width:100%;
		padding:0;
	}
	
	.tableRow{
		margin:0px 5%;
		width:90%;
	}
	
	.tableLeftCell{
		padding:15px 5px 5px 5px;
		border-bottom-left-radius:0px;
		border-bottom-right-radius:0px;
	}

	.tableRightCell{
		padding:5px 5px 15px 5px;
		border-top-left-radius:0px;
		border-top-right-radius:0px;
	}
	
	.seals .tableRightCell{
		margin:20px 0 0 0;
	}
}

/* ==============================================================================
Lists
============================================================================== */

li ul{
    margin-top:0;
}

/* ==============================================================================
Modal window
============================================================================== */

.modal_BG{
    position:fixed;
    height:100vh;
    width:100vw;
    background-color:rgba(0,0,0,0.5);
    top:0;
    left:0;
}

.modal_frame{
    position:fixed;
    width:100%;
    height:0;
    top:0;
    left:0;
}

.modal_window{
    margin:10vh auto;
    width:80%;
    height:80vh;
    max-width:900px;
    max-height:600px;
    background: rgb(229,229,229);
    background: linear-gradient(180deg, rgb(212, 212, 212) 0%, rgba(255,255,255,1) 100%);
    border-radius:20px;
    position:relative;
    overflow:hidden;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5); 
    min-height:180px;
    min-width:200px;
}

.modal_head{
    padding:10px 5%;
    font-size:30px;
    box-sizing: border-box;
    height:60px;
    border-bottom: 1px var(--grey) solid;
    overflow:hidden;
}

.modal_body{
    padding:20px 5%;
    box-shadow: inset 0px 10px 10px -10px rgba(0, 0, 0, 0.5), inset 0px -10px 10px -10px rgba(0, 0, 0, 0.5);
    height:calc(80vh - 110px);
    box-sizing: border-box;
    overflow-y:auto;
    min-height:70px;
    max-height:490px;
}

.modal_foot{
    bottom:0;
    width:100%;
    position:absolute;
    text-align:center;
    border-top: 1px var(--grey) solid;
    box-sizing: border-box;
    height:50px;
    overflow:hidden;
}

.modal_checkbox{
    display:none;
}

.modal_checkbox:checked + .modal{
    display:none;
}

/* ==============================================================================
Different screen sizes
============================================================================== */

@media screen and (min-width: 1401px) and (max-width: 1666px){

    #CRS_logo{
        margin-top:0;
    }

}

@media screen and (max-width: 1400px){

    .stripe{
        padding-left:10%;
        padding-right:10%;
    }

    #ipro_text_full{
        display:none;
    }

    #ipro_text_mid{
        display:inherit;
    }

    .h1.stripe.crs{
        background-position-x: calc(90% - 25px);
        padding-right: calc(10% + 260px);
    }

}

@media screen and (max-width: 800px){

    .stripe{
        padding-left:5%;
        padding-right:5%;
    }

    header.stripe, .header.stripe{
        padding-right: 0;
    }

    .banner_feature{
        position:static;
    }

    .nav_checkbox:checked + .banner_feature{
        position:static;
    }

    .banner_menu, #login{
        width:100vw;
        right:0;
    }

    #login input[type="text"], #login input[type="password"]{
        width:100%;
        box-sizing: border-box;
    }

    .h1.stripe.crs{
        background-size: auto calc(100% - 100px);
        background-position-x: calc(100% - 20px);
        padding-right: 240px;
    }

    footer{
        flex-wrap: wrap;
        text-align:center;
    }

    footer div{
        width:100%;
        box-sizing:border-box;
    }

    .tile{
        width:calc(50% - 40px);
    }

}

@media screen and (max-width: 650px){

    #ipro_text_full{
        display:none;
    }

    #ipro_text_mid{
        display:none;
    }

    #ipro_text_short{
        display:inherit;
    }

    .h1.stripe.crs{
        background-image:none;
    }

    .tile{
        width:calc(100% - 40px);
    }

}

@media screen and (max-width: 450px){

    #ipro_text_short{
        display:none;
    }

}

@media screen and (max-width: 370px){

    #ipro_logo{
        display:none;
    }

}

/* ============================================================================ */
/* WP BRIDGE */
/* ============================================================================ */
.WPbridge{
    display:flex;
    justify-content: center;
    align-items: center;
}

.loadingMsg{
    text-align:center;
    margin:5%;
    border: var(--grey) 1px solid;
    padding:5%;
    border-radius: 20px;
    box-shadow: 5px 5px 10px rgba(0,0,0,0.5); 
    max-width:400px;
}

.loadingMsg img{
    margin:40px;
}

/* ============================================================================ */
/* UPLOAD AREA */
/* ============================================================================ */

#blankgif{
    height: 64px;
    width: 64px;
}

/* ============================================================================ */
/* FAQS */
/* ============================================================================ */

.faq_checkbox{
    display:none;
}

.faqItem:last-of-type{
    border-bottom: 1px black dotted;
}

.faqItem label a{
    text-decoration: none;
}

.faqQuestion{
    padding:10px 20px;
    border-top: 1px black dotted;
    color:black;
}

.faqItem:nth-child(odd) .faqQuestion{
    background-color: var(--lightblue);
}

.faqAnswer{
    height:0;
    overflow: hidden;
    box-sizing: border-box;
    background-color: var(--grey);
}

.faq_checkbox:checked ~ label .faqQuestion{
    background-color: var(--darkblue);
    color: white;
}

.faq_checkbox:checked ~ .faqAnswer{
    height:auto;
    padding: 10px 20px 40px;
}

.faqItem label .faqQuestion:hover{
    background-color: var(--blue);
    color:white;
}

.columns{
    column-width: 180px;
    column-gap: 10px;
}

.columns ul, .columns ol{
    margin:0 0 20px 40px;
}

