* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #222222;
    color: white;
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

@font-face {
  font-family: "ComicShark";
  src: url("fonts/ComicShark-lgVE5.otf") format("opentype");
}

:root {
    --frame-borders: 0px;
}

a {
    color: #61afee;
    text-decoration: none;
}

.alt-a {
    text-shadow: 0 0 2px #000000, 0 0 4px #000000, 0 0 6px #000000, 0 0 6px #000000;
}

p {
    margin-bottom: 2em;
    /* line-height: 1.5em; */
    font-size: 1.5em;
    padding: 0 3em;
    text-align: left;
}

.paragraph {
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.outer-container {
    border: var(--frame-borders) solid green;
    width: 80%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: stretch;
}

.header-container {
    border: var(--frame-borders) solid red;
    margin: .5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    /* height: 100px; */
}

.body-container {
    border: var(--frame-borders) solid purple;
    margin: .5em;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 300px;
}

.footer-container {
    border: var(--frame-borders) solid red;
    margin: .5em;
    display: flex;
    flex-direction: column; /* was row before substack iframe*/
    justify-content: space-between;
    align-items: center;
    margin-top: auto;
    height: 200px; 
}

.title {
    border: var(--frame-borders) solid blue;
    width: 600px;
    height: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.title-image, .small-image {
    width: 100%;
}

.small-image {
    display: none;
}

.main-links {
    border: var(--frame-borders) solid yellow;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    /* width: 100%; */
    /* height: 100%; */
    gap: 20px;
    margin-top: 1em;
    margin-bottom: 1em;
}

.links-box-outer-container {
    border: var(--frame-borders) solid green;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10px 3px 10px 3px;
    cursor: pointer;
}   

/* Each link box in the header */
.links-box {
    border: var(--frame-borders) solid green;
    outline: 5px solid black;
    box-shadow: -7px 7px 10px rgb(0, 0, 0);
    width: 80px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(26, 138, 230, .5);
    border-radius: 22px;
    overflow: hidden;
    margin-bottom: 5px;
}

.links-box img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.links-font {
    font-family: 'ComicShark', sans-serif;
    font-size: 1.2em;
    text-transform: uppercase;
    margin-top: 5px;
    color: rgb(255, 229, 99);
    text-shadow: 0 0 4px #000000;
}

.big-image {
    /* width: 80%; */
    height: 600px;
}

.preview-panel-image {
    width: 300px;
    height: 300px;
    margin-bottom: 1em;
    /* border: var(--frame-borders) solid green; */
    overflow: hidden;
    object-fit: cover;
}

.rounded-shadow {
    box-shadow: -7px 7px 10px rgba(0, 0, 0, .5);
    border-radius: 15px;
    border: 3px solid black;
}

.icon-small {
    width: 20px;
    height: 20px;
    margin-right: 5px;
}

/* Popup translucent background behind the floating link box */
.popup-trans-bg {
    display: none;
    background-color: rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(8px);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.floating-popup-box {
    border: var(--frame-borders) solid orange;
    min-width: 300px;
    max-width: 90%;
    min-height: 300px;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    position: absolute;
    top: 30%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #222;
    padding: 1em;
    border: 10px solid white;
    border-radius: 15px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    box-shadow: 0px 0px 30px white;
}

.flb-title {
    font-size: 2em;
    font-weight: bold;
    border: var(--frame-borders) solid green;
    width: 100%
}

.flb-link {
    border: var(--frame-borders) solid blue;
    font-size: 1.5em;
    font-weight: bold;
    margin: .5em 0 0 0;
    display: flex;
    flex-direction: row;
    align-items: flex-end;
    justify-content: center;
}

.input-field-general {
    width: 350px;
}

.input-textarea {
    height: 100px;
}



/*
For inner content layout inside body-container
*/
.inner-content {
    border: var(--frame-borders) solid orange;
    border-radius: 20px;
    box-shadow: -15px 10px 20px rgb(0, 0, 0);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    /* gap: 20px; */
    width: 100%;
    background-color: rgba(144, 144, 144, 0.5);
    padding: 1em;

    background-image: url('/images/stars2.jpg'); /* The path to your file */
    background-size: 500px auto;                      /* Scales the image to fill the space */
    background-position: center top;                /* Centers the image perfectly */
    background-repeat: repeat;               /* Stops the image from tiling */
}

.inner-content-title {
    border: var(--frame-borders) solid purple;
    font-size: 2em;
    font-weight: bold;
    width: 100%;
}

.inner-content-subtitle {
    border: var(--frame-borders) solid blue;
    font-size: 1.5em;
    font-weight: bold;
    width: 100%;
    margin-bottom: 1em;
}

.inner-content-centered {
    border: var(--frame-borders) solid red;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.gallery {
    border: var(--frame-borders) solid red;
    display: flex;
    /* flex-direction: row; */
    flex-flow: row wrap;
    justify-content: center;
    align-items: center;
    /* width: 100%; */
    gap: 1em;
}

.inner-content-left-aligned {
    border: var(--frame-borders) solid red;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
    width: 100%;
}

.video-box {
    /* border: 1px solid red; */
    display: flex;
    flex-flow: column wrap;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, .5);
    border-radius: 15px;
    padding: 1em;
}
.video-footer {
    /* border: 1px solid blue; */
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.video-icon {
    /* border: 2px solid green; */
    width: 50px;
    height: 50px;
}

.video-icon img {
    width: 50px;
    height: 50px;
    object-fit: contain;
    border: 2px solid black;
}

.video-title {
    /* border: 2px solid orange; */
    font-size: 2em;
    font-weight: bold;
    margin-left: 1em;
}

video {
    width: 100%;
    height: auto;
    margin-bottom: 1em;
}

#gallery-popup-outer-container {
    position: fixed;
    top: 50px;
    bottom: 50px;
    /* border: 4px solid orange; */
    width: 90%;
    /* height: 600px; */
    display: none;
    justify-content: center;
    align-items: center;
    font-size: 4em;
}

#gallery-popup-image {
    /* border-left: 4px solid black;
    border-right: 4px solid black; */
    /* width: auto; */
    width: min(90vw, 90vh);
    height: min(90vw, 90vh);
    overflow: hidden;
    box-shadow: 0px 0px 20px black, 0px 0px 30px black;
}

#gallery-popup-image-src {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background-color: white;
    border: 8px solid black;
}

#gallery-popup-prev {
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 4px solid green; */
    width: 5%;
    height: 100%;
    cursor: pointer;
}

#gallery-popup-next {
    display: flex;
    justify-content: center;
    align-items: center;
    /* border: 4px solid green; */
    width: 5%;
    height: 100%;
    cursor: pointer;
}





























@media screen and (max-width: 1000px) {
    p {
        font-size: 1em;
        padding: 0 1em;
    }

    .title {
        justify-content: center;
        width: 100%;
    }

    .header-container {
        flex-direction: column;
    }

    .main-links {
        justify-content: center;
        gap: 10px;
        margin-top: 0;
        margin-bottom: 0;
    }

    .small-image {
        max-width: 380px;
        display: block;
    }

    .title-image {
        display: none;
    }

    .links-box {
        display: flex;
        justify-content: center;
        align-items: center;
        width: 75px;
        height: 75px;
        text-align: center;
        border-radius: 10px;
        outline: 3px solid black;
    }

    .links-box-outer-container {
        padding: 00px 3px 10px 3px;
    } 

    .input-field-general {
        max-width: 250px;
    }

    .preview-panel-image {
        width: 265px;
        height: 265px;
        margin-bottom: 1em;
        /* border: var(--frame-borders) solid green; */
    }

    .big-image {
        width: 50px;
        height: 50px;
    }

    .video-title {
        font-size: 1.5em;
    }
}