/* Variables */
:root {
    --foreground-rgb: 255, 255, 255;
    --background-start-rgb: 40, 40, 40;
    --background-end-rgb: 30, 30, 30;
}

/* Page Layout and Typography */
body {
    color: rgb(var(--foreground-rgb));
    background: linear-gradient(
            to bottom,
            transparent,
            rgb(var(--background-end-rgb))
    ) rgb(var(--background-start-rgb));
    font-weight: 400;
    min-height: calc(100vh - 60px);
    margin: 30px 0;
    font-size: 17px;
    font-family: Lato, sans-serif;
    line-height: 1.5em;
}

main {
    width: 90%;
    max-width: 760px;
    margin: auto;
}

h3 {
    margin-bottom: 10px;
}

strong, b {
    font-weight: 700;
}

a[href] {
    color: #328aff;
    text-decoration: none;
    transition: color 0.3s;
}

/* Buttons */
.button {
    display: inline-block;
    padding: 10px 20px;
    border: none;
    border-radius: 6px;
    color: white;
    background: #3c3c3c;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    margin: 4px 2px 10px 2px;
    cursor: pointer;
    transition: all 0.3s ease-in-out 0s;
}

.button:hover {
    background: #4c4c4c;
}

.button:hover,
.button:focus {
    transform: translateY(-1px);
}

.button:active {
    transform: translateY(1px);
    box-shadow: inset 0 -3px 2px rgb(0 0 0 / 30%), 0 3px 4px rgb(0 0 0 / 48%);
    transition: all 0.05s;
}

.production {
    background-color: rgb(208, 21, 43);
}

.production:hover {
    background-color: #a30d27;
}

.write-production {
    background-color: #8c0b21;
}

.write-production:hover {
    background-color: #000;
    box-shadow: inset 0 0 30px #f00;
}

.not-production {
    background-color: #2196f3;
}

.not-production:hover {
    background-color: #0b7dda;
}

.button.action {
    display: flex;
    justify-content: space-around;
    align-items: center;
    text-align: left;
}

.button.action::after {
    content: '→';
}

/* Grid Layout */
.grid-container-2-col {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 5px 20px;
}

.grid-container-3-col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 5px 20px;
}

.grid-container-4-col {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 5px 20px;
}

.grid-container-5-col {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: 1fr;
    grid-gap: 5px 20px;
}

.wrap-odd .button:nth-child(2n) {
  order: 1;
}

.grid-container-2-col .button,
.grid-container-3-col .button,
.grid-container-4-col .button,
.grid-container-5-col .button {
    min-height: 80px;
}

.grid-item {
    padding: 20px;
    text-align: center;
}


/* Notifications */
.warning {
    border: 1px solid #e48800;
    padding: 10px 30px;
    opacity: 1.0;
    display: flex;
    border-radius: 6px;
    box-shadow: inset 0 0 5px #e48800;
}

/* Cards */
.card {
    background: #2c2c2c;
    border-radius: 6px;
    padding: 20px;
    box-shadow: 0 0 10px 0 rgba(0, 0, 0, 0.2);
    margin: 20px 0;
}
