/**Calendar Page**/
.calendar {
	padding: 0;
	display:flex;
	justify-content: space-around;
	margin-bottom:30px;
}
.calendar-grid {
	display:grid;
	grid-template-columns: repeat(7, 1fr);
	max-width:50%; 
	align-items: start;
	justify-items: start;
	gap:5px 5px;
}
.calendar h2 {
	width:25%;
	a.l {
		display:none;
	}
}
.calendar h2:after {
	display: none;
}
.calendar-date {
	background-color: var(--lighter);
	width:120px;
	min-height:100px;
	height:100%;
	padding:8px;

	h3 {
		margin: 0 0 10px;
	}

	h3 a.l {
		display: none;
	}
	ul {
		list-style: none;
		margin:0;
		margin-left: 5px;
		padding: 0;
	}
	li  {
		border-bottom: 2px dotted var(--accent);
	}
	a {
		text-decoration: none;
	}
}
.calendar-grid .calendar-date:first-child {
	margin-top:8px;
}
li.calendar-tooltip {
	cursor:help;
}
li.calendar-tooltip:after {
	display: block;
	visibility: hidden;
	position: absolute;
	left: 100%;
	bottom:-10%;
	opacity: 0;
	content: attr(data-canon); /* might also use attr(title) */
	height: auto;
	min-width:200px;
	padding: 5px 8px 5px 12px;
	z-index: 999;
	color: var(--secondary-background);
	text-decoration: none;
	text-align: center;
	background: var(--sidebar-background);
	-webkit-border-radius: 5px;
	-moz-border-radius: 5px;
	border-radius: 5px;
	text-align: left;
}
li.calendar-tooltip:hover:after {
	visibility: visible; opacity: 1;left: 109%;
}
li.calendar-tooltip:before {
	position: absolute;
	visibility: hidden;
	width: 0;
	height: 0;
	opacity: 0;
	content: "";
	border-style: solid;  
	border-width: 5px 10px 5px 0;
	border-color: transparent var(--sidebar-background) transparent transparent;
	left: 90%;
	bottom: 2%;
}
li.calendar-tooltip:hover:before{ visibility: visible; opacity: 1; left: 100%; bottom: 40%; }

.calendar h3:after {
	content:'';
	display:block;
	position:absolute;
	right:0;
	top:15%;
	width:20px;
	height:20px;
	background-position: center;
	background-repeat: no-repeat;
}
.calendar-aries h3:after {
	background-image: url('bullet/zodiac-aries.png');
}
.calendar-taurus h3:after {
	background-image: url('bullet/zodiac-taurus.png');
}
.calendar-gemini h3:after {
	background-image: url('bullet/zodiac-gemini.png');
}
.calendar-cancer h3:after {
	background-image: url('bullet/zodiac-cancer.png');
}
.calendar-leo h3:after {
	background-image: url('bullet/zodiac-leo.png');
}
.calendar-taurus h3:after {
	background-image: url('bullet/zodiac-taurus.png');
}
.calendar-virgo h3:after {
	background-image: url('bullet/zodiac-virgo.png');
}
.calendar-libra h3:after {
	background-image: url('bullet/zodiac-libra.png');
}
.calendar-scorpio h3:after {
	background-image: url('bullet/zodiac-scorpio.png');
}
.calendar-sagittarius h3:after {
	background-image: url('bullet/zodiac-sagittarius.png');
}
.calendar-capricorn h3:after {
	background-image: url('bullet/zodiac-capricorn.png');
}
.calendar-aquarius h3:after {
	background-image: url('bullet/zodiac-aquarius.png');
}
.calendar-pisces h3:after {
	background-image: url('bullet/zodiac-pisces.png');
}

/**Character Lists**/

.charlist ul {
	list-style: none;
	margin:0;
	display: grid;
	grid-template-columns: repeat(auto-fit,minmax(20%,1fr));
	text-align: center;
	gap: 10px 5px;
	* {
		margin:0;
		padding: 0;
	}
	li {
		display:block;
		width:200px;
		padding:10px 5px 15px;
		background-color: var(--accent-foreground);
	}
	img {
		max-width: 170px;
		height:auto;
	}
	a {
		font-size: var(--large);
		font-family: var(--font-heading);
		display:block;
		text-transform: uppercase;
		text-decoration: none;
		border-bottom:1px solid;
		font-weight: bold;
		letter-spacing: 1px;
	}
	i {
		display: block;
		font-size: var(--smaller);
	}
}

/**Character Pages**/

.charpage > section {
	padding-bottom:20px;
	border-bottom:1px solid var(--bold);
}
.charpage > section:last-of-type, .charpage > section:last-child {
	border-bottom: none;
}
section p:last-child {
	margin-bottom: 0;
}

/**Infosheet**/
.charinfo {
	width:100%;
	border-bottom:1px solid;
	display:flex;
	flex-wrap: wrap;
	justify-content: center;
}
.charimg img {
	display: block;
	max-width:250px;
	max-height:250px;
	border-radius:5px;
	margin-right:20px;
	margin-bottom: 0px;
}
.charmain {
	display: block;
	background-color:var(--accent-foreground);
	border-radius:3px;
	flex-grow: 3;
}
.charname {
	align-content: center;
	height:100%;
	border:1px solid var(--bold);
	border-radius:3px;
	padding:0px 10px;
}
.charmain strong {
	color:black;
	font-weight:bold;
	font-size:2rem;
	font-family: var(--font-heading);
	display:block;
	border-bottom:1px solid;
	width:100%;
	padding-left:15px;
	text-shadow:1px 1px 5px var(--secondary-background);
}
.charmain i {
	font-weight:bold;
	font-family: var(--font-fancy);
	display:block;
	font-style:italic;
	font-size:var(--large);
	text-align:right;
	padding-right:15px;
	text-shadow:1px 1px 5px var(--secondary-background);
}
.charbullets {
	margin-top:25px;
	margin-bottom:0;
	width:100%;
	display: flex;
	flex-grow: 2;
}
.charbullets ul {
	width:33%;
	display: block;
	margin:0;
}
/**Events Table**/

.charevents table {
	width:100%;
}
.charevents tr {
	border:none;
}
.charevents tr:nth-child(even) {
	background-color:var(--accent-foreground)
}
.charevents td {
	border-top:1px dashed var(--bold);
	vertical-align:middle;
	padding:3px 10px;
	margin:0
}
.charevents td:first-child {
	font-weight:bold;
	text-align:right;
	color: var(--bold);
}
/**Other Sections**/


/*Title Colors*/
.black {
    .charmain i, h2 {
        color:#0c1628; 
    }
}
.purple {
    .charmain i, h2 {
        color:#6536a7; 
    }
}
.pink {
    .charmain i, h2 {
        color:#A4004A;
    } 
}
.red {
    .charmain i, h2 {
        color:#ad080d; 
    }
}
.orange {
    .charmain i, h2 {
        color:#B24600; 
    }
}
.brown {
    .charmain i, h2 {
        color:#402117; 
    }
}
.yellow {
    .charmain i, h2 {
        color:#edac07; 
    }
}
.green {
    .charmain i, h2 {
        color:#2E7C00; 
    }
}
.teal {
    .charmain i, h2 {
        color:#008080;
    }
}
.blue {
    .charmain i, h2 {
        color:#00129E; 
    }
}
.white {
    .charmain i, h2 {
        color:#ffffff; 
		text-shadow: -1px 1px 5px black;
    }
}

/*B-daman Elements*/

.fire,.lightning,.wind,.steel,.ice,.gold,.earth,.wood,.water,.poison,.life,.death {
	ul {
		list-style:none;
		padding-left:0px;
	}
	ul li:before {
        content:'';
        display:inline-block;
        height:15px;
        width:15px;
        vertical-align: middle;
        margin-right: 10px;
	}
}
.fire ul li:before {
	background:url('./bullet/heart-fire.gif') no-repeat;
	background-size:contain;
}
.lightning ul li:before {
	background:url('./bullet/heart-lightning.gif') no-repeat;
	background-size:contain;
}
.wind ul li:before {
	background:url('./bullet/heart-wind.gif') no-repeat;
	background-size:contain;
}
.steel ul li:before {
	background:url('./bullet/heart-steel.gif') no-repeat;
	background-size:contain;
}
.ice ul li:before {
	background:url('./bullet/heart-ice.gif') no-repeat;
	background-size:contain;
}
.gold ul li:before {
	background:url('./bullet/heart-gold.gif') no-repeat;
	background-size:contain;
}
.earth ul li:before {
	background:url('./bullet/heart-earth.gif') no-repeat;
	background-size:contain;
}
.wood ul li:before {
	background:url('./bullet/heart-wood.gif') no-repeat;
	background-size:contain;
}
.water ul li:before {
	background:url('./bullet/heart-water.gif') no-repeat;
	background-size:contain;
}
.poison ul li:before {
	background:url('./bullet/heart-poison.gif') no-repeat;
	background-size:contain;
}
.life ul li:before {
	background:url('./bullet/heart-life.gif') no-repeat;
	background-size:contain;
}
.death ul li:before {
	background:url('./bullet/heart-death.gif') no-repeat;
	background-size:contain;
}

/*B-daman Groups*/

.bdaman-nogroup:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/bdaman-nogroup.png');
	background-repeat: no-repeat;
	background-position: 200px center;
	background-size: 70%;
}
.bdamageorder:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/bdamageorder.png');
	background-repeat: no-repeat;
	background-position: 200px center;
	background-size: 70%;
}
.chaosarmy:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/chaosarmy.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
.electronroses:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/electronroses.png');
	background-repeat: no-repeat;
	background-position: 250px -10px;
	background-size: 70%;
}
.finalconsortium:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/finalconsortium.png');
	background-repeat: no-repeat;
	background-position: 150px -50px;
	background-size: 80%;
}
.hamacityuniversity:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/hamacityuniversity.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
.junkyardcoalition:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/junkyardcoalition.png');
	background-repeat: no-repeat;
	background-position: 220px center;
	background-size: 70%;
}
.lightassociation:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/lightassociation.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
.petrowatch:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/petrowatch.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
.powerleague:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/powerleague.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
.shadowalliance:before {
	content: ' ';
	display: block;
	position: absolute;
	top: 0;
	left: 0;
	width:100%;
	height:100%;
	opacity: 0.1;
	background-image:url('./bdaman/group/shadowalliance.png');
	background-repeat: no-repeat;
	background-position: 120px center;
	background-size: cover;
}
