

/* Replacement for Remodal styles: */

dialog {
  display: block;
  border: 0;
}

.js-modal {
   cursor: pointer;
}

/* removes scroll when modal is opened */
.no-scroll {
  overflow: hidden;
}
/* overlay covers everything */
.simple-modal-overlay,
.simple-animated-modal-overlay {
  position: fixed;
  top: 0;
  bottom: 0;
  right: 0;
  left: 0;
  background: #000;
  opacity: .5;
  z-index: 666;
  cursor: pointer;
}
.simple-modal-overlay[data-background-click="disabled"],
.simple-animated-modal-overlay[data-background-click="disabled"] {
  cursor: auto;
}
.simple-animated-modal-overlay  {
  animation: fadeout ease .3s 1 normal ;
}

@keyframes fadeout {
  0% {
    opacity: 0;
  }
  100% {
    opacity: .5;
  }
}
/* modal */
.simple-modal,
.simple-animated-modal {
   position: fixed;
   top: 15vh;
   width: 100%;
   max-width: 1000px;
   max-height: 81vh;
   background: transparent;
   z-index: 667;
   display: block;
   overflow: auto;
   text-align: center; /* centre the dialog box*/
   /*box-shadow: 10px 10px 5px rgba(0,0,0,0.2);*/
   animation: fadeout ease .3s 1 normal ;
   padding: 1em;
   box-sizing: border-box;
}

.simple-animated-modal__wrapper {
  	background-color: #d9e0e3;
  /*  background-image: url('/images/subtopic%20bg.svg'); 
   background-size: cover;*/
   display: inline-block; /* this way we can use the text-align:center of the parent to centre the whole block */
   text-align: left; /* contents need normal left align though*/
   padding: 1.5rem;
   padding-top: 1rem;
   box-sizing: border-box;
   max-width: 50em;
   border-radius: 5px;
}

.simple-animated-modal__wrapper {
	/* background-image: url('/images/subtopic%20bg.svg'); */
	background-size: cover;
	display: inline-block;
	text-align: left;
	padding: 1.5rem;
	padding-top: 1rem;
	box-sizing: border-box;
	max-width: 50em;
}

.simple-animated-modal-close {
   float: right;
   background: var(--main-bg-color) !important;
   color: #000 !important;
   border-radius: 3px;
   border: 0;
   padding: .25em .5em;
   cursor: pointer;
   font-weight: bold !important;
   font-size: 100%;
   margin-top: 0.7em;
}

.simple-animated-modal-close:hover,
.simple-animated-modal-close:active {
  border-bottom: 3px solid #000;
  outline: 1px dotted #333;
}
.simple-animated-modal-close:hover,
.simple-animated-modal-close:active {
  background: var(--bright-bg-color) !important;
}

.simple-animated-modal-close:focus {
     box-shadow: 0px 0px 0px 5px #08b8ee;
}

.simple-animated-modal-close:hover {
  box-shadow: 0;
}

.simple-animated-modal  #modal-title {
	background-color: var(--main-bg-color);
	padding: 5px 15px;
	display: inline-block;
	max-width: 80%;
   font-size: 130%;
   font-weight: normal;
   line-height: inherit;
}
.simple-animated-modal  #modal-title b {
	font-weight: 400;
}

.simple-animated-modal a {
	color: #1b6073;
	text-decoration: underline;
	font-weight: bold;
}

.simple-animated-modal ul li {
    margin-left: 20px;
    padding-left: 5px;
}

.simple-animated-modal  ul  {
    margin-bottom: 10px;
}

.simple-animated-modal h2 {
   border-top:0;
   border-bottom: 1px solid var(--alt-dark-color);
   font-size: 120%;
}

/* Some extra small changes for mobile to be found in mobile.css too */
