/* 90s PDA Retro Style */
@import url('https://fonts.googleapis.com/css2?family=VT323&display=swap');

:root {
    --pda-bg: #8b9bb4;
    /* Device casing color */
    --screen-bg: #9ea792;
    /* Classic olive screen */
    --screen-shadow: inset 2px 2px 5px rgba(0, 0, 0, 0.2);
    --text-color: #2c3327;
    /* Dark pixel color */
    --pixel-border: 2px solid #2c3327;
    --highlight: #c4d4b6;
    --shadow: #5e6652;
}

* {
    box-sizing: border-box;
}

body {
    background-color: var(--pda-bg);
    font-family: 'VT323', monospace;
    color: var(--text-color);
    margin: 0;
    padding: 0;
    /* Remove padding */
    display: flex;
    flex-direction: row;
    /* Horizontal layout */
    align-items: stretch;
    /* Full height */
    min-height: 100vh;
    background-image: radial-gradient(#7a8ba4 15%, transparent 16%), radial-gradient(#7a8ba4 15%, transparent 16%);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
}

.container {
    background-color: var(--screen-bg);
    flex: 1;
    /* Take remaining space */
    width: auto;
    /* Override fixed width */
    max-width: none;
    /* Override max-width */
    margin: 20px;
    /* Add margin around content */
    padding: 20px;
    border: 4px solid #4a5564;
    border-radius: 10px;
    box-shadow:
        5px 5px 0px rgba(0, 0, 0, 0.3),
        inset 2px 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow-y: auto;
    /* Scroll content if needed */
}



h1,
h2,
h3 {
    text-transform: uppercase;
    text-align: center;
    border-bottom: 2px dashed var(--text-color);
    padding-bottom: 10px;
    margin-top: 0;
    text-shadow: 1px 1px 0px var(--highlight);
}

p {
    font-size: 1.2rem;
    line-height: 1.4;
}

/* Retro Inputs */
input[type="text"],
input[type="password"],
input[type="email"],
textarea,
select {
    width: 100%;
    background-color: var(--screen-bg);
    border: 2px solid var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 8px;
    margin-bottom: 15px;
    color: var(--text-color);
    box-shadow: inset 2px 2px 0px rgba(0, 0, 0, 0.1);
    outline: none;
}

input:focus {
    background-color: var(--highlight);
}

/* Retro Buttons */
/* Retro Buttons with Dopamine */
button,
.btn {
    background-color: var(--screen-bg);
    border: 2px solid var(--text-color);
    font-family: 'VT323', monospace;
    font-size: 1.2rem;
    padding: 8px 16px;
    cursor: pointer;
    text-transform: uppercase;
    box-shadow: 4px 4px 0px var(--text-color);
    /* Deeper shadow */
    transition: all 0.1s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-block;
    text-decoration: none;
    color: var(--text-color);
    margin: 5px;
    position: relative;
    top: 0;
    left: 0;
}

button:active,
.btn:active {
    top: 4px;
    left: 4px;
    box-shadow: 0px 0px 0px var(--text-color);
    /* Pressed effect */
    background-color: var(--highlight);
}

button:hover,
.btn:hover {
    background-color: var(--highlight);
    transform: translateY(-2px);
    /* Slight lift */
    box-shadow: 6px 6px 0px var(--text-color);
}

/* Links */
a {
    color: var(--text-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

/* Utility classes */
.text-center {
    text-align: center;
}

.button-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

/* Alert/Message boxes */
.alert {
    border: 2px solid var(--text-color);
    padding: 10px;
    margin-bottom: 15px;
    background-color: var(--highlight);
    text-align: center;
}

/* Table styles for lists */
table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

th,
td {
    border: 1px solid var(--text-color);
    padding: 8px;
    text-align: left;
}

th {
    background-color: rgba(0, 0, 0, 0.1);
    text-transform: uppercase;
}

@media (max-width: 768px) {
    body {
        flex-direction: column;
        /* Stack sidebar and content */
    }

    .container {
        margin-top: 60px;
        /* Space for the hamburger button */
        margin-left: 10px;
        margin-right: 10px;
        width: auto;
        padding: 15px;
        /* Reduced padding */
        border-width: 2px;
        /* Thinner border */
    }

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.8rem;
    }

    h3 {
        font-size: 1.5rem;
    }

    p {
        font-size: 1.1rem;
    }

    /* Adjust inputs and buttons for touch targets */
    input[type="text"],
    input[type="password"],
    input[type="email"],
    textarea,
    select,
    button,
    .btn {
        font-size: 16px;
        /* Prevent zoom on iOS */
        padding: 12px;
        /* Larger touch target */
    }

    /* Stack button groups */
    .button-group {
        flex-direction: column;
    }

    .button-group .btn {
        width: 100%;
        margin: 5px 0;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        margin: 15px;
        padding: 15px;
    }
}