/* Reset Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Arial, sans-serif;
}
.animated, [data-aos] {
    touch-action: auto;
    pointer-events: auto;
}
body, html {
    overflow-x: hidden;
}

.character-section {
    overflow-x: hidden;
}

h2 {
    font-size: 2rem;
}

.yellow_text {
    color: #FFC107;
}

/* HERO SECTION */
.hero-section {
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}


/* Logo Centered */
.logo {
    width: 960px; /* Adjust logo size */
    margin-bottom: 20px;
}

/* Play Now Button */
.play-button {
    position: absolute;
    bottom: 150px;
    background-color: #003060;
    color: #ffcc00;
    font-size: 20px;
    font-weight: bold;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
}

.play-button:hover {
    background-color: #025cb6;
}

.section-divider {
    width: 100%;
    height: 10px; /* Adjust height as needed */
    background: url('images/ROAD.png') repeat-x center;
    
}

/* ABOUT SECTION */
.about-section {
    position: relative;
    width: 100%;
    height: 100vh;
    padding: 100px 0; /* Adjust padding for spacing */
    background: url('images/ROADBG.png') no-repeat center center/cover; /* Set Background */
    color: white; /* Text color for contrast */
}

.abt-content {
  flex: 1 1 400px;
}

/* Flexbox Layout */
.abt-container {
    display: flex;
    flex-direction: row;
    gap: 200px;
    align-items: center;
    justify-content: center;
    max-width: 1200px;
    margin: auto;
    margin-top: 250px;
}

/* Logo Styling */
.about-logo img {
    width: 500px; /* Adjust as needed */
}

.about-logo img {
  width: 100%;
  max-width: 500px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.about-title {
    color: white;
}

/* Text Styling */
.about-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 600px;
    padding: 20px;
}

/* Title Styling */
/* .section-title {
    font-size: 36px;
    font-weight: bold;
    margin-bottom: 20px;
} */

/* Paragraph Styling */
.about-text p {
    font-size: 18px;
    line-height: 1.6;
    color: white;
}

/* TRAFFIC LIGHT SECTION */
.traffic-light-section {
    background: rgb(217,217,217);
    background: linear-gradient(0deg, rgba(217,217,217,1) 0%, rgba(71,70,70,1) 67%);
    height: 100vh;
    padding: 200px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* Centered Title Image */
.traffic-title img {
    width: 500px; /* Adjust size */
    margin-bottom: 80px;
}

/* Container */
.traffic-container {
    display: flex;
    justify-content: center;
    flex-direction: row;
    align-items: center;
    gap: 2rem; /* Space between elements */
    flex-wrap: nowrap;
}

/* Left Image */
.left-image {
    width: 650px; /* Adjust size */
}

/* Traffic Light */
.traffic-light {
    display: flex;
    flex-direction: column;
    gap: 10px;
    align-items: center;
    background: #222;
    padding: 20px;
    border-radius: 10px;
}

/* Traffic Light Buttons */
.light {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    cursor: pointer;
}

.red-light {
    background-color: red;
}

.yellow-light {
    background-color: yellow;
}

.green-light {
    background-color: green;
}

.traffic-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 2rem;
    padding: 2rem;
    flex-wrap: wrap;
}

.traffic-left img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
}

.traffic-right {
    flex: 1;
    max-width: 600px;
}

.game-mode-description {
    font-size: 1rem;
    color: #262626;
    margin-bottom: 1rem;
}

.traffic-light {
    width: 90px;
    height: 200px;
    background-color: #1e1e1e;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
}

@keyframes lightPulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.traffic-light .light {
  animation: lightPulse 2s infinite;
}


/* CHARACTER SECTION */
.character-section {
    height: 100%;
}


.character-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.Rodman {
    background: rgb(217,217,217);
    background: linear-gradient(180deg, rgba(217,217,217,1) 0%, rgba(71,70,70,1) 67%);
}

.Rod {
    background-image: url('images/Tri.png'); /* Path to your triangle image */
    background-position: left top;
    background-repeat: no-repeat;
    background-size: contain; /* Adjust as needed */
    background-size: 550px;
    margin-left: -20px;
}

.Wayne {
    background: rgb(217,217,217);
    background: linear-gradient(0deg, rgba(217,217,217,1) 0%, rgba(71,70,70,1) 67%);
}

.Wayn {
    background-image: url('images/Tri\(1\).png'); /* Path to your triangle image */
    background-position: right top;
    background-repeat: no-repeat;
    background-size: contain; /* Adjust as needed */
    background-size: 550px;
    margin-right: -20px;
}


.character-image img {
    width: 900px; /* Adjust based on your design */
}

.character-text {
    max-width: 50%;
}

.bold-text {
    font-weight: 900;
    font-size: 4rem;
}

.dark-text {
    color: #474646;
    padding-right: 100px;
}

.dark-text > h2 {
    font-size: 2rem;
}

.dark-text > p {
    color: whitesmoke;
    font-size: 1.5rem;
}

.light-text {
    color: #FFC107;
    padding-left: 100px;
}

.light-text > h2 {
    font-size: 2rem;
}

.light-text > p {
    color: whitesmoke;
    font-size: 1.5rem;
}

.yellow-text {
    color: #FFC107;
    font-weight: 900;
    font-size: 4rem;
}

/* DRIVE AND UNLOCK SECTION */
.parking-section {
    height: 100vh; /* Takes full screen height */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: rgba(71,70,70,1);
}
/* Centering the Parking Lot */
.parking-container {
    position: relative;
    width: 1100px; /* Adjust based on your parking lot size */
    height: 400px; /* Adjust based on your background */
    margin-top: -100px;
}

/* TITLE */
.parking-title {
    text-align: center;
    margin-bottom: 50px;
    font-size: 4rem;
}


/* Parking Lot Background */
.parking-bg {
    width: 100%;
    height: auto;
    display: block;
}

/* VEHICLE CAROUSEL OVERRIDES */
.vehicle-title {
    color: black;
}
#vehicleCarousel {
    margin-top: -250px;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: #003060;
    background-size: 100% 100%;
    border-radius: 50%;
    padding: 15px;
    opacity: 1;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
}

.carousel-control-prev,
.carousel-control-next {
    width: 10%;
}

/* MAP SECTION */
.map-section {
    height: 120vh;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column; /* Stack elements vertically */
    background: rgb(217,217,217);
    background: linear-gradient(0deg, rgba(217,217,217,1) 0%, rgba(71,70,70,1) 67%);
    position: relative;
}

/* MAP CONTAINER */
.map-container {
    position: relative;
    text-align: center;
    width: 100%;
}

/* TITLE SIGN (Centered at the Top) */
.map-sign {
    margin-top: 50px;

    width: 790px;
    position: absolute;
    top: -100px; /* Move higher */
    left: 50%;
    transform: translateX(-40%);
}

/* CAR WITH GPS */
.car-gps {
    width: 800px;
    max-width: 90%;
    display: block;
    margin: 0 auto;
    margin-top: 80px;
}

/* START BUTTON */
.start-button {
    padding: 12px 24px;
    font-size: 18px;
    font-weight: bold;
    color: #ffcc00;
    background: #003060;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.3s;
    text-transform: uppercase;
    display: block;
    margin: -100px auto 0 auto; /* Centered below */
    margin-bottom: 100px;
}

.start-button:hover {
    background: #025cb6;
}

.comment-section {
    background: linear-gradient(to bottom right, #f4f7fb, #ffffff);
    padding: 50px 20px;
    border-top: 5px solid #ffd600;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.comment-section .container {
    max-width: 900px;
    margin: 0 auto;
}

.comment-title,
.comment-subtitle {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 25px;
    color: #222;
    text-align: center;
}

.comment-form,
form[action*="comment/update"] {
    background-color: #ffffff;
    padding: 20px;
    margin-bottom: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.05);
}

.comment-form textarea,
form[action*="comment/update"] textarea {
    width: 100%;
    min-height: 120px;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1.5px solid #ccc;
    border-radius: 12px;
    resize: vertical;
    font-size: 15px;
    transition: border 0.3s ease;
}

.comment-form textarea:focus,
form[action*="comment/update"] textarea:focus {
    border-color: #0066cc;
    outline: none;
}

.comment-btn,
form[action*="comment/update"] button {
    padding: 10px 22px;
    background-color: #0066cc;
    color: #fff;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.comment-btn:hover,
form[action*="comment/update"] button:hover {
    background-color: #004fa3;
}

form[action*="comment/update"] a {
    margin-left: 15px;
    font-size: 14px;
    text-decoration: none;
    color: #888;
}

form[action*="comment/update"] a:hover {
    color: #000;
}

.login-reminder {
    font-style: italic;
    color: #666;
    text-align: center;
    margin-top: 20px;
}

.login-reminder a {
    color: #0066cc;
    text-decoration: underline;
    font-weight: bold;
}

.comments-list {
    margin-top: 40px;
}

.comment-box {
    background-color: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border: 1px solid #e2e2e2;
    border-radius: 14px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    transition: transform 0.2s ease;
}

.comment-box:hover {
    transform: translateY(-2px);
}

.comment-user {
    font-weight: bold;
    color: #2d2d2d;
    margin-bottom: 8px;
    font-size: 16px;
}

.comment-text {
    font-size: 15px;
    margin-bottom: 8px;
    color: #444;
    line-height: 1.6;
}

.comment-time {
    font-size: 12px;
    color: #888;
    margin-bottom: 10px;
}

.comment-actions {
    font-size: 14px;
    text-align: right;
    margin-top: 10px;
}

.comment-actions a {
    display: inline-block;
    padding: 6px 12px;
    margin-left: 8px;
    font-size: 13px;
    color: white;
    background-color: #0066cc;
    border-radius: 6px;
    text-decoration: none;
    transition: background-color 0.3s ease, transform 0.2s ease;
    font-weight: 500;
}

.comment-actions a:hover {
    background-color: #004fa3;
    transform: scale(1.05);
}

.comment-actions a:first-child {
    background-color: #28a745; /* green for edit */
}

.comment-actions a:first-child:hover {
    background-color: #1e7e34;
}

.comment-actions a:last-child {
    background-color: #dc3545; /* red for delete */
}

.comment-actions a:last-child:hover {
    background-color: #c82333;
}


.admin-dropdown {
    position: relative;
    display: inline-block;
    float: right;
    margin-right: 20px;
}

.admin-dropbtn {
    background-color: #ffcc00;
    color: white;
    padding: 10px 16px;
    font-size: 16px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
}

.admin-dropdown-content {
    display: none;
    position: absolute;
    right: 0;
    background-color: white;
    min-width: 160px;
    box-shadow: 0px 4px 12px rgba(0,0,0,0.2);
    z-index: 1;
    border-radius: 8px;
    overflow: hidden;
}

.admin-dropdown-content a {
    color: black;
    padding: 12px 16px;
    display: block;
    text-decoration: none;
    font-weight: 500;
}

.admin-dropdown-content a:hover {
    background-color: #f1f1f1;
}

.admin-dropdown:hover .admin-dropdown-content {
    display: block;
}

.admin-dropbtn:hover {
    background-color: #896e02;
}
@media (max-width: 600px) {
    .comment-title,
    .comment-subtitle {
        font-size: 20px;
    }

    .comment-form,
    .comment-box {
        padding: 15px;
    }

    .comment-btn,
    form[action*="comment/update"] button {
        width: 100%;
    }
}
@media (max-width: 991px) {
    .navbar-brand img {
        width: 90px;
    }

    .logo {
        width: 70%;
    }

    .about-container {
        flex-direction: column;
        gap: 40px;
        text-align: center;
    }

    .about-logo img {
        width: 80%;
    }

    .traffic-container {
        flex-direction: column;
    }

    .left-image {
        width: 90%;
    }

    .traffic-title img {
        width: 80%;
    }

    .character-container {
        flex-direction: column;
        text-align: center;
    }

    .character-text {
        max-width: 90%;
        padding: 20px !important;
    }

    .character-image img {
        width: 80%;
    }

    .Rod, .Wayn {
        background-image: none;
        margin: 0;
    }

    .parking-container {
        width: 95%;
        height: auto;
    }

    .car {
        width: 180px;
    }

    .car1 { top: 160px; left: 0; }
    .car2 { top: 160px; left: 170px; }
    .car3 { top: 60px; left: 130px; }

    .map-sign {
        width: 90%;
        top: -200px;
    }

    .car-gps {
        width: 90%;
    }
}

/* Small Devices (Phones, less than 768px) */
@media (max-width: 767px) {
    .navbar {
        border-bottom-right-radius: 28px !important;
        border-bottom-left-radius: 28px !important;
    }
    .navbar-nav {
        text-align: center;
    }

    .play-button {
        font-size: 17px;
    }
    .about-title {
        text-align: center;
        font-size: 2.2rem;
    }

    .logo {
        width: 100%;
    }

    .light-text > h2 {
        font-size: 1.6rem;
    }

    .abt-container {
        display: block;
    }

    .abt-content {
        margin-top: -125px; /* Adjust margin for smaller screens */
        margin-bottom: 40px;
        padding: 0 10px;    
    }

    .about-container {
        flex-direction: column;
        margin-top: 0;
        padding: 0 20px;
    }

    .about-logo img {
        width: 100%;
    }

    .about-text p {
        padding: 0 20px;
        font-size: 0.9rem;
        background-color: #474646;
        text-align: justify;
    }
    .section-title {
        padding: 0 20px;
        font-size: 0.9rem;
        text-align: justify;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .traffic-light-section {
        height: 100vh;
    }

    .traffic-light {
        flex-direction: row;
        width: 180px;
        height: 80px;
    }

    .traffic-container {
        flex-direction: column;
        gap: 20px;
    }

    .character-section {
        min-height: 0%;
    }

    .left-image {
        width: 80%;
    }

    .traffic-title img {
        width: 315px;
        margin-bottom: -5px;
        margin-top: -230px;
    }

    .traffic-flex img {
    display: block;
    max-width: 100%;
    height: auto;
    margin: 0 auto; /* Centers image horizontally */
    }   

    .traffic-flex {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.1rem;
        margin-top: -65px;
    }

    .traffic-flex > * {
        margin-bottom: 2rem; /* same as your gap */
    }

    .traffic-flex > *:last-child {
        margin-bottom: 0; /* remove gap after last item */
    }

    .game-mode-description {
        font-size: 0.9rem;
        text-align: justify;
    }
    .character-image img {
        width: 100%;
    }

    .bold-text, .yellow-text {
        font-size: 2.5rem;
    }

    .bold-header {
        color: #2e2e2e;
    }

    .bold-text {
        color: #2e2e2e;
    }

    .dark-text > p, .light-text > p {
        font-size: 1rem;
        text-align: justify;
    }

    .parking-bg {
        margin-top: -0px;
    }

    .parking-section {
        height: 60vh;
    }

    .parking-title {
        font-size: 2rem;
    }

    .car {
        width: 130px;
    }

    .map-section {
        height: 55vh;
    }

    .car-gps {
        margin-top: -220px;
    }

    .map-sign {
        top: -400px;
        width: 80%;
    }

    .start-button {
        font-size: 16px;
        padding: 10px 20px;
        margin-top: 0;
        margin-bottom: -100px;
    }

    .footer-logo {
        width: 80px;
    }

    .text-body-secondary {
        font-size: 10px;
    }
    .vehicleTitle {
        width: 300px;
    }
    .cars {
        width: 350px;
    }
    #vehicleCarousel {
        margin-top: -80px;
        margin-bottom: 80px;
    }
}