
#mainContent {
	display:grid;
	grid-template-columns: minmax(0,320px) auto;
	grid-template-areas: 	"details text";
    gap: 15px;
    margin: 1em 3em;

}

.pageDetails {
    grid-area:details;
    padding-left:30px;
}

h2.pageTitle {
    font-family: zubajda;
    color: #350000;
    margin:10px 0 20px 10px;
    font-size: 2.5em;
    font-weight: normal;
}

.singleCardDisplay {
    margin-top:15px;
}

    .singleCardDisplay img {
        width:90%;
		transform: rotate(-4deg);
		filter: drop-shadow(5px 5px 0 rgba(0,0,0,0.5));

    }

    .activePage {
        color: #350000 !important;
    }

.content {
    
    display:flex;
    flex-direction: column;
    grid-area: text;
}

.secondaryContent {
    display:flex;
    width:100%;

}

.contentText, .formContainer {
    flex: 1; /* tells the container to fill all space down to the next element (grow) */
    width: 100%;
    display: flex;
    flex-direction: column;
    z-index: 50;
    position: relative;
    margin: -15px -15px 0 -15px;
    padding: 30px;
    min-height: 430px;
}

.formContainer {
	margin-left: 0;
}

.contentText {
    background-image:url('./../images/parchment5.png');
    background-repeat: repeat;
    border-radius: 20px;
}

    .contentText > h2 {
        font-family: zubajda;
        color: #a88328;
        font-style: normal;
        font-weight: normal;
        font-size:2.5em;
        margin:0;
    }

    .contentText > p {
        font-family:cafeteria;
        font-weight: normal;
        font-size:1.4em;
        color: #250000;
        margin-bottom: 0;
        line-height: 110%;
    }

	.bold {
		font-weight: bold;
	}

	.contentText sup, .formContainer sup {
		font-size:.5em;
	}

    .formContainer h2 {
        font-family: zubajda;
        color: #350000;
        font-style: normal;
        font-weight: normal;
        font-size:2.5em;
        margin:0;
    }

    .formContainer p {
        font-family:cafeteria;
        font-weight: normal;
        font-size:1.4em;
        color: #250000;
    }

.parchment-border-right, .parchment-border-left {
    width:30px;
	background-size: 30px auto;
	margin-top: -30px;
    margin-bottom: -15px;
	padding: 0;
	background-repeat: repeat-y;
    position: relative;
}

.parchment-border-top, .parchment-border-bottom {
    position: relative;
    height: 30px;
	background-size: auto 30px;
	flex-shrink: 0;
	background-repeat: repeat-x;
    margin-right:10px;
    margin-left:5px;

}

	.parchment-border-top {
        background-image: url('./../images/parchment-border-4.png');
        
        background-position: 0 100%;
        border-top-right-radius: 10px;
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 20px;
        
    }

	.parchment-border-right {
        background-image: url('./../images/parchment-border-3.png');
        background-position: 0 0;
        right:0;
        /*
        border-bottom-right-radius: 10px;
        */
    }
	
	.parchment-border-bottom {
        background-image: url('./../images/parchment-border-1.png');
        background-position: 0 0;
        bottom:15px;
        left:5px;
        
        border-bottom-left-radius: 10px;
        border-bottom-right-radius: 10px;
        
	}

	.parchment-border-left {
        background-image: url('./../images/parchment-border-2.png');
    	background-position: 100% 0;
	    left: 0;
        /*
        border-bottom-left-radius: 10px;
        */
	}


/* =========================================================
   ZooCards Modal System
========================================================= */

.zc-modal {
    display: none;
}

.zc-modal.is-open {
    display: block !important;
}

.zc-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.65);
    z-index: 9000;
}

.zc-modal-window {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    width: min(360px, 92vw);
    z-index: 9001;

    pointer-events: auto;
    animation: modalFadeIn .18s ease-out;
}

.zc-modal-parchment-body {
    position: relative;
    display: flex;
    width: 100%;
}

.zc-modal-content {
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;

    z-index: 50;
    position: relative;

    margin: -15px -15px 0 -15px;

    padding: 55px 35px 50px;

    min-height: 0;
    height: auto;

    justify-content: flex-start;
    align-items: center;
    text-align: center;

    background-image: url('./../images/parchment5.png');
    background-repeat: repeat;
    border-radius: 20px;
}

.zc-modal-content h2 {
    font-family: cafeteria;
    color: #a88328;
    font-style: normal;
    font-weight: normal;
    font-size: 1.65em;
    margin: 0 0 20px;
}

.zc-modal-content p {
    font-family: cafeteria;
    font-weight: normal;
    font-size: 1.65em;
    line-height: 115%;
    color: #a88328;
    margin: 0 0 28px;
}

.zc-modal-content strong {
    font-weight: bold;
}

.zc-modal-content sup {
    font-size: .5em;
}

.zc-modal-close {
    position: absolute;
    top: 25px;
    left: 25px;

    z-index: 9010;

    border: none;
    background: transparent;

    font-size: 34px;
    line-height: 1;
    color: #b17a24;

    cursor: pointer;
    transition: transform .15s ease;
}

.zc-modal-close:hover {
    transform: scale(1.1);
}

.zc-modal-active {
    overflow: hidden;
}

/* Animation */

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(.95);
    }

    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* Mobile */

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

    #mainContent {
        display: block;
    }

	.content {
        margin-top: 15px;
    }

	.pageTitle {
        display: none;
    }

	.singleCardDisplay {
        display: none;
    }
	
    .zc-modal-window {
        width: 92vw;
        max-height: 86vh;
    }

    .zc-modal-parchment-body {
        min-height: 320px;
    }

    .zc-modal-content {
    min-height: 0;
    height: auto;
    padding: 40px 24px 50px;
}

    .zc-modal-content h2 {
        font-size: 2em;
    }

    .zc-modal-content p {
        font-size: 1.25em;
        margin-bottom: 22px;
    }

    .zc-modal-close {
        top: 18px;
        left: 18px;
        font-size: 30px;
    }
}
