#diagram-wrapper {
	text-align: center;
}

#onion-animation {
	width: 1190px;
	max-width: 100%;
	margin: 0 auto;
}

[id*='overlay'] {
	opacity: 0;
	transition: all .2s linear;
}

text {
	cursor: pointer;
}

[id*='section']:hover [id*='overlay'] {
	opacity: .3;
	cursor: pointer;
}

/* MODAL WINDOW STYLES START */
.onion-modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0,0,0);
    background-color: rgba(0,0,0,0.52);
}

.onion-modal-content {
	display: none;
}

.onion-close {
	position: absolute;
	right: 20px;
	top: 20px;
	width: 32px;
	height: 32px;
}

.onion-close:hover,
.onion-close:focus {
    color: #000;
    text-decoration: none;
    cursor: pointer;
}

.onion-close:before, .onion-close:after {
	position: absolute;
	left: 15px;
	content: ' ';
	height: 28px;
	width: 5px;
	background-color: #FFFFFF;
}
.onion-close:before {
	transform: rotate(45deg);
}
.onion-close:after {
	transform: rotate(-45deg);
}

.onion-modal-content {
    position: relative;
    background-color: #A1B7DD;
    border-radius: 10px;
    margin: 100px auto;
    width: 500px;
    padding: 30px;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.2),0 6px 20px 0 rgba(0,0,0,0.19);
    box-sizing: border-box;
}

.onion-modal-content.green-content {
	background-color: #98bfc3;
}

.onion-modal-content.blue-content {
	background-color: #a2b8dc;
}

.onion-modal-title {
	color: darkblue;
	margin: 0px;
	padding-top: 40px;
	padding-bottom: 8px;
	font-family: 'Arial';
	font-style: normal;
	font-variant: normal;
	font-weight: bold;
    font-size: 24px;
}

.onion-modal-title.green-title, .modal-button.green-button strong {
	color: #013639;
}

.onion-modal-title.blue-title, .modal-button.blue-button strong {
	color: #02426d;
}

.onion-modal-content > p {
	text-align: left;
	color: #ffffff;
	width: 80%;
	text-align: center;
	margin: 0 auto;
	font-family: 'Arial';
	font-weight: normal;
	line-height: 22px;
	font-size: 18px;
}

@media screen and (max-width: 992px) {
	.onion-modal-content {
		width: 80%;	
	}
}

@media screen and (max-width: 576px) {
	.onion-modal-content {
		margin: 0;
		padding: 35px;
		width: 100%;	
	}
	.onion-modal-content > p {
		line-height: 20px;
		font-size: 16px;	
	}
	.onion-modal-title {
		font-size: 25px;	
	}
}

.onion-modal-content a {
	text-decoration: none;
}


.modal-button {
	width: 80%;
	margin: 20px auto;
	border: 2px solid #ffffff;
	background-color: blue;
	color: #ffffff;
	border-radius: 7px;
	padding: 15px;
	font-family: 'Arial';
	font-weight: normal;
	line-height: 22px;
	font-size: 18px;
}

.modal-button.green-button {
	background-color: #20979e;
}

.modal-button.blue-button {
	background-color: #1072b5;
}
/* MODAL WINDOW STYLES END */