/**
 * COPYRIGHT 2023 Micah De Silva
 */

/* Reset some default browser styles */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
ul,
ol,
li {
    margin: 0;
    padding: 0;
    text-align: center;
}

h1 {
    padding: 10px;
    text-transform: uppercase;
    font-size: 32px;
}

ul,
li {
    list-style: none;
}
progress {
    border: 2px solid white;
    border-radius: 5px;
}
progress::-webkit-progress-bar {
    background-color: transparent;
}
progress::-webkit-progress-value {
    background-color: #ffffff;
}
/* General Layout and Typography */
body {
    font-family: "Arial", sans-serif;
    font-size: 22px;
    background-color: #1b1a27;
    color: #ffffff;
    line-height: 1.6;
    margin: 0;
    max-width: 600px; /* Set a max width for better readability on larger screens */
    margin: 0 auto; /* Center the content */
    padding: 20px;
}

button {
    background-color: #ee6055;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
}

button.disabled {
    background-color: #333;
    cursor: not-allowed;
}

button.disabled:hover {
    background-color: #333;
    cursor: not-allowed;
}

button:hover {
    background-color: #ee6055;
}

.hidden {
    display: none;
}

/* Role Selection Page (MainActivity) */
.tab-button {
    color: #ffffff;
    border: 5px solid #ee6055;
    background-color: #1b1a27;
    text-align: center;
    cursor: pointer;
    flex: 1; /* Equally distribute the width */
    text-transform: uppercase;
    font-size: 22px;

    width: 29%; /* Evenly spaced tabs */
    padding: 15px; /* Larger tap area */
    display: inline-block; /* Make tabs appear side by side */
    margin: 10px 1%;
}

.tab-button.active {
    color: #ffffff;
    background-color: #ee6055;
}

.tab-content {
    /*border: 1px solid #ccc;*/
    padding: 10px;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.role-control {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.role-description {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    font-size: 16px;
}

.role-description.active {
    max-height: 250px; /* adjust as needed */
}

.increment-button,
.decrement-button {
    font-family: "Courier New", Courier, monospace;
    padding: 5px;
    margin: 5px;
}

.role-count {
    font-family: "Courier New", Courier, monospace;
    width: 40px;
    font-size: 32px;
    text-align: center;
}

/* Role Selection (MainActivity) */
.role-wrapper {
    padding: 10px;
    border-bottom: 1px solid #333; /* Add a divider for clarity */
}

.role-wrapper:last-child {
    border-bottom: none; /* Remove the bottom border for the last role */
}

.role-count {
    margin: 0 10px;
}

/* Buttons */
button {
    display: block; /* Make buttons full width */
    margin: 15px 0; /* Adequate spacing between buttons */
    width: 100%;
}

.role-name {
    flex: 9;
    padding-right: 10px;
    text-align: left;
}
.role-count {
    flex: 1;
    text-align: center;
}
.increment-button,
.decrement-button {
    flex: 1;
}

/* Centering Elements */
body > * {
    margin-left: auto;
    margin-right: auto;
}

/* Role Display Enhancement */
#currentRoleDisplay {
    font-size: 24px;
    padding: 20px;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.5);
    text-align: center;
    margin-top: 20px;
}

#gamePreview {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#roleDisplay {
    min-height: 90vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

#gamePreview.hidden {
    display: none;
}

#roleDisplay.hidden {
    display: none;
}

#gameStats {
    font-size: 16px;
}

/* RoleToggleList Styling */
#roleToggleList li {
    opacity: 1;
    transition: opacity 0.3s ease;
    margin: 10px 0;
    padding: 15px;
    border-radius: 8px;
    text-align: center;
}
#roleToggleList li.dead {
    opacity: 0.3;
}

/* Header */
header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(27, 26, 39, 0.8); /* Slight transparency to header background */
    border-bottom: 1px solid #333;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

/* Footer */
footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background-color: rgba(27, 26, 39, 0.8); /* Slight transparency to footer background */
    font-size: 14px;
    border-top: 1px solid #333;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.25);
}

/* Main Content */
/* Assuming a height of 60px for both header and footer, adjust as needed */
main {
    padding-top: 60px;
    padding-bottom: 70px;
}

#exitGameButton {
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
}
