@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&display=swap');

/* Global Styles */
body {
    font-family: 'Press Start 2P', cursive;
    background: url('background.png') no-repeat center center fixed; 
    -webkit-background-size: cover;
    -moz-background-size: cover;
    -o-background-size: cover;
    background-size: cover;
    color: #f5f5f5;
    margin: 0;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background-color: black;
}

/* Header Styles */
header {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    color: #fff;
    border-bottom: 3px solid #f5f5f5;
}

header h1 {
    font-size: 18px;
}

h1 {
    font-size: 36px;
    margin: 0;
    text-shadow: 2px 2px #000;
}

/* Navigation Styles */
nav {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 10px;
    border-bottom: 3px solid #f5f5f5;
}

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    display: inline-block;
    margin-right: 10px;
}

nav ul li a {
    color: #fff;
    text-decoration: none;
    padding: 5px;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: #f5f5f5;
}

/* Main Content Styles */
main {
    margin: 20px auto;
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    border-radius: 10px;
    width: 90%;
}

h2 {
    font-size: 24px;
    text-shadow: 2px 2px #000;
}

p {
    line-height: 1.5;
    text-shadow: 1px 1px #000;
}

footer {
    background-color: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    color: #fff;
    border-top: 3px solid #f5f5f5;
    margin-top: auto;
}

input[type=text], select {
    width: 100%;
    padding: 12px 20px;
    margin: 8px 0;
    display: inline-block;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
}

button {
    font-family: 'Press Start 2P', cursive;
    width: 100%;
    background-color: rgba(76, 175, 80, 1);
    color: white;
    padding: 14px 20px;
    margin: 8px 0;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.red {
    background-color: rgba(244, 67, 54, 1);
}

.default {
    background-color: rgba(70, 130, 180, 1); 
}

button:hover {
    background-color: rgba(96, 195, 100, 1);
}

.red:hover {
    background-color: rgba(244, 87, 74, 1);
}

.default:hover {
    background-color: rgba(90, 150, 200, 1);
}

.menu-button {
    background-color: transparent;
    color: rgb(165, 165, 165)
}

.menu-button:hover {
    background-color: transparent;
    color: rgba(76, 175, 80, 1)
}

button:disabled{
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

button:disabled:hover{
    background-color: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.5);
    cursor: not-allowed;
}

@keyframes popIn {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

dialog {
    background-color: rgba(0, 0, 0, 0.9);
    color: #fff;
    border: 3px solid #f5f5f5;
    border-radius: 10px;
    padding: 20px;
    animation: popIn 0.5s ease-out;
}

dialog::backdrop {
    background: rgba(0, 0, 0, 0.9);
}

#button-context {
    display: flex;
    flex-direction: row;
    gap: 10px;
}

#button-context button {
    flex: 1;
}

#showoff-context{
    overflow: hidden;
    padding: 20px;
    border-radius: 10px;
    background-color: rgba(76, 175, 80, 0.2)
}

#task-context{
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 10px;
    background-color: rgba(90, 150, 200, 0.2)
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #f5f5f5;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(76, 175, 80, 1);
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.8);
}

tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.9);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table, th, td {
    border: 1px solid #f5f5f5;
}

th, td {
    padding: 15px;
    text-align: left;
}

th {
    background-color: rgba(0, 0, 0, 0.8);
    color: rgba(76, 175, 80, 1);
}

tr:nth-child(even) {
    background-color: rgba(0, 0, 0, 0.8);
}

tr:nth-child(odd) {
    background-color: rgba(0, 0, 0, 0.9);
}

.table{
    width: inherit;
    overflow-x: auto;
}

/* Scrollbar Styles */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb {
    background: rgb(105, 105, 105);
    border-radius: 6px;
    border: 3px solid rgba(0, 0, 0, 0.8);
}

::-webkit-scrollbar-thumb:hover {
    background: rgb(165, 165, 165);
}

pre {
    border-radius: 20px;
}

textarea {
    width: 100%;
    height: 100px;
    padding: 12px 20px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: rgba(0, 0, 0, 0.8);
    color: #fff;
    resize: none;
    font-size: 20px;
}

img {
    width: 100%;
    height: auto;
    border-radius: 20px;
}

li {
    margin: 15px 0;
}