/* Add your custom fonts here */
@font-face {
    font-family: 'ComicSans';
    src: url('fonts/comicsans/Ldfcomicsanslight-6dZo.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
    letter-spacing: 0.5px;
}

@font-face {
    font-family: 'PixelFont';
    src: url('fonts/pixel/terminal-grotesque.grotesque-regular.ttf') format('truetype');
    font-weight: lighter;
    font-style: normal;
}

@font-face {
    font-family: "PublicFont";
    src: url('fonts/publicfont/PublicSans-VariableFont_wght.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

p {
    color: rgb(48, 143, 146);
}
.base {
    font-family: Arial, sans-serif;
    width: 35%;
    height: 15%;
    margin: 0 auto;
    position: absolute;
    top: 40%;
    left: 35%;
    transform: translate(-50%, -50%);
    white-space: normal; /* Prevent normal wrapping for ellipsis to work */
}

.contact {
    font-family: Arial, sans-serif;
    width: 35%;
    height: 10%;
    margin: 0 auto;
    position: absolute;
    top: 95%;
    left: 35%;
    transform: translate(-50%, -50%);
}
.showcase {
    width: 40%;
    height: 70%;
    margin: 0 auto;
    position: absolute;
    top: 45%;
    left: 75%;
    transform: translate(-50%, -50%);
}

#display {
    width: 95%;
    height: 65%;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
    margin-top: 5px;
    overflow: hidden;
}

#description {
    width: 95%;
    height: 30%;
    margin: 5px auto 0;
    padding: 10px;
    border-radius: 5px;
    overflow-y: auto;
}

#description p {
    margin: 0;
    font-size: 14px;
    font-family: "PublicFont";
    line-height: 1.4;
    color: rgb(16, 36, 36);
}

.gallery {
    width: 35%;
    height: 25%;
    margin: 0 auto;
    position:absolute;
    top: 65%;
    left: 35%;
    transform: translate(-50%, -50%);
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(60px, 80px));
    gap: 20px;
    padding: 20px;
    border-radius: 8px;
    overflow-y: auto;
    overflow-x: hidden;
    justify-content: center;
    align-content: start;
}

.gallery-item {
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 5px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border 0.2s ease;
    aspect-ratio: 1;
    width: 100%;
    height: 100%;
    /* padding: 50%; */
    min-height: 80px;
    max-width: 80px;
    max-height: 80px;
    box-sizing: border-box;
    border: 2px solid transparent;
}

.gallery-item:hover {
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.gallery-item img,
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gallery-item.active {
    border: 2px solid rgb(48, 143, 146);
    box-shadow: 0 0 8px rgba(48, 143, 146, 0.5);
    box-sizing: border-box;
}

/* Custom scrollbar for gallery */
.gallery::-webkit-scrollbar {
    width: 8px;
}

.gallery::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb {
    background: rgba(48, 143, 146, 0.7);
    border-radius: 4px;
}

.gallery::-webkit-scrollbar-thumb:hover {
    background: rgba(48, 143, 146, 0.9);
}


#me {
    color: rgb(41, 104, 105);
    /* font-family: 'Josefin Sans', sans-serif; */
    font-weight: bold;
}

#games {
    background: linear-gradient(45deg, rgb(255, 81, 0), rgb(230, 8, 156), rgb(132, 80, 255));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-family: 'PixelFont';
}

#art {
    background: linear-gradient(90deg, 
        #eeff00 0% 40%,
        #200ec4 40% 66%,
        #ff3eff 66% 100%
    );
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 22px;
    font-family: 'ComicSans';
    font-weight: bold;
    letter-spacing: 3px;
}

#stories {
    color: rgb(31, 49, 49);
    font-family: 'Courier New', Courier, monospace;
    font-weight: bold;
}

body {
    background-image: linear-gradient(to top, rgb(124, 226, 187), rgb(113, 233, 153));
}


#bg {
    width: 98%;
    height: 98%;
    position: absolute;
    z-index: -10;
    background-image: linear-gradient(to top, rgb(124, 226, 187), rgb(113, 233, 153));
}

/* Remove all video UI elements */
video {
    outline: none;
}

video::-webkit-media-controls {
    display: none !important;
}

video::-webkit-media-controls-panel {
    display: none !important;
}

video::-webkit-media-controls-play-button {
    display: none !important;
}

video::-webkit-media-controls-volume-slider {
    display: none !important;
}

video::-webkit-media-controls-timeline {
    display: none !important;
}

video::-webkit-media-controls-current-time-display {
    display: none !important;
}

video::-webkit-media-controls-time-remaining-display {
    display: none !important;
}

video::-webkit-media-controls-mute-button {
    display: none !important;
}

video::-webkit-media-controls-fullscreen-button {
    display: none !important;
}

video::-webkit-media-controls-overlay-play-button {
    display: none !important;
}

/* Firefox */
video::-moz-media-controls {
    display: none !important;
}

/* Remove focus outline */
video:focus {
    outline: none;
}