﻿/*                  */
/* Personal Website */
/*  Daniel Silva    */
/*                  */
/*                  */

/* Font Import - PT Sans */
@import url('https://fonts.googleapis.com/css2?family=PT+Sans:ital,wght@0,400;0,700;1,400;1,700&display=swap');

/* Global Styles */

body {
    background: url('../IMG/Base/Background.jpg') no-repeat center center fixed;
    background-size: cover;
    padding-top: 100px;
    font-family: "PT Sans", sans-serif;
}

.lg-dark-container {
    background-color: rgba(0,0,0,0.7);
}

#header-navbar .navbar-brand img {
    max-width: 80px;
}

    #header-navbar .navbar-brand img:hover {
        transform: scale(1.25);
    }

#header-navbar .navbar-nav .nav-item .nav-link {
    color: rgba(255, 255, 255, 0.55);
    transition: color 0.3s ease-in-out;
    position: relative;
    padding-bottom: 0.5rem;
    overflow: hidden;
}

    #header-navbar .navbar-nav .nav-item .nav-link::before {
        content: '';
        position: absolute;
        width: 0;
        height: 2px;
        bottom: 0;
        left: 50%;
        transform: translateX(-50%);
        background-color: ghostwhite;
        transition: width 0.3s ease-in-out, left 0.3s ease-in-out;
    }

    #header-navbar .navbar-nav .nav-item .nav-link:hover {
        color: ghostwhite;
    }

        #header-navbar .navbar-nav .nav-item .nav-link:hover::before {
            width: 100%;
            left: 50%;
        }

    #header-navbar .navbar-nav .nav-item .nav-link.active {
        color: ghostwhite;
    }

        #header-navbar .navbar-nav .nav-item .nav-link.active::before {
            width: 100%;
            left: 50%;
            transform: translateX(-50%);
            background-color: ghostwhite;
        }

#header-navbar .navbar-text {
    color: rgba(255, 255, 255, 0.75);
}

#footer-social img {
    width: 32px;
}

#footer-logo {
    max-height: 80px;
}

    #footer-logo:hover {
        transform: scale(1.25);
    }

.social-icon {
    width: 32px;
    height: 32px;
    transition: transform 0.2s ease-in-out;
}

    .social-icon:hover {
        transform: scale(1.25);
    }

.desktop-content {
    display: none;
}

.mobile-content {
    display: block;
}

.mobile-content-center {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    text-align: center;
    flex-direction: column;
    font-size: 24px;
    color: ghostwhite;
    margin: 60px;
    /* background-color: rgba(0,0,0,0.7);*/
}

/* --- --- --- --- --- --- Home --- --- --- --- --- --- */

#welcome-image-border {
    max-width: 300px;
    height: auto;
    border: 3px solid #ff0000;
    padding: 5px;
    border-radius: 50%;
    box-shadow: 0 0 15px rgba(255, 0, 0, 0.5);
}

.card-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

    .card-body .card-text {
        flex-grow: 1;
    }

.card-gradient-bg {
    background: linear-gradient(to bottom, #010101 0%, #010101 6%, #fa0101 9%, #0d0d0d 12%, #0d0d0d 12%, #333333 50%, #010101 88%, #ff0000 91%, #010101 94%, #1b1b1b 100%);
    color: ghostwhite;
}

    .card-gradient-bg h2,
    .card-gradient-bg p,
    .card-gradient-bg .btn-link {
        color: ghostwhite !important;
    }

    .card-gradient-bg .btn-link {
        text-decoration: none;
        font-weight: bold;
    }

        .card-gradient-bg .btn-link:hover {
            color: #ff0000 !important;
            text-decoration: underline;
        }

/* --- --- --- --- --- --- Projects --- --- --- --- --- --- */

#github {
    background-color: rgba(0,0,0,0.7);
}

#youtube {
    background-color: rgba(0,0,0,0.7);
}

#certificates {
    background-color: rgba(0,0,0,0.7);
}

.hover-underline:hover {
    text-decoration: underline !important;
    font-weight: bold !important;
    color: ghostwhite !important;
}

.text-red-imp {
    color: #dc3545 !important;
}

.hover-danger-underline:hover {
    text-decoration: underline !important;
    font-weight: bold !important;
    color: #dc3545 !important;
}

.aboutmebx {
    background-color: rgba(0,0,0,0.7);
}

    .aboutmebx a {
        color: ghostwhite;
        font-weight: 500 !important;
    }

#wiknow {
    background-color: rgba(0,0,0,0.7);
}

#aboutmephoto {
    max-width: 200px;
}

.tech-icon-link {
    display: inline-block;
    transition: transform 0.2s ease-in-out;
}

    .tech-icon-link:hover {
        transform: scale(1.25);
    }

.tech-icon {
    width: 64px;
    height: 64px;
    object-fit: contain;
}

.image-container {
    position: relative;
    width: 100%;
    padding-bottom: 50%;
    margin-top: auto;
    overflow: hidden;
}

    .image-container img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 80%;
        object-fit: contain;
    }

.project-cards {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: transparent;
    padding-right: 0 !important;
    padding-left: 0 !important;
    margin-right: calc(var(--bs-gutter-x) * .5) !important;
    margin-left: calc(var(--bs-gutter-x) * .5) !important;
}

    .project-cards:hover {
        transform: translateY(-10px);
        box-shadow: 0 0.5rem 1rem rgba(255, 0, 0, 0.4) !important;
    }

/* --- --- --- --- --- --- Contact --- --- --- --- --- --- */

#contact-social .social-icon {
    width: 32px;
    height: 32px;
}

    #contact-social .social-icon:hover {
        transform: scale(1.5);
    }

/* --- --- --- --- --- --- Media Hub --- --- --- --- --- --- */

.media-category-link {
    display: flex !important;
    flex-direction: column;
}

.media-category-icon {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 6px;
    padding: 6px;
}

.media-category-link .card {
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    background-color: rgba(0, 0, 0, 0.7);
}

    .media-category-link .card:hover {
        transform: translateY(-10px);
        box-shadow: 0 0.5rem 1rem rgba(255, 0, 0, 0.4) !important;
    }

.media-category-link .card-title {
    color: ghostwhite;
}

#az-filter-label {
    width: auto;
    min-width: 33%;
}

#azFilterSelect {
    width: auto;
    min-width: 66%;
}

.star-partial-container {
    position: relative;
    display: inline-block;
    width: 1em;
    height: 1em;
    vertical-align: -.125em !important;
    overflow: hidden;
    vertical-align: middle;
}

    .star-partial-container .bi-star-fill.star-partial {
        position: absolute;
        top: 0;
        left: 0;
        width: var(--star-fill, 0%);
        overflow: hidden;
        color: var(--bs-warning);
    }

    .star-partial-container .bi-star.star-empty-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 1em;
        color: var(--bs-secondary);
        z-index: 1;
    }

.input-group:focus-within {
    border-color: #86b7fe;
    border-radius: 6px;
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
    z-index: 5;
}

.input-group input[type="search"]:focus {
    border-color: inherit;
    box-shadow: none;
}

.rating-display {
    outline: none !important;
}

/* --- --- --- Media (movies) --- --- --- */

.card.lg-dark-container {
    background-color: rgba(0,0,0,0.7) !important;
}

.card-title.fs-4 {
    font-size: 1.5rem;
}

/* --- --- --- Media (series) --- --- --- */

#container-bg {
    background-color: rgba(0,0,0,0.7);
}

#series-btn {
    width: 31px !important;
    height: 31px !important;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.serie-rating-display {
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
}

    .serie-rating-display .bi {
        font-size: 1em;
        line-height: 1;
        display: inline-block;
        vertical-align: middle;
    }



/* --- --- --- --- --- --- Games --- --- --- --- --- --- */

.gamerbox {
    background: linear-gradient(to bottom, #010101 0%, #010101 6%, #fa0101 9%, #0d0d0d 12%, #0d0d0d 12%, #333333 50%, #010101 88%, #ff0000 91%, #010101 94%, #1b1b1b 100%);
    background-size: contain;
}

    .gamerbox img {
        width: 160px;
        height: 160px;
    }

.game-category-link {
    display: flex !important;
    flex-direction: column;
}

.game-category-icon {
    width: 128px;
    height: 128px;
    object-fit: contain;
    border-radius: 5px;
    padding: 5px;
}

.game-category-link .card {
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    background-color: rgba(0, 0, 0, 0.45);
}

    .game-category-link .card:hover {
        transform: translateY(-5px);
        box-shadow: 0 0.5rem 1rem rgba(255, 0, 0, 0.4) !important;
    }

.game-category-link .card-title {
    color: ghostwhite;
}

.game-minecraft-icon {
    width: 120% !important;
    max-width: 100% !important;
    padding: 0;
    margin: 0;
}

.game-icon {
    transition: transform 0.2s ease-in-out;
}

    .game-icon:hover {
        transform: translateY(-15px);
    }


/* Runescape */
.bs-square {
    width: 50px;
    height: 50px;

    position: relative;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 2px;
}

    .bs-square:hover {
        transform: scale(1.25);
        box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    }

    .bs-square img {
        max-width: 80%;
        max-height: 80%;
        object-fit: contain;
        padding-bottom: 4px;
    }

    .bs-square p {
        position: absolute;
        bottom: 2px;

        font-size: 0.75rem;
        margin: 0;
        line-height: 1;
    }

.bs-square-nl {
    width: 50px;
    height: 50px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border: 1px solid #dee2e6;
    border-radius: 0.25rem;
    box-shadow: 0 0.125rem 0.25rem rgba(0, 0, 0, 0.075);
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    padding: 2px;
}

.bs-square-nl:hover {
    transform: scale(1.25);
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
}

.bs-square-nl img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    padding-bottom: 4px;
}

.textmebx a {
    color: #FFFF00;
    font-weight: bold !important;
}

.textmebx-hover:hover {
    color: #FFFF00 !important;
    text-decoration: underline !important;
}

.active-txt {
    color: #FFFF00 !important;
    background-color: ghostwhite;
    text-decoration: underline !important;
    text-shadow:
    /* Upper Left */
    -1px -1px 0 #333,
    /* Upper Right */
    1px -1px 0 #333,
    /* Lower Left */
    -1px 1px 0 #333,
    /* Lower Right */
    1px 1px 0 #333;
}

.runescape-txt {
    color: #FFFF00;
}

.osrs-scroll-top {
    background-image: url('IMG/Base/scroll_top.gif');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 50px !important;
    display: block;
    content: "";
}

.osrs-scroll-center {
    background-image: url('IMG/Base/scroll_center.gif');
    background-repeat: repeat-y;
    background-size: contain;
    height: 100%;
}

.osrs-scroll-bottom {
    background-image: url('IMG/Base/scroll_bottom.gif');
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    min-height: 50px !important;
    display: block;
    content: "";
}

/* --- --- --- --- --- --- Login / Register --- --- --- --- --- --- */
#l-mcostumbox {
    margin-top: -100px;
}

#l-costumbox {
    max-width: 400px;
    width: 100%;
}

#lr-link {
    color: ghostwhite !important;
    text-decoration: none;
    font-weight: bold !important;
}

    #lr-link:hover {
        color: #ff0000 !important;
        text-decoration: underline !important;
    }

#r-mcostumbox {
    margin-top: -100px;
}

#r-costumbox {
    max-width: 400px;
    width: 100%;
}

/* --- --- --- --- --- --- Media Queries --- --- --- --- --- --- */
@media (max-width: 767.98px) {
    .tech-icon {
        width: 48px;
        height: 48px;
    }

    .media-category-icon {
        width: 100px;
        height: 100px;
    }

    .game-category-icon {
        width: 128px;
        height: 128px;
    }
}

@media (min-width: 1024px) {
    .desktop-content {
        display: block;
    }

    .mobile-content {
        display: none;
    }
}

/* --- --- --- --- --- --- --- --- --- --- --- --- AI --- --- --- --- --- --- --- --- --- --- --- --- */
