

html {
    font-size: 14px;
}

@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}


/*  Button Colors   */
.red {
    color: white;
    background-color:red;
}

.blue {
    color: white;
    background-color: #273a82;
}

.green {
    color: white;
    background-color: green;
}


/*  Main Grid   */
.grid2x2 {
    position: absolute;
    top: 1%;
    bottom: 1%;
    right: 1%;
    left: 1%;
    font-size: 60px;
    margin-bottom: 0px;
    margin: 0px;
    display: grid;
}

.grid-row{
    display:flex;
    grid-column-gap: 1%;
}

.grid-column{
    display: flex;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    justify-content: center;
    align-items: center;
    flex: 1;
    margin-bottom: 1%;
}

.concentrate:hover {
    animation-name: grid-hover;
    animation-duration: 0.3s;
    animation-fill-mode: forwards;
}

/*  Radio Button  */

#radio-player {
    width: 100%;
    height: 100%;
    color: white;
    display: flex;
    justify-content: center;
    align-items: center;
}

#radio-player path{
    stroke-linejoin:bevel;
    stroke: white;
}

#radio-player button {
    padding: 0;
    border: 0;
    background: transparent;
    cursor: pointer;
    outline: none;
    width: 60px;
    height: 60px;
}

.bg-blink{
    animation: blink 3s infinite;
}

/* Login Form */
.login-form {
    position: absolute;
    top: 1%;
    bottom: 1%;
    right: 1%;
    left: 1%;
    font-size: 60px;
    margin: 0px;
    display: grid;
}
.login-row {
    display: flex;
}

.login-column {
    display: flex;
    padding: 1%;
    justify-content: left;
    align-items: center;
    flex: 1;
}
.login-column input {
    width:90%;
}
.login-button {
    border: none;
    margin: 1%;
    text-align: center;
    justify-content: center;
    user-select: text;
    text-decoration: none;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

.login-button:hover{
    color: white;
}

/*  Animations  */
@-webkit-keyframes fadeIn {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 0.6;
    }

    100% {
        opacity: 2;
    }
}

@keyframes blink {
    0% {
        background-color: #939cc0;
    }

    50% {
        background-color: #273a82;
    }

    100% {
        background-color: #939cc0;
    }
}

@keyframes grid-hover {

    0% {
        -webkit-transform: scale3d(1, 1, 1);
        transform: scale3d(1, 1, 1);
    }

    100% {
        -webkit-transform: scale3d(1.025, 1.025, 1.025);
        transform: scale3d(1.025, 1.025, 1.025);
    }
}

@keyframes fadeIn {
    0% {
        opacity: 0;
    }

    75% {
        opacity: 0.6;
    }

    100% {
        opacity: 2;
    }
}

@media only screen and (max-width: 700px) {
    .login-form{
        position: relative;
    }
    .grid-row {
        flex-wrap: wrap;
    }

    .grid-column {
        flex-basis: 100%;
    }

    .login-row {
        flex-wrap: wrap;
    }

    .login-column {
        flex-basis: 100%;
    }

}

.admin-divbox{
    padding: 15px 0;
}

.admin-divbox label {
    display: block;
}

.admin-divbox a{
    display: block;
}

/* AudioBook list */
.grid-books {
    display: grid;
    margin: 1%;
    font-size: 60px;
    grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)); /* Adjust column width as needed */
    grid-auto-rows: 400px;
    grid-gap: 10px; /* Adjust gap between items as needed */
    justify-items: center;
}

.book-item {
    display: flex;
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    justify-content: center;
    align-items: center;
    margin-bottom: 1%;
    width: 100%; /* Ensure each grid item spans the full width of the column */
    height: 100%; /* Ensure each grid item spans the full height of the row */
}

.book-cover {
    position: relative;
    background-size: cover; /* Cover the entire area with the background image */
    background-position: center; /* Center the background image */
}

.text-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    opacity: 90%;
    padding: 10px;
    border-radius: 5px;
    text-align: center;
}

    .text-overlay h4 {
        margin-bottom: 5px;
    }

    .text-overlay p {
        margin: 0;
    }

/* Apply blur effect */
.book-cover::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(5px); /* Adjust blur strength as needed */
}

/* Styling for the "Go Back" button */
#back {
    z-index: 999; /* Ensure the button appears above other elements */
    min-width: auto; /* Set the width of the button */
    height: auto; /* Set the height of the button */
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 60px;
    padding:10px;
    border-radius: 50%; /* Make the button round */
    box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
    aspect-ratio: 1 / 1; /* Set aspect ratio to 1:1 for a perfect circle */
}


/* Audio-Book page */
.controls-book {
    font-size:40px
}
.controls-book input[type=number]{
    width: 3ch;
}
