/* dmtoy.css */
body {
    font-family: 'Cinzel', serif; /* Medieval-style font; include via Google Fonts or similar */
    background-image: url('paper.jpg'); /* Add a parchment texture image */
	background-repeat: repeat;
	background-position: center 72px;
    background-size: contain;
    margin: 0;
    padding: 0;
    color: #3c2f2f;
}

.container {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    width: 250px;
    background-color: rgba(139, 69, 19, 0.8); /* Brown with transparency */
    padding: 20px;
    color: #fff;
    box-shadow: 2px 0 5px rgba(0, 0, 0, 0.5);
}

.sidebar h1 {
    font-size: 24px;
    margin-bottom: 20px;
    text-align: center;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

.sidebar li {
    margin: 15px 0;
}

.sidebar a {
    color: #fff;
    text-decoration: none;
    font-size: 18px;
    display: block;
    padding: 10px;
    border-radius: 5px;
}

.sidebar a:hover, .sidebar a.active {
    background-color: rgba(212, 160, 23, 0.8); /* Gold highlight */
}

.content {
    flex-grow: 1;
    padding: 20px;
    background-color: rgba(255, 245, 238, 0.7); /* Light beige with transparency */
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

h2 {
    font-size: 22px;
    border-bottom: 2px solid #8b4513;
    padding-bottom: 5px;
    margin-bottom: 15px;
}

button {
    background-color: rgba(139, 69, 19, 0.8); /*#8b4513; /* Brown */
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.8);
    padding: 10px 15px;
    margin: 5px;
    border-radius: 5px;
    cursor: pointer;
    font-family: 'Cinzel', serif;
    font-size: 16px;
}

button:hover {
    background-color: rgba(212, 160, 23, 0.8); /* Gold */
}

.output {
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid #8b4513;
    padding: 15px;
    margin-top: 15px;
    border-radius: 5px;
    min-height: 100px;
    white-space: pre-wrap; /* Preserve line breaks for quests */
    overflow-y: auto;
    max-height: 600px;
}

/* Dice roller styling */
.dice-roller {
    margin-top: 20px;
    padding: 10px;
    background-color: rgba(139, 69, 19, 0.5); /* Brown with transparency */
    border-radius: 5px;
}

.dice-roller h2 {
    font-size: 18px;
    margin-bottom: 10px;
    color: #fff;
}

.dice-roller label {
    display: block;
    margin-bottom: 5px;
    color: #fff;
}

.dice-roller select,
.dice-roller input {
    width: 100%;
    padding: 5px;
    margin-bottom: 10px;
    border: 1px solid #8b4513;
    border-radius: 3px;
    background-color: #fff;
    color: #3c2f2f;
}

.dice-roller button {
    width: 100%;
    padding: 10px;
    background-color: rgba(139, 69, 19, 0.8);
    color: #fff;
    border: 1px solid #fff;
    border-radius: 5px;
    cursor: pointer;
}

.dice-roller button:hover {
    background-color: rgba(212, 160, 23, 0.7); /* Gold hover effect */
}

.dice-output {
    min-height: 20px;
    padding: 10px;
    background-color: rgba(255, 255, 255, 0.7);
    border-radius: 5px;
    color: #3c2f2f;
    margin-top: 10px;
}

/* Animation for rolling */
.rolling {
    animation: shake 0.1s infinite;
}

@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}

/* History styling */
#roll-history {
    background-color: rgba(255, 255, 255, 0.3);
    border: 1px solid #8b4513;
    border-radius: 5px;
    list-style: none;
    padding: 0;
    margin-top: 10px;
    max-height: 10em;
    overflow-y: auto;
}

#roll-history li {
    padding: 5px;
    border-bottom: 1px solid #ccc;
    color: #fff;
}