BODY, HTML {
	FONT-FAMILY: 'OSWALD', SANS-SERIF;
	MARGIN: 0;
	FONT-SIZE: 16PX;
    background-position: center;
    background-size: cover;
    overflow-x: hidden;


background: #000;
}



footer {
	background-color: #000000;
	padding: 0.1em;
	clear: both;
}
footer p {
	color: white;
	text-align: center;
	margin: 0.5em;
}

footer.site-footer {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100vw !important; /* koristi cijelu širinu viewporta */
  left: 50% !important;
  right: 50% !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;
}

/* Neutraliziraj stare generičke stilove koji su pogađali footer */
footer.site-footer p {
  color: #e4efff !important;
  margin: 0 !important;
  font-family: 'Oswald', sans-serif !important;
}

/* Sredi sadržaj i raspone unutar footera */
footer.site-footer .footer-content {
  max-width: 1000px !important;
  margin: 0 auto !important;
  padding: 0 10px 18px !important;
}

footer.site-footer .footer-content h2 {
  font-size: 24px !important;
  letter-spacing: 1px !important;
  color: #fcfcfc !important;
  margin: 0 0 8px !important;
}

footer.site-footer .footer-content p {
  max-width: 640px !important;
  margin: 0 auto 16px !important;
  font-size: 14px !important;
  line-height: 1.6 !important;
  color: #cdd8e8 !important;
}

/* Newsletter (ako postoji u footeru) */
footer.site-footer .newsletter-form {
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 8px !important;
  flex-wrap: wrap !important;
  margin: 6px 0 12px !important;
}
footer.site-footer .newsletter-form input[type="email"] {
  width: 240px !important;
  padding: 8px 12px !important;
  border-radius: 6px !important;
  border: none !important;
  outline: none !important;
}
footer.site-footer .newsletter-form button {
  padding: 8px 16px !important;
  border-radius: 6px !important;
  border: none !important;
  background: #004aad !important;
  color: #fff !important;
  cursor: pointer !important;
  transition: background .2s ease !important;
}
footer.site-footer .newsletter-form button:hover {
  background: #0b63d1 !important;
}

/* Ikone — uvijek male */
footer.site-footer .footer-social {           /* (ako dodaš natrag .footer-social) */
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;
  gap: 12px !important;
  margin: 10px 0 2px !important;
}
footer.site-footer .footer-social a {
  display: inline-flex !important;
  justify-content: center !important;
  align-items: center !important;
  width: 28px !important;
  height: 28px !important;
  border-radius: 50% !important;
  background: #ffffff1a !important;
  transition: transform .2s ease, background .2s ease !important;
}
footer.site-footer .footer-social a img {
  width: 16px !important;
  height: 16px !important;
  object-fit: contain !important;
  display: block !important;
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}
footer.site-footer .footer-social a:hover {
  background: #fff !important;
  transform: translateY(-2px) !important;
}
footer.site-footer .footer-social a:hover img {
  filter: none !important;
  opacity: 1 !important;
}

/* Copyright traka */
/* ===== FIX: Footer centriranje ===== */
footer.site-footer {
  display: flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: center !important;
  text-align: center !important;
  margin: 0 auto !important;
  width: 100vw !important; /* puni ekran */
  left: 50% !important;
  right: 50% !important;
  transform: translateX(-50%) !important;
  box-sizing: border-box !important;


  background: linear-gradient(to bottom, #0a2342 0%, #001933 100%) !important;
  color: #e4efff !important;
  border-top: 3px solid #004aad !important;
  box-shadow: 0 -2px 12px rgba(0,0,0,0.25) !important;
  padding: 25px 15px 15px !important;
}

/* Tekst unutar footera */
footer.site-footer .footer-content h2 {
  color: #fcfcfc !important;
  font-size: 22px !important;
}

footer.site-footer .footer-content p {
  color: #cdd8e8 !important;
}

/* Ikone */
footer.site-footer .footer-social a {
  background: #ffffff1a !important;
  transition: transform 0.2s ease, background 0.2s ease !important;
}

footer.site-footer .footer-social a:hover {
  background: #004aad !important;
  transform: translateY(-2px) !important;
}

/* Copyright traka */
footer.site-footer .footer-bottom {
  width: 100% !important;
  margin: 0 auto !important;
  text-align: center !important;
  padding: 10px 0 !important;
  display: flex !important;
  justify-content: center !important;
  align-items: center !important;

  background: #052d50 !important;
  color: #e4efff !important;
  border-top: 1px solid #004aad !important;
  font-size: 13px !important;
  letter-spacing: .3px !important;
}


/* contact form */

/* === PAGE TITLE === */
.contact-title {
    background: none !important;
    padding: 0 !important;
    border-radius: 0 !important;
    margin-bottom: 25px !important;
    color: #fff;
}
/* === WRAPPER === */
.glass-contact-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;   /* <<< ovo ga vertikalno i horizontalno centrira */
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.glass-card {
    width: 100%;
    max-width: 850px;
    padding: 28px;
    border-radius: 22px;
    margin: 0 auto;        /* <<< ovo ga centrira horizontalno */

    background: rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(14px) saturate(140%);
    border: 1px solid rgba(255, 255, 255, 0.35);

    box-shadow:
        0 12px 40px rgba(0, 0, 0, 0.45),
        inset 0 0 28px rgba(255, 255, 255, 0.1);
}

/* === MAP SECTION === */
.glass-map {
    width: 100%;
    overflow: hidden;
    border-radius: 14px;
    margin-bottom: 25px;
    border: 1px solid rgba(0, 153, 255, 0.45);
}

.glass-map iframe {
    width: 100%;
    height: 330px;
    border: none;
}

/* === FORM === */
.glass-form {
    display: flex;
    flex-direction: column;
    gap: 22px;
}

.glass-field {
    position: relative;
}

.glass-field input,
.glass-field textarea,
.glass-field select {
    width: 100%;
    padding: 16px 14px;
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.35);

    background: rgba(255,255,255,0.12);
    backdrop-filter: blur(12px);

    color: black;
    font-size: 1rem;

    outline: none;
    transition: .25s ease;
}

.glass-field textarea {
    color: #fff;
    height: 140px;
    resize: vertical;
}

/* Floating Labels */
.glass-field label {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);

    color: #dce6ff;
    font-size: 1rem;

    pointer-events: none;
    transition: .25s ease;
}

.glass-field input:focus + label,
.glass-field input:not(:placeholder-shown) + label,
.glass-field textarea:focus + label,
.glass-field textarea:not(:placeholder-shown) + label,
.glass-field select:focus + label,
.glass-field select:not([value=""]) + label {
    top: -8px;
    font-size: 0.75rem;
    color: #66b1ff;
    background: #000;
    padding: 0 4px;
    border-radius: 4px;
}

/* === SEND BUTTON === */
.glass-btn {
    width: 100%;
    padding: 16px;

    border-radius: 12px;
    border: none;

    background: linear-gradient(135deg, #0066ff, #00c8ff);
    color: #fff;

    font-size: 1.2rem;
    font-weight: 700;

    cursor: pointer;
    transition: .3s ease;
    box-shadow: 0 6px 20px rgba(0, 153, 255, 0.45);
}

.glass-btn:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(0, 153, 255, 0.75);
}


figure {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}


figcaption {
    font-size: 90%;
    color: #ffffff;
}

.header {
    width: 100%;
    color: #fff;
    padding: 10px 0; 
    position: sticky; 
    top: 0; 
    z-index: 100; 
}
nav{
    display: flex;
    padding: 2% 6%;
    justify-content: space-between;
    align-items: flex-start;
}
.header img{
    width: 150px;
    text-align: left;
}

.nav-links{
    flex: 1;
    text-align: right;
}


.nav-links ul li{
    list-style: none;
    display: inline-block;
    padding: 8px 12px;
    position: relative;
}
.nav-links ul li a{
    color: rgb(255, 255, 255);
    text-decoration: none;
    font-size: 16px;
}
.nav-links ul li:after{
    content:'';
    width: 0%;
    height: 2px;
    background: rgb(255, 255, 255);
    display: block;
    margin: auto;
    transition: 0.5s;
}
.nav-links ul li:hover:after{
    width: 100%;

}

.search-wrapper {
    width: 100%;
    max-width: 700px; 
    margin: 0 auto;  
    text-align: center;
}


.page-title {
    display: inline-block;
    background: rgba(38, 0, 255, 0.85);
    padding: 10px 25px;
    border-radius: 10px;
    font-size: 2.2rem;
    font-weight: 700;
    margin: 40px auto 20px auto;


    background: linear-gradient(135deg, #1e3a8a, #3b82f6);
    color: #fff;
    border-radius: 14px;


    box-shadow: 0 4px 25px rgba(59,130,246,0.55),
                0 0 12px rgba(59,130,246,0.8);


    position: relative;
    overflow: hidden;
}

.page-title::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 200%;
    height: 100%;
    background: linear-gradient(
        120deg,
        rgba(255,255,255,0.15) 0%,
        rgba(255,255,255,0.05) 40%,
        rgba(255,255,255,0.15) 100%
    );
    transform: skewX(-20deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0%   { left: -150%; }
    50%  { left: 0%; }
    100% { left: 150%; }
}

.home {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 80px 10%;
    position: relative;
    height: 80vh;
}

.home-content {
    max-width: 50%;
    z-index: 2;
}

.home-content h1 {
    font-size: 3rem;
    font-weight: bold;
    font-family: Verdana, Geneva, Tahoma, sans-serif;
    color: rgb(0, 0, 0);
    margin-bottom: 20px;
    text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
}

.home-content p {
    font-size: 1.1rem;
    line-height: 1.8;
    margin-bottom: 20px;
    color: whitesmoke;
}

.hero-btn {
    display: inline-block;
    padding: 12px 24px;
    background: rgba(38, 0, 255, 0.85);
    color: #fff;
    font-weight: bold;
    text-transform: uppercase;
    text-decoration: none;
    border-radius: 5px;
    box-shadow: 0 4px 15px rgba(38, 0, 255, 0.85);
    transition: all 0.3s ease-in-out;
}

.hero-btn:hover {
    background: rgba(38, 0, 255, 0.85);
    box-shadow: 0 6px 20px rgba(38, 0, 255, 0.85);
    transform: translateY(-3px);
}

.home-img {
    position: relative;
    width: 500px;
    height: 500px;
}

.rhombus {
    position: absolute;
    width: 70%;
    height: 70%;
    background: rgba(38, 0, 255, 0.85);
    border: 15px solid #ffffff;
    transform: rotate(45deg);
    display: flex;
    justify-content: center;
    align-items: center;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
    animation: rotateRhombus 6s infinite ease-in-out;
}

.rhombus img {
    width: 88%;
    height: auto;
    transform: rotate(-45deg);
    filter: drop-shadow(4px 4px 8px rgba(0, 0, 0, 0.5));
}

@keyframes rotateRhombus {
    0%, 100% {
        transform: rotate(45deg);
    }
    50% {
        transform: rotate(50deg);
    }
}

/* Main Section */
.Kuca {
    text-align: center;
    padding: 40px 20px;
    margin: 0 auto;
}


.Kuca p {
    font-size: 1.3rem;
    color: var(--text-color);
    line-height: 1.8;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 1px 1px 5px rgba(0, 183, 255, 0); 
    letter-spacing: 0.5px;
    transition: color 0.3s ease, transform 0.3s ease;
}


/* Image Styling */
.Kuca img {
    width: 70%;
    max-width: 600px;
    border-radius: 20px;
    margin: 20px auto;
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.8); 
    animation: scaleIn 1.5s ease;
}

.Kuca figcaption {
    color: #FFD700;
    font-size: 1.3rem;
    margin-top: 10px;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
}

/* Play Button */
.hero-btn {
    display: inline-block;
    background: linear-gradient(90deg, rgba(38, 0, 255, 0.85), #ffffff); 
    color: rgb(255, 255, 255);
    font-weight: 700;
    padding: 15px 30px;
    text-decoration: none;
    font-size: 1.5rem;
    border-radius: 50px;
    margin-top: 30px;
    box-shadow: 0px 4px 15px rgba(38, 0, 255, 0.85);
    transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
    animation: bounce 2s infinite ease-in-out;
}

.hero-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0px 6px 20px rgba(38, 0, 255, 0.85);

}

/* Social media container */
.social-media {
    color: white;
    font-family: 'Poppins', fantasy;
    text-align: center;
    margin-top: 2rem;
    font-size: 1.1rem;
}

.social-icon {
    width: 34px;
    margin: 0 10px;
    transition: transform 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
}

/* Animations */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes scaleIn {
    from {
        opacity: 0;
        transform: scale(0.8);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes bounce {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-10px);
    }
}

/* pocetak matchdisplay*/

.match-card {
    background: linear-gradient(135deg, #ffffff, #f8f9fa);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1), inset 0 0 15px rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    margin: 15px 0;
    border-left: 8px solid #34495e;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
}

.match-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.match-header {
    font-size: 1.5rem;
    font-weight: bold;
    color: #34495e;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.1);
}

.match-date-location {
    margin-top: 10px;
    display: flex;
    justify-content: space-between;
    font-size: 1rem;
    color: #7f8c8d;
}

.match-date, .match-location {
    padding: 5px 10px;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 8px;
}

.match-footer {
    margin-top: 15px;
    font-style: italic;
    color: #34495e;
}

.no-matches {
    font-size: 1.2rem;
    text-align: center;
    color: #e74c3c;
    padding: 20px;
}

/*kraj matchdisplay */


.izgledt {
    background-color: #ffffff; 
}
.gumb {
    background-color: #000000;
}
.hero-btn{
    display: inline-block;
    text-align: center;
    margin: 20px auto; 
    padding: 10px 20px; 
    background-color: #ffffff; 
    color: rgb(0, 0, 0);
    text-decoration: none;
    font-size: 1.2em;

}

.hero-btn:hover{
    border: 1px solid rgb(255, 255, 255);
    background: transparent;
    transition: 0.7s;
    color:rgb(255, 255, 255);
}

nav .fa{
    display: none;
}

#contact {
	margin: 1em
}

form{
    color: rgb(255, 255, 255)
}


input[type=submit]:hover {
    background-color: rgb(255, 255, 255);
    color: rgb(0, 0, 0);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow', Arial, sans-serif;
}

footer p{
    color: rgb(255, 255, 255);
    text-align: center;
    margin: 0.5em;
    bottom: 0;
    font-family: fantasy;
}

input[type=text], input[type=email], select, textarea {
    width: 50%;
    padding: 12px;
    border: 1px solid rgb(255, 255, 255);
    background-color: rgb(255, 255, 255);
    border-radius: 4px;
    box-sizing: border-box;
    margin-top: 6px;
    margin-bottom: 16px;
	font-family: 'Oswald', sans-serif;
	font-size: 95%;
}



.txt-container p{
    color: rgb(255, 255, 255);
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-size: 14px;
}

.box-container {
    display: flex; 
    text-align: center;
    flex-wrap: wrap; 
    gap: 60px; 
    margin: 20px;
}

.box {
    border: 2px solid white;
    padding: 15px;
    margin: 10px; 
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 10px;
    color: white;
    width: 300px; 
    text-align: center; 
}


.hero {
    width: 100%;
    height: 100vh;
    background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));
    position: relative;
    padding: 0 5%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cont {
    text-align: center;
}

.cont h1 {
    font-size: 120px;
    color: #fff;
    font-weight: 60;
}



.cars {
    background-color: #333;
    color: #fff;
    padding: 15px;
    margin: 20px auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    max-width: 800px;
    text-align: center;
  }

      body.cars-page {
    background: #1b1e23 !important;
    background-image: none !important;
    color: #fff;
}
  
  /* cars Image */
  .cars img {
    width: 100%;
    max-height: 300px;
    object-fit: contain; 
    border-radius: 5px;
    margin-bottom: 10px;
}
  
  /* cars Title */
  .cars h2 {
    font-size: 24px;
    color: #f9c74f;
    margin: 10px 0;
  }
  
.cars-grid {
  display: grid;
  gap: 30px;
  padding: 40px;
}
.cars-grid > div {
  background: rgb(255, 255, 255);
  border-radius: 10px;
  padding: 20px;
    color: black !important;
}

.car-card {
    background: #222;
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.25);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    transition: transform .18s;
}
.car-card:hover {
    transform: scale(1.03);
    box-shadow: 0 12px 36px rgba(0,0,0,0.35);
}
.car-img-wrap {
    background: #111;
    min-height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.car-img-wrap img {
    width: 100%;
    max-height: 260px;
    object-fit: cover;
    display: block;
}
.car-card-details {
    padding: 24px 18px 20px 18px;
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.car-title {
    font-size: 1.5em;
    font-weight: bold;
    margin: 0;
    color: #000000;
}
.car-info {
    display: flex;
    gap: 22px;
    font-size: 1.1em;
    color: #000000;
}
.car-price {
    font-size: 1.4em;
    color: #006c8d;
    font-weight: bold;
    margin-top: 4px;
}
.car-desc {
    margin-top: 10px;
    color: #ddd;
    font-size: 1em;
    min-height: 40px;
}

  
  /* Header Styling */
  h1 {
    text-align: center;
    padding: 10px;
    background-color: #d7d6d6;
    border-radius: 5px;
    color: #333;
    font-size: 32px;
    margin-bottom: 20px;
  }

form {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 30px;
    max-width: 600px;
    margin: 0 auto;
    background: linear-gradient(135deg, #0095ff00, #0059ff00); 
    border: 1px solid #fff;
    border-radius: 15px;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2); 
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

form:hover {
    transform: scale(1.02); 
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

form label {
    font-size: 1.1rem;
    font-weight: bold;
    color: #fff; 
    margin-bottom: 5px;
}

form input[type="text"],
form input[type="email"],
form input[type="password"],
form input[type="datetime-local"],
form textarea,
form select {
    width: 100%;
    padding: 15px;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 8px;
    box-sizing: border-box;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    transition: border 0.3s ease, box-shadow 0.3s ease;
}

form input:focus,
form textarea:focus,
form select:focus {
    outline: none;
    border-color: rgba(108, 173, 216, 0.8);
    box-shadow: 0 0 5px rgba(108, 173, 216, 0.8);
}

/* Submit button styling */
form input[type="submit"] {
    background: linear-gradient(135deg, rgb(0, 74, 173), #000000);
    color: #fff;
    font-weight: bold;
    padding: 15px 20px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

form input[type="submit"]:hover {
    background: linear-gradient(135deg, rgb(20, 145, 173), #000000);
    transform: translateY(-3px); 
    color: whitesmoke;
}

/* Radio buttons styling */
.radio-container {
    display: flex;
    flex-wrap: wrap; 
    gap: 15px;
}

.radio-container input[type="radio"] {
    accent-color: #D86C70; 
}

.radio-container label {
    font-size: 1rem;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
}

/* "AddLink" button styling */
.AddLink {
    display: inline-block;
    color: #fff !important;
    background: linear-gradient(135deg, #555, #333);
    text-align: center;
    padding: 12px 30px;
    border-radius: 5px;
    margin: 20px auto;
    transition: background 0.3s ease, transform 0.3s ease;
}

.AddLink:hover {
    background: linear-gradient(135deg, #c8a5a5, #a67e7e);
    transform: translateY(-3px);
    color: #fff !important;
}



/* Table */
	table {
		background: #CABD80;
		border-collapse: separate;
		box-shadow: inset 0 1px 0 #CABD80;
		font-size: 12px;
		line-height: 24px;
		margin: 30px auto;
		text-align: left;
		width: 100%;
	}	

	th {
		background: linear-gradient(#CABD80),rgba(4,9,30,0.7),url(Gallery/bckg.jpg);
		border-left: 1px solid #D86C70;
		border-right: 1px solid #777;
		border-top: 1px solid #555;
		border-bottom: 1px solid #333;
		box-shadow: inset 0 1px 0 #999;
		color: #000000;
	  font-weight: bold;
		padding: 10px 15px;
		position: relative;
		text-shadow: 0 1px 0 #000;	
	}

	th:after {
		background: linear-gradient(rgba(255,255,255,0), rgba(255,255,255,.08));
		content: '';
		display: block;
		height: 25%;
		left: 0;
		margin: 1px 0 0 0;
		position: absolute;
		top: 25%;
		width: 100%;
	}

	th:first-child {
		border-left: 1px solid #777;	
		box-shadow: inset 1px 1px 0 #999;
	}

	th:last-child {
		box-shadow: inset -1px 1px 0 #999;
	}

	td {
		border-right: 1px solid #006c8d;
		border-left: 1px solid #1e8bbd;
		border-top: 1px solid #bd8b1e;
		border-bottom: 1px solid #bd8b1e;
		padding: 10px 15px;
		position: relative;
		transition: all 300ms;
	}

	td:first-child {
		box-shadow: inset 1px 0 0 #fff;
	}	

	td:last-child {
		border-right: 1px solid #e8e8e8;
		box-shadow: inset -1px 0 0 #fff;
	}	

	tr:last-of-type td {
		box-shadow: inset 0 -1px 0 #fff; 
	}

	tr:last-of-type td:first-child {
		box-shadow: inset 1px -1px 0 #fff;
	}	

	tr:last-of-type td:last-child {
		box-shadow: inset -1px -1px 0 #fff;
	}	

	tbody:hover td {
		color: transparent;
		text-shadow: 0 0 3px #aaa;
	}

	tbody:hover tr:hover td {
		color: #444;
		text-shadow: 0 1px 0 #fff;
	}
	
	/* End Table */

    #admin {
        text-align: center;
        margin: 20px auto;
        padding: 20px;
        border-radius: 10px;
        width: 60%;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }
    
    #admin ul {
        list-style-type: none;
        padding: 0;
        margin: 0;
    }
    
    #admin li {
        margin: 10px 0;
    }
    
    #admin li a {
        display: inline-block;
        width: 100%;
        max-width: 200px;
        padding: 10px 15px;
        color: #333;
        text-decoration: none;
        font-size: 16px;
        background-color: #eaeaea;
        border-radius: 5px;
        transition: background-color 0.3s ease, color 0.3s ease;
    }
    
    #admin li a:hover {
        background-color: #c8a5a5;
        color: white;
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    }


.car-details-container {
    max-width: 700px;
    margin: 50px auto 30px auto;
    background: #23262b;
    color: #fff;
    border-radius: 20px;
    padding: 36px 32px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.30);
    font-size: 1.1em;
}
.car-details-container img {
    width: 100%;
    max-width: 400px;
    border-radius: 14px;
    margin: 16px auto 20px auto;
    display: block;
}

/* Modal popup */
.modal {
    position: fixed; left: 0; top: 0; width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.7); z-index: 9999; display: none;
    justify-content: center; align-items: center;
}
.modal.show { display: flex; }
.modal-content {
    background: #222; color: #fff; padding: 40px; border-radius: 16px;
    min-width: 350px; max-width: 98vw; max-height: 95vh; overflow-y: auto;
    position: relative;
    box-shadow: 0 0 24px #0008;
    animation: pop-in .3s;
}
@keyframes pop-in { 0% {transform: scale(0.94);} 100%{transform: scale(1);} }
.close {
    position: absolute; top: 18px; right: 22px; font-size: 32px; color: #fff; cursor: pointer;
    z-index: 99;
}
.car-details-container img {max-width:90vw;}
.car-card button {
    background: #063ea5; color: #222; border: none; padding: 10px 22px; font-size: 1em;
    border-radius: 8px; font-weight: bold; margin-top: 14px; cursor: pointer; transition: .15s;
}
.car-card button:hover { background: #0097dd; }

/* Lightbox backdrop */
#lightbox-overlay {
    display: none;
    position: fixed;
    z-index: 99999;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.88);
    justify-content: center;
    align-items: center;
}
#lightbox-overlay.show {
    display: flex;
}
#lightbox-overlay img {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 14px;
    box-shadow: 0 4px 40px rgba(255, 255, 255, 0.667);
}
#lightbox-overlay .close-lightbox {
    position: absolute;
    top: 90px; right: 60px;
    color: #fff;
    font-size: 40px;
    cursor: pointer;
    z-index: 2;
    font-weight: bold;
}



.wishlist-img {
    width: 90px;
    height: auto;
    border-radius: 8px;
    margin: 6px auto 10px auto;
    display: block;
}
    @media only screen and (max-width: 768px) {

    .container {
        width: 100%;
        display: block;
        margin: auto;
        padding-top: 50px;
    }

    .content-section {
        float: none;
        width: 100%;
        display: block;
        margin: auto;
    }

    .video-section {
        float: none;
        width: 100%;
        display: block;
        margin: auto;
    }

    .nav-links ul {
        padding: 50px 20px;
        text-align: left;
    }

    .nav-links ul li {
        display: block;
        margin-bottom: 8px;
    }

    .nav-links {
        position: fixed;
        top: 0;
        right: -200px;
        height: 100vh;
        background: #006c8d;
        transition: all 0.3s ease-in-out;
        z-index: 999;
    }

    nav .fa {
        display: block;
        color: rgb(255, 255, 255);
        margin: 5px;
        font-size: 20px;
        cursor: pointer;
    }

    .back-video {
        position: absolute;
        right: 0;
        bottom: 0;
        z-index: -1;
    }

    .text-box {
        width: 90%;
        top: 50%;
        font-size: 14px;
    }

    .text-box h1 {
        font-size: 24px;
    }

    .text-box p {
        margin: 10px 0 40px;
        font-size: 11px;
        color: rgb(255, 255, 255);
        font-family: sans-serif;
        text-align: center;
    }

    .cont h1 {
        text-align: center;
        margin-top: -300px;
        font-size: 30px;
    }

    .header .hero {
        background-size: 190%;
    }

    .hero {
        width: 100%;
        height: 100vh;
        background-image: linear-gradient(rgba(12, 3, 51, 0.3), rgba(12, 3, 51, 0.3));
        position: relative;
        padding: 0 2%;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .home {
        flex-direction: column;
        text-align: center;
        padding: 50px 5%;
        height: auto;
    }

    .home-content {
        max-width: 100%;
    }

    .home-content h1 {
        font-size: 2.3rem;
        text-align: center;
    }

    .home-content p {
        font-size: 1rem;
        text-align: center;
    }

    .hero-btn {
        padding: 10px 22px;
    }

    .home-img {
        width: 320px;
        height: 320px;
        margin-left: 150px;
    }

    .rhombus {
        width: 85%;
        height: 55%;
        top: 10%;
        right: 20%;
    }

    .Kuca {
        padding: 15px;
    }

    .Kuca h1 {
        font-size: 1.1rem;
    }

    .Kuca p {
        font-size: 1rem;
        line-height: 1.5;
    }

    .Kuca img {
        width: 90%;
    }

    .hero-btn {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .form {
        padding: 15px;
    }

    .form input[type="text"],
    .form input[type="datetime-local"],
    .form input[type="submit"] {
        font-size: 0.9rem;
    }

    table {
        border-collapse: collapse;
        width: 100%;
        background: #006c8d;
        box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    }

    thead {
        display: none;
    }

    tr {
        display: block;
        margin-bottom: 15px;
        border: 1px solid #006c8d;
        border-radius: 5px;
        padding: 10px;
    }

    td {
        display: block;
        font-size: 14px;
        border: none;
        padding: 8px 10px;
        text-align: left;
        position: relative;
    }

    td:before {
        content: attr(data-label);
        display: block;
        font-weight: bold;
        margin-bottom: 5px;
        color: #444;
    }

    td:last-child {
        padding-bottom: 0;
    }

    tr:last-of-type td {
        border-bottom: none;
    }

    #admin {
        width: 95%;
        padding: 15px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    }

    #admin li a {
        font-size: 14px;
        padding: 8px 12px;
    }

    /* footer i nav fix */
    footer.site-footer {
        position: relative !important;
        bottom: auto !important;
        margin-top: 25px !important;
        text-align: center;
    }

    body {
        padding-top: 0;
        overflow-x: hidden;
    }
} /* END OF MOBILE MEDIA BLOCK */



/* ===== Per-page backgrounds ===== */
body.page-home {
  background: #000 !important;
  background-image: none !important;
}

.bg-video {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  z-index: 0;
}

.header, main {
  position: relative;
  z-index: 2;
  background: transparent;
  padding-bottom: 80px;
}

body.page-home::before {
  content: "";
  position: fixed;
  inset: 0;
  background: linear-gradient(rgba(4,9,30,0.35), rgba(4,9,30,0.35));
  z-index: 1;
 
}

body.page-home::before {
    pointer-events: none !important;}

body.page-cars {
  background: url('Gallery/bckg.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-contact {
  background: url('Gallery/bg-contact.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-about {
  background: url('Gallery/bg-about.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-register {
  background: url('Gallery/bg-register.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-signin {
  background: url('Gallery/bg-signin.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-admin {
  background: url('Gallery/bg-admin.jpg') no-repeat center center fixed;
  background-size: cover;
}
body.page-wishlist {
  background: url('Gallery/bg-wishlist.jpg') no-repeat center center fixed;
  background-size: cover;
}


/* === Nav link video background === */
nav { position: relative; }
.nav-video-container {
    position: absolute;
    pointer-events: none;
    overflow: hidden;
    border-radius: 8px;
    opacity: 0;
    transform: scale(0.96);
    transition: opacity 160ms ease, transform 160ms ease;
    box-shadow: 0 6px 18px rgba(0,0,0,0.35);
    filter: saturate(1.1) contrast(1.05);
    z-index: 0;
}
.nav-video-container.visible {
    opacity: 1;
    transform: scale(1);
}
.nav-video-container video {
    width: 140%;
    height: 140%;
    position: absolute;
    left: -20%;
    top: -20%;
    object-fit: cover;
    filter: blur(2px);
}
.nav-links { position: relative; z-index: 1; }
.nav-links ul li a {
    position: relative;
}
.nav-links ul li a:hover {
    text-shadow: 0 0 12px rgba(255,255,255,0.6);
}


/* === Page backgrounds === */
body:not(.page-home) {
    background-image: url('Gallery/bckg.jpg');
    background-position: center;
    background-size: cover;
    background-attachment: fixed;
    background-repeat: no-repeat;
}

body.page-home .bg-video { display: block; }
body:not(.page-home) .bg-video { display: none !important; }

.header, nav, main, footer { position: relative; z-index: 1; }

body:not(.page-home)::before {
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 0;
    pointer-events: none;
}

footer.site-footer {
  padding: 22px 12px 12px !important;
}
footer.site-footer .footer-content h2 {
  font-size: 20px !important;
}
footer.site-footer .footer-content p {
  font-size: 13px !important;
}
footer.site-footer .footer-social a {
  width: 24px !important;
  height: 24px !important;
}
footer.site-footer .footer-social a img {
  width: 14px !important;
  height: 14px !important;
}

.modal,
#lightbox-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 999999 !important; /* turbo iznad svega */
}

/* Footer neka bude normalan sloj, ispod modala */
footer,
footer.site-footer {
    position: relative !important;
    z-index: 0 !important;
}

/* Za svaki slučaj: header/nav/main ne smiju preskakati modal */
.header,
nav,
main {
    position: relative !important;
    z-index: 1 !important;
}

/* Sam modal content da ostane iznad overlaya */
.modal-content {
    position: relative;
    z-index: 1;
}


@media only screen and (max-width: 768px) {
  .nav-links {
    position: fixed !important;
    top: 0 !important;
    right: -100% !important;
    width: 70% !important;
    height: 100vh !important;
    background: #006c8d !important;
    transition: right 0.3s ease-in-out !important;
    padding-top: 70px !important;
    text-align: left !important;
    z-index: 999999 !important;
  }

  .nav-links.show {
    right: 0 !important;
  }


  .menu-overlay {
    position: fixed !important;
    inset: 0 !important;
    background: rgba(0, 0, 0, 0.7) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: opacity 0.3s ease-in-out !important;
    z-index: -999998 !important;
  }

  .menu-overlay.active {
    opacity: 1 !important;
    pointer-events: all !important;
  }

.menu-toggle,
nav .close-icon {
    position: fixed !important;
    top: 20px !important;
    right: 25px !important;
    font-size: 30px !important;
    color: white !important;
    z-index: 1000000 !important;
    cursor: pointer !important;
}


  /* Onemogući interakciju i vizualno potamni sve ispod */
  body.menu-open main ,
  body.menu-open header,
  body.menu-open footer {
    pointer-events: none !important;
    z-index: 0 !important;
  }
}
