html {
    box-sizing: border-box;
    font-size: 100%;
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

html,
body {
    height: 100%;
}

.logged_out {
    background: url(/static/images/bg_kindle2anki_1920.jpg) no-repeat;
    background-size: cover;
    display: flex;
    flex-direction: column;
    position: relative;
}

.logged_out::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    /*background-color: rgba(0, 0, 0, 0.8); /* Black with 30% opacity */
    background-color: rgba(255, 255, 255, 0.2); /* white with 30% opacity */
    /* OR use white: rgba(255, 255, 255, 0.3) */
    z-index: 1;
}

/* Ensure content stays above the overlay */
.logged_out > * {
    position: relative;
    z-index: 2;
}
/* Make main content grow to push footer down */
main.container {
    flex: 1 0 auto; /* This makes main content take available space */
}

/* Footer styles - already has bg-light class */
footer.footer {
    flex-shrink: 0; /* Prevent footer from shrinking */
    width: 100%;
}


/* Size for brand */
nav .navbar-brand
{
    font-size: xx-large;
}
/* links */
a {
    color: #3c8454;
    text-decoration: none;
}

a:hover {
    color: #bcaa96;
    text-decoration: none;
}

/* nav .navbar-brand .green
{
    color: #2e944b;
} */
.green
{
    color: #2e944b;
}
/* nav a 
{
    color: #f57c00;
} */

/* background for alert bar */
.flash-bar {
    background-color: #e8f9e9;
    padding: 0.25rem 0.5rem;  /* overrides .alert padding */
    margin-bottom: 0.25rem;
    line-height: 1.2;
    min-height: unset;
    max-height: 6rem;
    scrollbar-width: thin; /* for Firefox */
    overflow-y: auto;      /* prevent overflow */
    overflow-x: hidden;    /* recommended  */
    scroll-behavior: smooth;
}
.flash-bar::-webkit-scrollbar {
    width: 6px;
}

.flash-bar .flashes-sm {
    font-size: 0.85rem;       /* smaller text */
    padding: 0.25rem 0.75rem; /* thinner height */
    margin-bottom: 0.2rem;    /* less spacing */
    margin-top: 0.2rem;
}
.flashes-sm {
    display: flex;
    flex-direction: column-reverse;
}
/* links */
a {
    color: #3c8454;
    text-decoration: none;
}

a:hover {
    color: #bcaa96;
    text-decoration: none;
}
.upload-form {
            background: #f5f5f5;
            padding: 30px;
            border-radius: 10px;
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

input[type="file"] {
            width: 300px;
            padding: 10px;
            border: 2px dashed #ccc;
            border-radius: 5px;
            background: white;
    }

/* selectors for table styling */
.row-header {
    background-color: #038542;
    color: white;
    font-weight: bold;
}
.cover-cell {
    min-width: 150px;
    }
.button-cell{
    min-width: 150px;
}

/* #region FOOTER
------------------------------------*/
.footer {
    /* background: #d2d3d5; */
    /* background: #e8f9e9;  */
    color: green; 
}
.socials {
    list-style-type: none;
    padding: 0;
}

.socials li {
    display: inline-block;
    margin-left: 15px;
    margin-top: 15px;
}

.socials img {
    width: 32px;
}

.socials img:hover {
    opacity: 0.5;
}

@media screen and (min-width: 860px) {
    .footer {
        display: flex;
        /* justify-content: space-between; */
        justify-content: space-around;
        align-items: center;
        padding: 0px 20px;
    }
}

@media screen and (max-width: 859px) {
    .footer {
        text-align: center;
        padding: 10px;
    }
}