/*
 *  Remodal - v1.1.0
 *  Responsive, lightweight, fast, synchronized with CSS animations, fully customizable modal window plugin with declarative configuration and hash tracking.
 *  http://vodkabears.github.io/remodal/
 *
 *  Made by Ilya Makarov
 *  Under MIT License
 */

/* ==========================================================================
   Remodal's necessary styles
   ========================================================================== */

/* Hide scroll bar */

html.remodal-is-locked {
  overflow: hidden;

  -ms-touch-action: none;
  touch-action: none;
}

/* Anti FOUC */

.remodal,
[data-remodal-id] {
  display: none;
}

/* Necessary styles of the overlay */

.remodal-overlay {
  position: fixed;
  z-index: 9999;
  top: -5000px;
  right: -5000px;
  bottom: -5000px;
  left: -5000px;

  display: none;
}

/* Necessary styles of the wrapper */

.remodal-wrapper {
  position: fixed;
  z-index: 10000;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;

  display: none;
  overflow: auto;

  text-align: center;

  -webkit-overflow-scrolling: touch;
}

.remodal-wrapper:after {
  display: inline-block;

  height: 100%;
  margin-left: -0.05em;

  content: "";
}

/* Fix iPad, iPhone glitches */

.remodal-overlay,
.remodal-wrapper {
  -webkit-backface-visibility: hidden;
  backface-visibility: hidden;
}

/* Necessary styles of the modal dialog */

.remodal {
  position: relative;

  outline: none;

  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.remodal-is-initialized {
  /* Disable Anti-FOUC */
  display: inline-block;
}

.remodal ul{
	list-style:none;
	float:left;
	width:48%;
	margin:0 1%;
}

	.remodal ul a{
		display:block;
		padding: 9px 5px 1px;
		border-bottom:2px solid #ffd6db;
		font-size:78%;
		color:#505050;
		letter-spacing:0;
		font-weight:400;
	}
	
.remodal ul.submenu{
	width:100%;
	margin:0;
}
	
	.remodal ul.submenu a{
		width:31.333%;
		margin:0 1%;
		float:left;
		border-bottom:2px solid #dedede;
		border-bottom:none;
		margin-bottom:10px;
		background: #f5f2f2;
		padding: 3px 4px;
		font-size:72%;
	}
	
	.remodal ul a:hover{
		/*background: #ffeef0;*/
		border-bottom:2px solid #ca3244;
	}
	
	.remodal ul.submenu a:hover{
		border-bottom:none;
		background: #fde0e4;
	}

.remodal .search_wrap{
	float:none;	
	margin:0 auto 20px;
}

@media screen and (max-width: 540px) {
	.remodal ul.submenu a{
		width:48%;
		margin-bottom:6px;
	}
}
