@keyframes colorChange {
  from { background-color: black; background: black;  border-image: conic-gradient(rgb(0, 0, 0) 0 0) fill 0/
    var(--r) calc(100% - var(--p) - var(--b)/2) 0 calc(var(--p) - var(--b)/2)/
    0 0 var(--h) 0;  }
  to { background-color: white; background: white;  border-image: conic-gradient(white 0 0) fill 0/
    var(--r) calc(100% - var(--p) - var(--b)/2) 0 calc(var(--p) - var(--b)/2)/
    0 0 var(--h) 0;}
}

.itemDesk.animate {
  animation: colorChange 0.25s forwards;
}
#responsive-warning{
    display: none;
}

a {
    height: fit-content;
    width: fit-content;
}
body{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    height: 100vh;
    background-color: #dec5a9;

}

.itemDesk{
    display: unset;
    position: absolute;
    justify-content: center;
    align-items: center;
    background-color: white;
    height: 35px;
    width: 75px;;
    margin: 15px;
    padding: 10px;
}

.container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;

}
.logs {
    display: flex;
    flex-direction: column;
    background-color: rgba(68, 68, 68, 0.426);
    border: double black;
    margin: 25px;
    width: 175px;
    height: 500px;
}
.logs > a{
    background-color: rgb(187, 187, 187);
    padding: 5px;
    border-bottom: dashed black;
}
.gap{
    width: 175px;
}
.shelf {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(55px, 1fr));
    padding: 5px 25px;
    margin: 0 auto;
    height: 450px;
    width: 700px;
    background-image: url(./source/Shelf.gif);
    background-repeat: round;
    grid-gap: 15px; 
    grid-auto-rows: 120px; 
}
.book {
    height: 120px;
    width: 50px;
    margin-left: 7px;
    background-image: url("./source/Book.png");
    transition: all 0.50s;
    transform-origin: bottom center;

}
.book:hover {
    transition: all 0.50s;
    transform: rotateZ(5deg);
}
footer{
    width: 100%;
    padding-top: 5px;
    text-align: center;
    font-size: large;
    background-color: #76767631;
    height: 100%;
}
.itemDesk {
  /* triangle dimension */
  --b: 1em; /* base */
  --h: 1em; /* height */

  --p: 50%; /* triangle position (0%:left 100%:right) */
  --r: 1.2em; /* the radius */

  padding: 1em;
  border-radius: 1em;
  clip-path: polygon(0 100%,0 0,100% 0,100% 100%,
    min(100%,var(--p) + var(--b)/2) 100%,
    var(--p) calc(100% + var(--h)),
    max(0%  ,var(--p) - var(--b)/2) 100%);
  background: white;
  border-image: conic-gradient(white 0 0) fill 0/
    var(--r) calc(100% - var(--p) - var(--b)/2) 0 calc(var(--p) - var(--b)/2)/
    0 0 var(--h) 0;
}

@media (max-width: 768px){
    body {
        overflow-x: hidden;
        width: 100%;
    }
    body{
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 0px;
        height: 100vh;
        background-color: #dec5a9;

    }
    h1{
        position: absolute;
        font-size: 30px;
        top: 15%;
    }
    .container{
        display: flex;
        flex-direction:column;
        align-items: center;
        justify-content: center;
        width: 90%;
        height: inherit;

    }
    .shelf {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        padding: 5px;
        margin: 0px;
        height: 150px;
        width: 270px;
        background-image: url('source/Shelf.png');
        background-repeat: no-repeat;
        background-size:cover;
        background-position:left;
        grid-gap: 1px; 
        grid-auto-rows: 35px; 
        padding-top: 0px;
    }
    .book {
        height: 45px;
        width: 18px;
        margin-left: 7px;
        background-image: url("source/Book.png");
        background-size:cover;
        transition: all 0.50s;
        transform-origin: bottom center;

    }
    .gap{
        width: 0px;
    }
    .logs {
        overflow: scroll;
        display: flex;
        flex-direction: row;
        background-color: rgba(68, 68, 68, 0.426);
        border: double black;
        margin: 25px 0px;
        width: 250px;
        height: 105px;
    }
    .logs > a{
        background-color: rgb(187, 187, 187);
        padding: 5px;
        border-bottom: none;
    }
    footer{
        display: none;
        width: 5px;
    }
    #responsive-warning.show-bottom {
        height: 100px;
        width: 300px;
        display: block;
        position: absolute;
        bottom: 0%;
        left: 10%;
    }

    #responsive-warning.show-bottom > p {
        font-size: large;
    }
}
@media (max-width: 810px) and (max-height: 600px){
    
    footer{
      display: none
    }
    
    .container{
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: center;

    }
    .logs {
        display: flex;
        flex-direction: column;
        position: relative;
        bottom: 0px;
        background-color: rgba(68, 68, 68, 0.426);
        border: double black;
        margin: 25px;
        width: 100px;
        height: 60%;
    }
    .logs > a{
        background-color: rgb(187, 187, 187);
        padding: 5px;
        border-bottom: dashed black;
    }
    /*.gap{
        width: 175px;
    }*/

    .shelf {
        display: grid;
        position: relative;
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
        padding: 7px;
        margin: 0px;
        height: 225.25px;
        width: 390.438px;
        bottom: -50px;
        background-repeat: no-repeat;
        background-size:cover;
        background-position:left;
        grid-gap: 10px; 
        grid-auto-rows: 35px; 
    }

    h1{
        position: absolute;
        font-size: 30px;
        top: 5%;
    }
     .book {
        height: 60px;
        width: 25px;
        margin-left: 7px;
        background-size:cover;
        transition: all 0.50s;
        transform-origin: bottom center;

    }

        #responsive-warning.show-left {
        height: 100px;
        width: 35px;
        display: block;
        position: absolute;
        top: 20%;
        left: 3%;
    }

    #responsive-warning.show-left > p {
        font-size: small;
    }

}