﻿body {
    background-color: #E9EAED;
    color: #343a40;
    font-family: 'Lato', sans-serif;
}

body a{
    text-decoration:none;
}

.navbar {
    background-color: #003366;
    box-shadow: 0px 8px 8px -6px rgba(0,0,0,.5);
    padding: 0;
}

.nav-item {
    margin-left: 1rem;
}

.navbar-brand, .nav-link, .dropdown-item {
    color: #fff !important;
}

    .navbar-brand img {
        max-width: 100%;
        height: auto;
        max-height: 25px;
    }

.nav-link {
    position: relative;
    font-size: 0.83rem;
    top: 0.6rem;
    height: 3.5rem;
    vertical-align: central;
}

    .nav-link::after {
        content: '';
        position: absolute;
        bottom: 11px;
        left: 44%;
        transform: translateX(-50%);
        width: 0;
        height: 1px;
        background-color: #fff;
        visibility: hidden;
        transition: width 0.3s, visibility 0s 0.3s;
    }

    .nav-link:hover::after {
        width: 100%;
        visibility: visible;
        transition: width 0.3s, visibility 0s 0s;
    }

.dropdown-menu {
    display: none; /* Hide dropdown menu initially */
    animation: fadeIn 0.3s;
    margin-top: 0.5rem;
    background-color: #fff;
    border: 1px solid #E9EAED;
    margin-top: 0;
    border-radius: 2px;
}

.nav-item:hover .dropdown-menu {
    display: block; /* Show dropdown menu when the nav item is hovered */
}

.dropdown-menu .dropdown-item {
    color: #343a40 !important;
    font-size: 0.9rem;
}

    .dropdown-menu .dropdown-item:hover {
        background-color: #E9EAED;
        color: #343a40 !important;
    }

.fas.fa-caret-down {
    margin-left: 0.3rem;
    font-size: 0.5rem;
    color: #fff;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

.navbar-toggler {
    border: none;
}

.navbar-toggler-icon {
    background-image: url('data:image/svg+xml,%3Csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 80" width="20" height="20" fill="white"%3E%3Crect width="100" height="20" rx="8"/%3E%3Crect y="30" width="100" height="20" rx="8"/%3E%3Crect y="60" width="100" height="20" rx="8"/%3E%3C/svg%3E');
}

.offcanvas {
    background-color: #ffffff;
}

.offcanvas-body ul {
    list-style: none;
    padding: 0;
}

    .offcanvas-body ul li {
        padding: 10px 0;
    }

        .offcanvas-body ul li a {
            text-decoration: none;
            color: #343a40;
            font-weight: 500;
        }

            .offcanvas-body ul li a:hover {
                color: #003366;
            }

.container-fluid {
    padding-left: 1rem;
    padding-right: 1rem;
}

@media (min-width: 992px) {
    .container-fluid {
        padding-left: 9.5rem;
        padding-right: 9.5rem;
    }
}

footer {
    background-color: #2A2B3C;
    color: #fff;
    padding: 20px 0;
    text-align: center;
}

.LinkCursor{
    cursor:pointer;
}

.card-img-top {
    width: 100%;
    height: 300px;
    object-fit: cover;
}



.box {
    background-color: #fff;
    border-radius: 4px;
    border: 1px solid rgba(0,0,0,.14);
    box-shadow: 0 1px 1px rgba(0,0,0,.1);
    margin-bottom: 2rem;
}

.boxitem {
    border-bottom: 1px solid rgba(0,0,0,.07);
    padding-top: 0.8rem;
    padding-bottom: 0.8rem;
}

.boxtitle {
    font-weight: bold;
    font-size: 1.1rem;
}

.boxcontent {
    font-size: 0.9rem;
    color: #343a40;
}

.ModalBackground {
    background-color: #000000d1;
}

.btn-Blue {
    background-color: #003366;
    color: white;
    border-color: #002952;
}

.SearchBox {
    background: url(../images/magnifying-glass.svg) no-repeat scroll 9px 9px;
    background-size: 14px;
    background-color: #004e9d;
    border: none;
    padding-left: 30px;
    padding-top: 3px;
    padding-bottom: 3px;
    border-radius: 2px;
    color: #aeccea;
}

    .SearchBox::placeholder {
        color: #aeccea;
        font-size: small;
    }

.SearchBox:focus{
    outline:none;
}

.search-result {
    padding: 2rem;
    list-style: none;
}

.footer-link  {
    text-decoration: none;
    color: white;
    font-size: small;
}

    .footer-link:hover {
        text-decoration: underline;
    }

.header-link {
    text-decoration: none;
    color: #aeccea;
    font-size: 0.9rem;
}

    .header-link:hover {
        color: white;
    }
.game-poster {
    width: 100%;
    padding-top: 100%; /* Makes it a square */
    background-repeat: no-repeat;
    background-position: center; /* Crops from the center */
    background-size: cover; /* Ensures image fills the square */
    border-radius: 4px;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out; /* Smooth animation */
}

/* Apply hover effect only on desktops */
@media (min-width: 768px) {
    .game-poster:hover {
        transform: scale(1.05); /* Slightly enlarges the image */
        box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2); /* Adds a subtle shadow */
    }
}