/*FONTS*/
@import url("https://fonts.googleapis.com/css2?family=Bitter:ital,wght@0,100..900;1,100..900&family=Raleway:ital,wght@0,100..900;1,100..900&display=swap");
:root {
    /*background*/
    --main-background: ;
    /* white / background */
    --col-bg: #f7f7f7;
    --col-text: ;
    /* pale dark blue / bold */
    --col-bold: #426a8a;
    /* light blue / accent */
    --col-accent: #73c2fb;
    /* light gold / borders */
    --col-border: #ffd700;
}

/*reset*/
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Railway", sans-serif;
    background-color: beige;
}
#shrine {
    margin-left: auto;
    margin-right: auto;
    padding: 5px;
    width: 90%;
}

.title {
    display: flex;
    align-items: center;
    border-bottom: solid 1px #939393;
    max-width: calc(40%);
}

.title img {
    max-width: 30px;
    vertical-align: baseline;
    margin-right: calc(1%);
}

h1 {
    font-family: "Bitter", serif;
    font-size: clamp(26px, 3vw, 36px);
    padding: 5px 0px;
}

h2 {
    font-family: "Bitter", serif;
    font-size: clamp(20px, 2vw, 30px);
    padding: 5px 0px;
}

h3 {
    font-family: "Bitter", serif;
    font-size: clamp(18px, 2vw, 28px);
    padding: 5px 0px;
}

.italics,
figurecaption {
    font-style: italic;
}

p,
figcaption {
    font-size: clamp(16px, 2vw, 22px);
}
p {
    margin: 10px;
}

.spoiler {
    background-color: black;
    color: black;
}

.spoiler:hover {
    background: transparent;
}

#introduction,
#appearances,
#opinion,
#headcanons,
#shipping,
#images,
#quotes {
    margin-bottom: 20px;
}

/*Introduction*/
#introContent,
#opinionContent {
    display: flex;
    justify-content: center;
    margin-top: 10px;
}

#introText,
#opinionText {
    max-width: 50%;
    max-height: 370px;
    overflow-y: scroll;
    padding: 10px;
}

#introPictures,
#opinionImages {
    max-width: 400px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
}

#introPictures img,
#opinionImages img {
    max-width: 190px;
}

/*Appearances*/
.seriesLink img {
    max-width: 300px;
}

.seriesLink img:hover {
    background-color: #73c2fb;
}

#appearanceMain,
#appearanceSpin {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: center;
    gap: 10px;
}

.seriesLink {
    position: relative;
}

.seriesName,
.seriesYear {
    font-family: "Bitter", serif;
    text-align: end;
    text-decoration: none;
    color: white;
    background-color: black;
    padding: 5px;
    position: absolute;
    z-index: 1;
}

.seriesName {
    bottom: 10px;
    right: 10px;
}

.seriesYear {
    bottom: 62px;
    right: 10px;
}

/*modals*/
#modalOverlay {
    opacity:0;
    pointer-events: none;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    position: fixed;
    z-index: 99999;
    background-color: rgba(0, 0, 0, 0.5);
    overflow-x: hidden;
    overflow-y: scroll;
    transition: opacity 0.4s ease-in-out;
}

.modalContainer {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    box-sizing: border-box;
    display: flex;
}

.modalBody {
    background-color: white;
    max-width: 700px;
    max-height: 700px;
    overflow-x: hidden;
    overflow-y: scroll;
}

.closeBtn {
    position: absolute !important;
    top: 0;
    background-color: #121212;
    color: white;
    padding: 5px 10px;
    pointer-events: auto;
    left: 100%;
    margin-left:8px;
}

.closeBtn:hover {
    cursor: pointer;
    background-color: white;
    color: #121212;
    transition: 0.3s ease-in-out;
}

.active {
    opacity: 1 !important;
}

/*Inner modal styling*/
.modalTitle{
    background-color: #121212;
    color:white;
    padding: 10px;
}
.modalContent{
    padding: 5px;
}


/*Headcanons*/

/*Shipping*/
#shipContent {
    flex-wrap: wrap;
}

#shipContent,
.shipContainier,
#imgGallery {
    display: flex;
    justify-content: center;
    align-content: flex-start;
}

.shipComments {
    max-width: 290px;
    max-height: 300px;
    overflow-y: scroll;
    padding: 0px 10px;
}

.shipComments p{
    font-size: clamp(14px, 2vw, 18px);
}

.shipBox {
    margin: 10px;
}

.shipBox img {
    width: 100px;
    height: 100px;
    border: 3px solid gold;
}

/*Images*/
#imgGallery {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-content: flex-start;
}

figure {
    padding: 4px;
}

figcaption {
    padding: 4px;
    margin: auto;
    text-align: center;
    width: 296px;
    background-color: #73c2fb;
}

/*Quotes*/

/*scrollbar*/
*::-webkit-scrollbar {
    width: 2px;
    background-color: transparent;
}

*::-webkit-scrollbar-thumb {
    background: var(--col-border);
}
