html, body {
    width: 100%;
    box-sizing: border-box;
    padding: 0px;
    margin: 0px;
}

body {
	background-color:#e9e9e9;
	 font-family: "Noto Sans", sans-serif;
}

a.tab, h1, h2, h3, h4, .search-info, .nothing-here {
    font-family: "VT323", monospace;
    font-weight: 400;
    font-style: normal;
}

h1 a { color: #000; text-decoration:none; }
h1 a:hover { color: orange; text-decoration: underline; }

h3.notice {
    margin-bottom:0px;
}

h3.notice, .nothing-here {
    padding: 5px 10px;
    background: #000;
    color: #fff;
    display: inline-block;
    margin-right: 50px;
    font-size: 20px;
}
h3.notice:before, .nothing-here:before {
    content: "//! ";
    color: orange;
}

h3.notice a {
    color: orange;
}

#layoutToggle {
    position: absolute;
    top: 30px;
    right: 30px;
    display: block;
    padding: 5px;
    width: 20px;
    height: 20px;
    overflow: hidden;
    text-indent: -999px;
    border: 1px solid #000;
    border-radius: 5px;

}
.list-view #layoutToggle {
    background:url('img/grid_black.png') center center no-repeat;
    background-size: 15px;
}
.tile-view #layoutToggle {
    background:url('img/list_black.png') center center no-repeat;
    background-size: 15px;
}

#mainContainer {
	width: 90%;
	max-width: 800px;
	margin: 20px auto;
	padding: 0px 20px 20px;
	background-color: #fefefe;
	border-radius: 20px;
	box-shadow: 5px 5px #e0e0e0;
    box-sizing: border-box;
}
#mainContainer h1 {
    display: block;
    padding: 20px 20px 0px;
    margin: 0px 0px 10px;
    text-align: center;
    font-size: 56px;
}

.block {
    margin: 20px 0px;
    box-sizing: border-box;
    box-shadow: 0px 0px 10px #e9e9e9;
    padding: 10px 30px;
    border-radius: 20px;
    position: relative;
}

table { 
	border-collapse: collapse;
    margin: 25px 0;
    font-size: 0.9em;
    font-family: sans-serif;
    min-width: 400px;
    width: 100%;
    border: 0px;
	}

th, td { 
	padding: 5px 10px; 
	border: 0px;
	text-align: left;
    font-size: 13px;
    border-right: 1px solid #e9e9e9;
}

tr.type-1 td { 
    border-right: 1px solid #c6c6c6;
}


td:first-child {
    max-width: 100px;
}

td:last-child,
th:last-child {
    font-size: .8em;
    max-width: 200px;
    border-right: 0px;
}

tr {
	border-bottom: 2px solid #000;
}

td.more-info { cursor: pointer; }
td.more-info.larger {
    font-size: 16px;
    display: inline-flex;
    min-width: 100%;
    margin: -10px 0px;
    background: #fff;
    position: relative;
    z-index: 5;
    border: 2px solid #000;
    border-radius: 20px;
    box-shadow: 0px 5px 50px rgb(0 0 0 / 17%);
    padding: 20px 10px;
}

input {
    padding: 10px;
    border-radius: 20px;
    margin: 5px 3px;
    border: 1px solid #000;
    display: inline-block;
    width: auto;
    font-size: 13px !important;
    font-weight: 100;
    font-family:'Source Sans Pro', sans-serif;
    flex-grow: 1;
}

input[name="descrip"], input[name="special"] {
    width: 100%;
    max-width: 300px;
}

form {
    width: 100%;
    display: flex;
    flex-direction: row;
    align-content: center;
    align-items: center;
    flex-wrap: wrap;
    justify-content: center;
    margin-bottom: 20px;
}

button, .btn {
	-webkit-appearance: none;
    border-radius: 20px;
    border: 1px solid #000;
    padding: 10px 20px;
    vertical-align: middle;
    display: inline-block;
    margin: 5px;
    text-decoration: none;
    background-color: #eaeaea;
    color: #000;
    font-size: 13px !important;
    font-weight: 100;
    font-family:'Source Sans Pro', sans-serif;
    text-align: center;
}

.tag-pill {
	text-decoration: none;
	color: #000;
	display: inline-block;
	padding: 5px 10px;
	border-radius: 20px;
	border: 1px solid #000;
	margin:4px;
	font-size: 12px;
	background-color: #ebebeb;
}
.tag-pill:hover, button:hover, .btn:hover {
	background-color: #ff9800;
}

.tabs {
    margin: 0px 0px -20px 10px;
}

a.tab {
    display: inline-block;
    text-decoration: none;
    color: #000;
    padding: 2px 12px;
    border: 0px solid #fff;
    border-radius: 10px 10px 0px 0px;
    border-width: 1px 1px 0px 1px;
    box-shadow: 1px -3px 4px #ebebeb;
    margin: 0px 3px;
    font-size: 18px;
}

a.tab.active {
    border-top: 2px solid #FF9800;
    border-width: 2px 0px 0px 0px;
    box-shadow: 1px -3px 5px #ff98003d;
}

span.search-info {
    display: block;
    margin: 0px auto 20px;
    text-align: center;
    color: #FF9800;
    width: 422px;
    border: 1px solid #FF9800;
    border-radius: 20px;
    padding: 7px;
}



.checkbox-wrap {
    width: 100%;
    text-align: center;
    padding: 10px;
}

tr.type-1 {
    background-color: #f0f0f0;
}


div#dice {
    border-bottom: 1px solid #f3f3f3;
    position: relative;
    margin: 0px -20px 0px -20px;
    border-radius: 20px 20px 0px 0px;
    padding-left: 20px;

      -webkit-user-select: none; /* Safari */
      -ms-user-select: none; /* IE 10+ and Edge */
      user-select: none; /* Standard syntax */
}
div#dice div {
    display: inline-block;
    font-size: 12px;
    padding: 5px 8px;
    margin: 0px 2px;
    color: #b5b5b5;
}
.randomButton, .clear-roll { cursor:pointer; }

.result { 
    padding:5px 20px !important;
    background-color: orange;
    color: #000000 !important; }

.rolling {
    font-weight: bold;
}



.button-group {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
}

button.deleteRow,
button.unpinRow,
button.pinRow {
    padding: 2px 10px;
    border-radius: 5px;
    background-color: #bc2800 !important;
}

button.deleteRow,
button.unpinRow {
    display: block;
    overflow: hidden;
    text-indent: 999px;
    position: relative;
    width: 25px;
    height: 25px;
    background: url(img/delete_black.png) center center no-repeat;
    background-size: 18px;
    background-color: unset !important;
}
button.pinRow {
    display: block;
    overflow: hidden;
    text-indent: 999px;
    position: relative;
    width: 25px;
    height: 25px;
    background: url(img/pin_black.png) center center no-repeat;
    background-size: 18px;
    background-color: unset !important;
}
.card-actions button {
    cursor: pointer;
}

div.pinned-area {
    border: 2px solid #868686;
    border-radius: 20px;
    box-shadow: 0px 0px 10px #00000047;
    margin: 0px 0px 40px;
}
div.pinned-area h3 {
    padding-left: 20px;
}


.credits {
    text-align: center;
    padding: 0px;
    margin: 10px 0px 40px;
    font-size:13px;
}

.credits a {
    color: #ccc !important;
}



    #rpgGenerator {
        padding: 20px;
    }
    
    .button-group {
        display: flex;
        gap: 10px;
        margin-bottom: 20px;
        flex-wrap: wrap;
    }
    
    .genButton {
        padding: 10px 20px;
        border-radius: 5px;
        cursor: pointer;
        transition: opacity 0.2s;
        flex-grow: 1;
        font-weight: bold;
    }

    h3.pinned-title {
        margin: 0px;
    }

    .character-container {
        display: flex;
        flex-direction: column;
        gap: 15px;
        margin-top: 15px;
    }
    
    .character-card {
        padding-bottom: 5px;
        transition: all .3s;
    }
    
    .card-header {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 0;
        padding-bottom: 5px;
    }
    
    .character-info {
        display: flex;
        gap: 10px;
        align-items: center;
        font-size: 15px !important;
    }
    
    .character-name {
        font-weight: bold;
    }
    
    .character-class {
        color: #666;
        font-weight: 500;
    }
    
    .character-skill {
        color: #888;
        font-style: italic;
    }
    
    .stats-container {
        display: flex;
        gap: 5px;
        flex-wrap: nowrap;
        flex-direction: row;
        justify-content: space-between;
        align-items: stretch;
    }
    
    .stat-box {
        background: #8f8f8f26;
        padding: 4px 10px;
        border-radius: 4px;
        text-align: center;
        flex-grow: 1;
    }
    
    .stat-label {
        font-size: 9px;
        text-transform: uppercase;
        margin-bottom: 0px;
    }
    
    .stat-value {
        font-size: 20px;
        font-weight: bold;
    }
    
    .card-actions {
        display: flex;
        gap: 8px;
    }
    
    
    #pinnedContainer {
        background-color: #f8f8f8;
        padding: 15px;
        border-radius: 8px;
    }





















.darkmode {
    position: absolute;
    right: 15px;
    top: 0px;
}

body.dark-mode h1 a {
    color: #fff;
}

body.dark-mode {
    background-color: #000;
    color: #ccc;
}
body.dark-mode #mainContainer {
    background-color: #222;
    box-shadow: 5px 5px #000000;
}
body.dark-mode .block {
    box-shadow: 0px 0px 10px #000000;
}
body.dark-mode .tab {
    color: #fff;
    border: 0px solid #000000;
    box-shadow: 1px -3px 4px #121212;
}
body.dark-mode a.tab.active {
    border-top: 2px solid #FF9800 !important;
}
body.dark-mode td.more-info.larger {
    color: #000;
}
body.dark-mode input, body.dark-mode button, 
body.dark-mode .btn, body.dark-mode .tag-pill {
    color: #fff;
    background-color: #000;
    border: 1px solid #ccc;
}
body.dark-mode .tag-pill:hover {
    background-color: orange;
}
body.dark-mode tr.type-1 {
    background-color: #2d2d2d;
}
body.dark-mode div#dice {
    border-bottom-color: #000;
}
body.dark-mode th, body.dark-mode td {
    border-right: 1px solid #161616;
}


body.dark-mode #pinnedContainer {
    background-color: #000;
}

body.dark-mode button.deleteRow,
body.dark-mode button.unpinRow {
    display: block;
    overflow: hidden;
    text-indent: 999px;
    position: relative;
    width: 25px;
    height: 25px;
    background: url(img/delete.png) center center no-repeat;
    background-size: 18px;
    background-color: unset !important;
}
body.dark-mode button.pinRow {
    background: url(img/pin.png) center center no-repeat;
    background-size: 18px;
    background-color: unset !important;
}


.deleteRow:hover, .pinRow:hover, .unpinRow:hover,
body.dark-mode .deleteRow:hover, body.dark-mode .pinRow:hover, body.dark-mode .unpinRow:hover {
    background-color: orange !important;
}










@media screen and (max-width: 550px) {
    #mainContainer h1 {
        margin-bottom: 0px;
    }
    #mainContainer {
        width: 100%;
        max-width: 800px;
        margin: 20px auto;
        padding: 0px 10px 10px;
        background-color: #fefefe;
        border-radius: 20px;
        box-shadow: 5px 5px #e0e0e0;
    }
    .block {
        padding: 10px 10px;
    }
    .nothing-here, span.search-info {
        width: auto;
    }
}

@media screen and (max-width: 445px) {
    table {
        min-width: auto;
    }
    td:first-child {
        max-width: 65px;
    }
    form {
        width: 100%;
        display: flex;
        align-items: stretch;
        justify-content: space-evenly;
        margin-bottom: 20px;
        flex-direction: column;
        flex-wrap: nowrap;
    }
    .tabs {
        margin-left: 5px;
    }
    .tabs a.tab {
        padding: 5px 15px;
    }
    .stats-container, .card-header, .character-info {
        flex-wrap: wrap;
    }
    .tile-view .weapon-card {
    width: 100% !important;
    }
}
