header {
    background-color:white;
    color:white;
    text-align:center;
    padding:5px;	 
}
nav {
    line-height:30px;
    background-color:#eeeeee;
    height:40px;
    padding:10px;	 
}
section {
    padding:10px;	 	  
    font-size: 14px;
}
footer {        
    clear:both;
    position: fixed;  
    bottom: 0px;
    left: 0px;
    width: 100%;
    margin: 0;
    padding: 0;   
}

footer .copyright {
    background-color:black;
    color:white;
    text-align:center; 
}

input[type=text], input[type=password] {
  width: 285px;
  font-size: 18px;
}

input[type=submit] {
    background-color: white;
    border: 2px solid #008CBA;
    color: black;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
     -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    height: 40px;           
    cursor: pointer;        
    padding-left: 10px;
    padding-right: 10px;
}

input[type=submit]:hover {
    background-color: #008CBA;
    color: white;
}

footer a {
    background-color:black;
    color:white;   
     -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
}   
footer a:hover { 
    color: #008CBA;
}

a.advancedLink {
    background-color: white;
    border: 2px solid #008CBA;
    color: black;
    text-align: center;
    text-decoration: none;
    display: inline-block;
     -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    height: 40px;
    line-height: 40px;    
    padding-left: 10px;
    padding-right: 10px;
}   

a.advancedLink:hover {
    background-color: #008CBA;
    color: white;
}  

a.buttonAsLink {
    color:black;   
}

a.buttonAsLink:hover img.car_preview_manufacturer {
    background-color: lightblue;
  box-shadow: inset 0 0 0 5px black;
}

a.red {
    border: 2px solid #D8430E;
}

a.red:hover {
    background-color: #D8430E;
}

header img.logo {
  height: 200px;
} 

nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
}

nav ul li {
    float: left;
}

nav ul li a {
    background-color: white;
    border: 2px solid #008CBA;
    color: black;          
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
     -webkit-transition-duration: 0.4s; /* Safari */
    transition-duration: 0.4s;
    height: 40px;
    line-height: 40px;
    padding-left: 10px;
    padding-right: 10px;
}

nav ul li a:hover {
    background-color: #008CBA;
    color: white;
}

div.popup {
    /* some styles to position the modal at the center of the page */
    position: fixed;
    top: 50%;
    left: 50%;
    width: 350px;
    height: auto;
    margin-left: -150px;
    margin-top: -80px;
    background-color: white;
    text-align: center;
  
    /* needed styles for the overlay */
    z-index: 10; /* keep on top of other elements on the page */
    outline: 9999px solid rgba(0,0,0,0.5);
}


div.popup p.title { 
    font-size: 18px;
}

h3.title {
    width: 100%;
    text-align: center;
    font-size: 24px;
    background-color: #CDEAF8;
}  

h4.title {
    line-height: 24px;
}  
 
h5.title {
    margin-left: 30px;
}

h4.maintenance {    
    width: 500px;      
    height: 60px;
    text-align: center;    
    padding-top: 20px;
    padding-left: 50px;
    margin-left: auto;
    margin-right: auto;
    border: 1px double #8797EE;    
    border-radius: 25px;
}               
     
h4.maintenance img {
    width: 48px;
    position: absolute;      
    margin-left: -64px;
    margin-top: -20px;
}

h4.maintenance img {
    -webkit-animation-name: rotate;
    -webkit-animation-duration:5s;
    -webkit-animation-iteration-count:infinite;
    -webkit-animation-timing-function:linear;
    -moz-animation-name: rotate;
    -moz-animation-duration:5s;
    -moz-animation-iteration-count:infinite;
    -moz-animation-timing-function:linear;
}

@-webkit-keyframes rotate {
  from {-webkit-transform:rotate(0deg);}
  to {  -webkit-transform:rotate(360deg);}
}

@-moz-keyframes rotate {
  from {-moz-transform:rotate(0deg);}
  to {  -moz-transform:rotate(360deg);}
}

@keyframes rotate {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}


.car-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 15px;
}
.car-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  background: #fff;
}
.car-card.archived .car-photo {
  filter: grayscale(100%);
  opacity: 0.7;
}
.car-photo {
  width: 100%;
  height: 180px;
  object-fit: cover;
}
.car-info {
  padding: 12px;
}
.car-logo {
  height: 32px;
  vertical-align: middle;
}
.car-info h3 {
  margin: 5px 0;
}
.car-actions {
  margin-top: 10px;
}
.car-actions a {
  display: inline-block;
  margin-right: 8px;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 14px;
  text-decoration: none;
}
.btn-detail { background: #17a2b8; color: white; }
.btn-archive { background: #007bff; color: white; }
.btn-delete { background: #dc3545; color: white; }

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 24px;
  margin-left: 10px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0;
  right: 0; bottom: 0;
  background-color: #ccc;
  transition: .4s;
  border-radius: 24px;
}

.slider:before {
  position: absolute;
  content: "";
  height: 18px;
  width: 18px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: .4s;
  border-radius: 50%;
}

input:checked + .slider {
  background-color: #2196F3;
}

input:checked + .slider:before {
  transform: translateX(26px);
}

/* skrytá sekcia */
.hidden {
  display: none;
}