@font-face {
    font-family: NewgroundsFont;
    src: url('fonts/NewgroundsFont-Regular.woff') format('woff');
    font-weight: normal;
    font-style: normal;

}

html {
    font-family: NewgroundsFont, Arial, sans-serif;
}

body {
    background-color: #ffa4a6;
    text-align: center;
    margin: 0;
    padding-bottom: 12px;
    font-size: 1.5em
}
.navbar {
    margin-bottom: 20px;
    background-color: #b35759;
    padding: 20px;
}
a:link{
    color: #ffffff;
    text-decoration: none;
    margin: 0;
    font-size: 1.2em;
}
.navbar a:link, .navbar a:visited {
    color: #ffffff;
    margin: 0 16px;
}
a:hover {
    text-decoration: underline;
}

.PFP {
    display: block;
    margin: 0 auto;
    width: 400px;
    height: auto;
}

.PFP img {
    width: 100%;
    height: auto;
    display: block;
}

h1{
    color: #ffffff;
    margin: 20px 0 12px 0;
    font-family: NewgroundsFont;
    letter-spacing: 0.05em;
}

h2, h3, h4, p {
    color: #b35759;
    margin: 12px auto;
    font-family: NewgroundsFont;
    letter-spacing: 0.02em;
    max-width: 90%;
    text-align: center;
}
h3 {
    margin-top: 32px;
    text-decoration: underline 4px #4b6dbe;
}

.gallery-box, .commission-box {
    padding: 5%;
    max-width: 70%;
    max-height: auto;
    margin: auto;
    background-color: #b35759;

    border: #ffffff 8px solid;
}
.gallery, .commission {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-start;
    gap: 20px;
}
.gallery img, .commission img {
    margin: 12px;
    border: #ffffff 4px solid;
    max-width: 50%;
    height: auto;
    transition: transform 0.3s;
}

.artGallery figure, .commissionGallery figure {
    background-color: #ffffff;
    padding: 16px;
    margin: 12px;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    flex: 1 1 auto;
    width: fit-content;
    max-width: 40%;
    min-width: 248px;
}
.artGallery figure:hover, .commissionGallery figure:hover {
    transition-duration: 0.5s;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}
.artGallery figure img, .commissionGallery figure img {
    display: block;
    width: 100%;
    max-width: 100%;
    height: auto;
    margin: 0 0 4px 0;
    border: none;
}

figcaption {
    color: #b35759;
    font-size: 1em;
    margin-top: 12px;
    text-align: center;
}

.gallery-image {
    width: 100%;
    min-width: 100px;
    height: auto;
    display: block;
}

ul {
    display: inline-block; 
    text-align: center;    
    list-style-type: none;  
    margin: 12px auto;
    padding-left: 20px;   
    max-width: 90%;
}

li {
    color: #b35759;
    margin-bottom: 12px;
    font-size: 1.2em;
    text-align: center;
}

.contactsPage button{
    font-family: NewgroundsFont, Arial, sans-serif;
    text-align: center;
    font-size: 1.5em;
    padding: 16px 16px;
    margin: 12px;
    background-color: #b35759;
    color: #ffffff;
    border: 4px solid #ffffff;
    border-radius: 4px;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
}

.contactsPage button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}
.contactsPage button.instagram {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
}
.contactsPage button.discord {
    background-color: #5865F2;
}
.contactsPage button.newgrounds {
    background-color: #FFB612;
    color: #000000;
}
.contactsPage button.youtube {
    background-color: #FF0000;
}
.contactsPage button.paypal {
    background-color: #0079c1;
}
.contactsPage button.venmo {
    background-color: #008CFF;
}
.contactsPage button.kofi {
    background-color: #72A5F2;
}

.websitething {
    display: block;
    margin: 0 auto;
    max-width: 60%;
    height: auto;
    background-color: antiquewhite;
}

.clickable-image {
    cursor: pointer;
    transition: transform 0.2s, opacity 0.2s;
}

.clickable-image:hover {
    transform: scale(1.05);
    opacity: 0.8;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.9);
}

.modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal-content {
    max-width: 90%;
    max-height: 80%;
    object-fit: contain;
    display: block;
}

.close {
    position: absolute;
    top: 15px;
    right: 35px;
    color: #ffffff;
    font-size: 40px;
    font-weight: bold;
    transition: 0.3s;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: #ffa4a6;
    text-decoration: none;
}

#caption {
    position: absolute;
    bottom: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 80%;
    max-width: 700px;
    text-align: center;
    color: #ffffff;
    padding: 10px 0;
    font-size: 1.2em;
}

@media only screen and (max-width: 768px) {
    body {
        font-size: 1.2em; /* Decrease base font size for mobile */
        padding-bottom: 80px; /* Add padding so content isn't hidden behind fixed navbar */
    }

    .navbar {
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        margin: 0;
        z-index: 1000;
        box-sizing: border-box;
        padding: 8px;
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
        font-size: 14px; /* Slightly smaller to fit links on one line if possible */
    }

    .navbar a:link, .navbar a:visited {
        margin: 0;
        display: inline-block;
    }

    .gallery img, .commission img {
        max-width: 70%; /* Reduce image size on mobile */
    }

    .artGallery figure, .commissionGallery figure {
        max-width: 70%; /* Make figures smaller on mobile */
        min-width: unset; /* Remove min-width constraint */
        margin: 12px auto; /* Center align */
    }


    .gallery-image, .commission-image {
        max-width: 70%; /* Reduce gallery image size on mobile */
    }

    .PFP {
        width: 40%; /* Adjust profile picture size to be smaller */
        height: auto;
        margin: 0 auto; /* Ensure it is centered */
    }
    
    .contactsPage {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }

    .contactsPage button {
        width: 80%;
        margin: 8px auto;
    }

    h1 {
        font-size: 1.5em; /* Significantly smaller to prevent awkward wrapping */
        margin: 12px 0;
    }

    h2, h3, h4, p {
        font-size: 0.9em; /* Smaller text for gallery page on mobile */
    }

    figcaption {
        font-size: 0.85em; /* Smaller captions on mobile */
    }

    a:link {
        font-size: 0.9em; /* Smaller link text */
    }

    .indexPage {
        font-size: 1.3em; /* Slightly bigger text on index page for mobile */
    }

    .indexPage h1 {
        font-size: 1.3em; /* Moderate heading on index page */
        margin: 8px 0;
    }

    .indexPage h2, .indexPage h3, .indexPage p {
        font-size: 1em; /* Standard text size on index page */
        margin: 6px auto;
    }

    .indexPage .PFP {
        width: 30%;
        margin: 8px auto;
    }
}