* {
    color: black;
    font-family: Arial, Helvetica, sans-serif;
}

body {
    background-image: url("paper3.jpg");
    background-repeat: repeat;
    background-size: contain;
    min-height: 90vh;
    box-sizing: border-box;
    padding: 15px;
    margin: 0px auto;
}

.sticky {
    position: fixed;
    top: 0;
    width: 93%;
}

.sticky+.character {
    padding-top: 102px;
}

.header {
    margin-bottom: 50px;
}

.selectors {
    display: inline-block;
}

.buttons {
    float: right;
}

.copybuttons {
    font-size: 24px;
    margin: 10px;
    display: block;
}

.selectors div select,
.selectors div label {
    font-size: 24px;
}

.selectors div label {
    margin-right: 5px;
}

.scriptselect, .langselect {
    display: block;
    margin: 10px;
}

.langselect label {
    width: 120px;
    display: inline-block;
}

.langselect select {
    width: 150px;
    height: 36px;
}

.scriptselect label {
    width: 120px;
    display: inline-block;
}

.scriptselect select {
    width: 500px;
    height: 36px;
}

.scripttitle {
    text-align: center;
}

.scripttitle h1 {
    margin-bottom: 16px;
    font-size: 3rem;
}

.main {
    width: 95%;
    max-width: 1500px;
    margin: auto;
}

.charcategory h2 {
	margin: 0;
    font-size: 2.5rem;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.charcategory h2:before,
.charcategory h2:after {
    content: "";
    flex: 1 1;
    border-bottom: 3px solid black;
    margin: auto;
}

.townsfolks h2 {
    color: #11f;
}

.outsiders h2 {
    color: #4cf;
}

.minions h2 {
    color: #f60;
}

.demons h2 {
    color: #f00;
}

.character {
    display: flex;
    margin: 10px 0;
}

.charactericon_container {
    position: relative;
    margin: 5px;
}

.charactericon {
    width: 130px;
    border-radius: 50%;
    background-color: #404040;
}

.townsfolks .character .charactericon_container .charactericon {
    border: 3px solid #11f;
}

.outsiders .character .charactericon_container .charactericon {
    border: 3px solid #4cf;
}

.minions .character .charactericon_container .charactericon {
    border: 3px solid #f60;
}

.demons .character .charactericon_container .charactericon {
    border: 3px solid #f00;
}

.curved-text {
	position: absolute;
	top: -19px;
	left: -8px;
    width: 150px;
    height: 150px;
}

.curved-text-label {
    fill: white;
    font-size: 16px;
	font-weight: 500;
}

.description {
    margin: 5px;
    margin-top: 15px;
}

.charactername {
    margin: 10px 0;
    font-size: 24px;
}

.description p {
    margin: 0;
    font-size: 18px;
}

.exceptfirstnight {
	display: none;
}

@page {
	margin: 10mm; 
}

@media print {
    body {
        background: none;
        padding: 0;
        margin: 0;
		overflow: visible;
    }
	
	.main {
		width: 100%;
	}

    .header, .scripttitle p {
        display: none;
    }
	
	.scripttitle h1 {
		margin: 0;
		font-size: 1.5rem;
	}

    .character * {
        margin: 0;
        padding: 0;
        display: flex;
		align-items: center;
    }
	
	.charcategory h2 {
		margin: 0;
		font-size: 0.85rem;
		gap: 10px;
		color: black;
	}

	.charcategory h2:before,
	.charcategory h2:after {
		content: "";
		border-bottom: 2px solid black;
		margin: auto;
	}

	.charcategory h2:after{
		flex-grow: 0.1;
	}
	
    .charcategory .character {
        margin: 0;
		height: 39px;
    }

    .charcategory .character .charactericon_container .charactericon {
        width: 57.5px;
		border: none;
        background: none;
		margin-left: -5px;
    }

    .curved-text {
        display: none;
    }
	
	.charactername {
		flex-direction: column;
		align-items: flex-start;
		font-size: 0.8rem;
    }
    
    .charactername .brackets {
        display: flex;
        font-size: 0.7rem;
		font-weight: 300;
    }
	
	.description {
		width: 107.5px;
		margin-left: -2.5px;
	}
	
	.description p {
		font-size: 14px;
		left: 165px;
		position: absolute;
		text-align: justify;
	}
	
	.exceptfirstnight {
		display: block;
		float: right;
		font-size: 0.75rem;
	}
}