@font-face {
    font-family: 'Pixels';
    src: url('fonts/PixelifySans-Regular.ttf');
}

@font-face {
    font-family: 'Caudex';
    src: url('fonts/Caudex-Regular.ttf');
}

@font-face {
    font-family: 'Gothic';
    src: url('fonts/ScienceGothic-Regular.ttf') format('truetype');
}

@font-face {
    font-family: 'Jacquard12';
    src: url('fonts/Jacquard12-Regular.ttf') format('truetype');
}

html {
    margin: 0;
    box-sizing: border-box;
    background-color: black;
    background-image: url('images/bg-m.webp');
    width: 100%;
    height: 100%;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    font-family: 'Pixels';
    overflow: hidden;
    cursor: url('images/pixel-cursor.svg'), auto;

}

#welcome-div {
    margin: 0;
    width: 40%;
    background-color: #cc8fff;
    text-align: center;
    padding: 20px;
    border: 5px solid black;
    border-radius: 25px;
    position: relative;
    font-size: x-large;
}

#welcome-div::before {
    background: none;
    border: 4px solid #a441bd;
    border-radius: 20px;
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    pointer-events: none;
}

.container {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.pointer {
    cursor: url('images/pixel-pointer.svg'), pointer;
}

nav ul {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0;
}

nav ul li {
    width: fit-content;
    list-style-type: none;
    cursor: url('images/pixel-pointer.svg'), pointer;
    margin: 0 auto 3%;
}

.menu-btns {
    width: 200px;
    display: block;
}

.hidden {
    display: none;
}

#menu-button {
    width: 200px;
    display: block;
    margin-bottom: 4%;
    margin-top: 7%;
}

.page {
    height: 85%;
    width: 55%;
    background-color: #400f7b;
    position: absolute;
    z-index: 2;
    top: 5%;

    padding: 20px;
    border: 5px solid black;
    border-radius: 25px;
    color: white;

    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.page::before {
    background: none;
    border: 4px solid #8e3cdb;
    border-radius: 20px;
    content: "";
    display: block;
    position: absolute;
    top: 0px;
    left: 0px;
    right: 0px;
    bottom: 0px;
    pointer-events: none;
}

.scrollable {
    margin-top: 10px;
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-color: rgb(124, 80, 255) rgb(23, 28, 52);
    scrollbar-width: 6px;
    padding: 20px;
    height: calc(100% - 80px);
    font-size: larger;
    line-height: 1.3;
}

.flex {
    display: flex;
    flex-direction: row;
    justify-content: baseline;
}

.img-wrapper-25 {
    max-width: 25%;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#books-div {
    border: 2px solid rgb(65, 22, 102);
    padding: 20px;
    padding-top: 0;
    font-family: 'Eater';
    line-height: 1.3;
    background-color: #16003e;
}

.book-title {
    text-decoration: underline;
}

#books-titles p:hover {
    color: #878787;
}

#books-review-box {
    background-color: black;
    margin: 0 auto;
    border: 4px dotted rgb(57, 47, 169);
    padding: 15px;
    max-width: 100%;
    height: 300px;
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-color: rgb(80, 95, 255) rgb(23, 28, 52);
    scrollbar-width: 5px;
    font-family: 'Caudex';
    line-height: 1.3;
    font-size: medium;
}

#books-review-box div {
    display: none;
}

.book-title.active {
    color: #8a8a8a;
}

#books-titles {
    background-color: black;
    font-size: medium;
    margin: 0 auto;
    border: 3px solid rgb(57, 47, 169);
    padding: 20px;
    max-width: 100%;
    height: 150px;
    overflow: scroll;
    overflow-x: hidden;
    scrollbar-color: rgb(80, 95, 255) rgb(23, 28, 52);
    scrollbar-width: 5px;
    font-family: 'Caudex';
}

#log-typewriter-div {
    min-height: 90px;
}

#log-log {
    background-color: black;
    margin: 5px;
}

.log-post {
    padding-top: 5px;
    padding-bottom: 5px;
    color: rgb(183, 168, 244);
    line-height: 1.3;
}

.log-post-date {
    color: rgb(108, 96, 154);
    font-family: 'Gothic';
}

#log-log hr {
    height: 2px;
    color: rgb(97, 82, 255);
    background: rgb(97, 82, 255);
    font-size: 0;
    border: 0;
}

.quote {
    font-size: large;
    font-style: italic;
    color: white;
    margin-bottom: 30px;
}

#tarot-img {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
}

#tarot-img img {
    max-width: 35%;
    border-radius: 15px;
    border: 1px solid rgb(78, 78, 78);
    margin-right: 10px;
    margin-bottom: 10px;
}

.center {
    text-align: center;
}

.m-center {
    justify-content: center;
    margin-bottom: 20px;
    background-color: white;
    color: black;
}

.bucket {
    background-color: black;
    padding: 3px;
    border-radius: 25px;
    border: 6px dotted white;
    font-family: 'Jacquard12';
    font-size: larger;
    line-height: 1.2;
    max-width: 50%;
    margin-right: 5px;
    margin-left: 5px;
}

#series-fav {
    background-color: black;
    font-family: 'Pixels';
    font-size: large;
    padding: 7px;
    border: 5px double white;
    max-width: 100%;
    margin-right: 14px;
    line-height: 1.3;
}

.sp-f {
    justify-content: space-around;
}
.max-50 {
    max-width: 50%;
}
#nicolas {
    background-color: #000000;
    text-align: center;
    border-radius: 10px;
    border: 5px dotted #ddb3ff;
    margin-top: 20px;
    padding-left: 15px;
    padding-right: 15px;
    padding-bottom: 15px;
    padding-top: 10px;
}

#nicolas a {
    color: #ddb3ff;
}

.black {
    background-color: black;
    padding: 5px;
}

#badges {
    margin-top: 40px;
    margin-bottom: 40px;
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-around;
}

#badges img {
    width: 100%;
    max-width: 180px;
    padding-bottom: 22px;
    padding-top: 5px;
}
.exit-btn {
       width: 20%; 
    }
    #enter-button {
        width: 35%;
    }
    #pix-img {
        width: 55%;
    }
    #pix-flex {
        display: flex;
        flex-direction: row;
        justify-content: center;
    }

/*LARGE*/
@media (max-width: 992px) {
    #welcome-div {
        width: 70%;
    }
    .menu-btns {
        width: 260px;
    }

    #menu-button {
        width: 260px;
    }
    .page {
        height: 92%;
        width: 85%;
        padding: 10px;
        top: 3%;
    }
    .scrollable {
        margin-top: 9px;
    }
    .exit-btn {
        width: 22%;
    }
    #enter-button {
        width: 38%;
    }
    #tarot-img img {
        max-width: 42%;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    #badges img {
        max-width: 200px;
    }
    #pix-img {
        width: 50%;
    }
}

/*MEDIUM*/
@media (max-width: 768px) {
    #welcome-div {
        width: 84%;
    }
    .menu-btns {
        width: 320px;
    }

    #menu-button {
        width: 320px;
    }
    .page {
        height: 94%;
        width: 90%;
        padding: 7px;
        top: 3%;
    }
    .scrollable {
        margin-top: 5px;
    }
    .exit-btn {
        width: 24%;
        margin-top: 5px;
       margin-left: 5px;
    }
    #enter-button {
        width: 35%;
    }
    #enter-button {
        width: 43%;
    }
    #books-review-box {
        padding: 7px;
    }
    #tarot-img img {
        max-width: 54%;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    #badges img {
        max-width: 230px;
    }
    #pix-img {
        width: 60%;
    }
}

/*SMALL*/
@media (max-width: 576px) {
    #welcome-div {
        width: 97%;
    }

    .menu-btns {
        width: 300px;
    }

    #menu-button {
        width: 300px;
    }
    .page {
        height: 98%;
        width: 98%;
        padding: 4px;
        top: 1%;
    }
    .scrollable {
        margin-top: 3px;
    }
    .exit-btn {
        width: 28%;
        margin-top: 5px;
       margin-left: 5px;
    }
    #enter-button {
        width: 50%;
    }
    #books-review-box {
        padding: 5px;
    }
    #tarot-img img {
        max-width: 60%;
        margin-right: 5px;
        margin-bottom: 5px;
    }
    #badges img {
        max-width: 240px;
    }
    #pix-img {
        width: 80%;
    }
}