:root {
    /* BS overrides */
    --color-white: #fff;
    --color-blue: #154f84;
    --color-blue-light: rgb(107, 136, 194);
    --color-blue-dark: rgb(10, 42, 104);
    --color-blue-bright: rgb(0, 0, 253);

    --color-gray-dark: rgb(127, 127, 127);
    --color-gray-light: rgb(164, 164, 164);
    --color-red: rgb(253, 0, 0);
    --color-green: rgb(0, 127, 0);

    --font-color-default: var(--color-white);
    --font-size-icon: 1.5em;

    --ga-padding-default: 0.5em;
}

a.logo
, a.logo:hover {
    color: var(--color-white);
    text-decoration: none;
}

.dashboard-tile {
    color: var(--font-color-default);
    background: var(--color-blue);
    border: solid 5px var(--color-blue-dark);
}

.dashboard-tile:hover {
    background: var(--color-blue-light);
}

.dashboard-tile a, .dashboard-tile a:visited, .dashboard-tile a:active {
    text-decoration: none;
    color: var(--font-color-default);
    font-size: 1.2em;
}

body {
   background-color: var(--color-blue-dark);
}

body.login {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: var(--color-blue-light);
}

.login-container {
    max-width: 400px;
    width: 100%;
    max-height: 400px;
    padding: 2rem;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.control-button a
, .control-button a:visited
, .control-button button
{
    color: var(--color-white);
    border: none;
    background: none;
    font-size: var(--font-size-icon);
    display: inline-flex;
    cursor: pointer;
    height: 100%;
    width: 100%;
    justify-content: center;
    align-items: center;
}

.dashboard-tile a
, .dashboard-tile a:visited {
    flex: 1;
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.record-row
, .record-description
, .record-toolbar
, .record-toolbar .button
{
    display: flex;
}

.record-list {

}

.record-list h2 {
    color: var(--color-white);
    padding: var(--ga-padding-default);
}

.record-row {
    flex-grow: 1;
    align-self: stretch;
    min-height: 100px;
    width: 100%;
    transition: all 0.5s ease-in-out;
    flex-basis: 25%;
    max-height: 150px;
}

.record-row .record-message {
    background-color: var(--color-gray-light);
    flex-grow: 1;
    justify-content: center;
    align-items: center;
    display: flex;
    font-style: italic;
}

.record-description
, .record-toolbar {
    transition: flex-grow 0.3s ease-in-out, opacity 0.3s ease-in-out;
}


.record-description {
    background: var(--color-white);
    flex-grow: 4;
    align-self: stretch;
    max-width: 75%;
}

.record-toolbar {
    flex-grow: 1;
    background: green;
    align-self: stretch;
}

.record-toolbar .toolbar-message
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    color: var(--color-white);
    background-color: var(--color-gray-light);
}

.record-toolbar .button
{
    align-items: center;
    justify-content: center;
    flex-grow: 1;
    transition: flex-grow 0.3s ease-in-out, opacity 0.3s ease-in-out;
    font-size: var(--font-size-icon);
    color: var(--color-white);
    max-width: 25%;
}

.record-toolbar .button a
, .record-toolbar .button a:visited
, .record-toolbar .button button
, .record-toolbar .button form
{
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-white);
    border: 0;
    background: 0;
}

.record-toolbar .button.opener {
    background-color: var(--color-blue-bright);
    cursor: pointer;
}

.record-toolbar .button.delete {
    background-color: var(--color-red);
}

.record-toolbar .button.edit {
    background-color: var(--color-gray-dark);
}

.record-toolbar .button.check {
    background-color: var(--color-green);
}


.record-row.shrink .button.opener {
    max-width: 100%;
    width: 100%;
    flex-grow: 10;
    align-self: stretch;
}

.record-row.shrink .button.delete
, .record-row.shrink .button.edit
, .record-row.shrink .button.check
{
    flex-grow: 0;
    opacity: 0;
    overflow: hidden;
    width: 0;
    display: none;
}

.record-row.expand .record-description {
    flex-grow: 0;
    opacity: 0;
    overflow: hidden;
    width: 0;
}

.record-row.expand .button.opener .bi-chevron-left {
    display: none;
}

.record-row.expand .button.opener .bi-chevron-right {
    display: block;
}

.record-row.shrink .button.opener .bi-chevron-right {
    display: none;
}

.record-row.shrink .button.opener .bi-chevron-left {
    display: block;
}

/* Extra small devices (portrait phones, less than 576px) */
@media (max-width: 575px) {

}

/* Small devices (landscape phones, ≥576px) */
@media (min-width: 576px) {
    .dashboard-tile a, .dashboard-tile a:visited, .dashboard-tile a:active {
        text-decoration: none;
        color: var(--font-color-default);
        font-size: 1.5em;
    }
}

/* Medium devices (tablets, ≥768px) */
@media (min-width: 768px) {
    .dashboard-tile a, .dashboard-tile a:visited, .dashboard-tile a:active {
        text-decoration: none;
        color: var(--font-color-default);
        font-size: 1.5em;
    }
}

/* Large devices (desktops, ≥992px) */
@media (min-width: 992px) {
    .dashboard-tile a, .dashboard-tile a:visited, .dashboard-tile a:active {
        text-decoration: none;
        color: var(--font-color-default);
        font-size: 2em;
    }
}

/* Extra large devices (large desktops, ≥1200px) */
@media (min-width: 1200px) {

}

/* Extra extra large devices (larger desktops, ≥1400px) */
@media (min-width: 1400px) {

}