/* Reset styles for consistency */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Body background */
body {
    background: linear-gradient(to right, #a2c2e0, #f3d0c1);
    font-family: 'Arial', sans-serif;
}

/* Navigation Bar */
.navbar {
    background: #2e2a8d; /* Dark purple */
}

.navbar-brand {
    font-weight: bold;
    color: #f1c40f; /* Bright yellow */
}

.navbar-nav .nav-link {
    color: #f1c40f; /* Bright yellow */
    transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
    color: #fff;
}

/* Jumbotron styling */
.jumbotron {
    background: url('background-ludo.jpg') no-repeat center center;
    background-size: cover;
    color: #fff;
    position: relative;
    overflow: hidden;
    animation: jumbotronAnimation 15s infinite alternate;
}

@keyframes jumbotronAnimation {
    0% {
        background-position: 0 0;
    }
    100% {
        background-position: 100% 100%;
    }
}

.jumbotron::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.jumbotron .container {
    position: relative;
    z-index: 2;
}

/* Highlight text */
.highlight {
    color: #f39c12; /* Golden yellow */
    font-weight: bold;
    animation: highlightPulse 1.5s infinite;
}

@keyframes highlightPulse {
    0%, 100% {
        color: #f39c12;
    }
    50% {
        color: #fff;
        text-shadow: 0 0 20px rgba(255, 255, 255, 0.8);
    }
}

/* Scroll to games button */
.btn-outline-light {
    border-radius: 25px;
    padding: 10px 30px;
    font-size: 1.2em;
    position: relative;
    overflow: hidden;
    border: 2px solid #f39c12;
    color: #f39c12;
    transition: all 0.3s;
}

.btn-outline-light::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300%;
    height: 300%;
    background: rgba(243, 156, 18, 0.3);
    transition: transform 0.3s;
    border-radius: 50%;
    transform: translate(-50%, -50%) scale(0);
}

.btn-outline-light:hover::after {
    transform: translate(-50%, -50%) scale(1);
}

.btn-outline-light:hover {
    background-color: #f39c12;
    color: #fff;
    border-color: #f39c12;
}

/* Game option cards */
.game-option {
    transition: transform 0.4s, box-shadow 0.4s;
    cursor: pointer;
    border-radius: 15px;
    overflow: hidden;
    position: relative;
    animation: cardFadeIn 1s ease-out;
}

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.game-option:hover {
    transform: scale(1.1);
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.4);
}

.game-option img {
    border-top-left-radius: 15px;
    border-top-right-radius: 15px;
    height: 250px;
    object-fit: cover;
    transition: transform 0.4s, filter 0.4s;
}

.game-option:hover img {
    transform: scale(1.05);
    filter: brightness(1.1);
}

/* Card body styling */
.card-body {
    background: linear-gradient(135deg, #fff, #f0f4f7);
    border-top: 2px solid #f39c12;
    padding: 20px;
}

.card-title {
    font-weight: bold;
    color: #e67e22; /* Orange */
    transition: color 0.3s;
}

.card-text {
    color: #333;
}

/* Button styling inside cards */
.btn-primary {
    border-radius: 20px;
    margin-top: 10px;
    background: #e67e22; /* Orange */
    border: none;
    transition: background-color 0.3s, transform 0.3s;
}

.btn-primary:hover {
    background-color: #d35400; /* Darker orange */
    transform: scale(1.05);
}

/* Footer styling */
footer {
    background-color: #2e2a8d; /* Dark purple */
    color: #fff;
    position: relative;
    overflow: hidden;
}

footer::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(243, 156, 18, 0.3);
    z-index: 1;
    transform: scale(1.5);
    transition: transform 0.5s;
}

footer:hover::before {
    transform: scale(1);
}

footer .container {
    position: relative;
    z-index: 2;
}

/* Social media icons */
footer a {
    color: #fff;
    transition: color 0.3s;
    font-size: 1.5em;
    margin: 0 10px;
}

footer a:hover {
    color: #f39c12; /* Golden yellow */
}
