
@font-face {
    font-family: 'GUNSLINGER';
    src: url('GUNSLINGER.ttf') format('ttf');
    /* Dodaj alternativni format ukoliko ga imaš */
    font-weight: normal;
    font-style: normal;
}

body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    background: url('./background2.jpeg') no-repeat center center fixed;
    background-size: cover;
    color: #000;
}

.notification {
    /* position: relative; */
    margin-left: auto; /* Center the table horizontally */
    margin-right: auto; /* Center the table horizontally */
    top: 0;
    left: 0;
    width: 60%;
    padding: 10px;
    font-size: 15px;
    background-color: rgb(255, 32, 32);
    text-align: center;
    box-sizing: border-box;
    border-radius: 10px; /* Adds rounded corners */ 
    border: 2px solid black;
}

@media screen and (max-width: 490px) {
    .notification {
        width: 20em;
        margin: auto ;
        position: relative;
        border-radius: 10px; /* Adds rounded corners */ 
        border: 2px solid black;
    }
}


.content-container {
    background-color: rgba(255, 255, 255, 0.3); /* White background with opacity */
    padding: 20px;
    margin: 40px auto;
    width: 80%;
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

h1 {
    font-size: 3em;
    margin-bottom: 10px;
}

h2 {
    font-size: 2em;
    margin-bottom: 5px;
}

h3 {
    font-size: 1.5em;
    margin-bottom: 20px;
}
/* 
option {
    font-size: 1.2em;
} */

#dropdown {
    display: inline-block;
    position: relative;
}

select {
    width: 300px;
    padding: 10px;
    font-size: 16px;
    border: px solid #575757;
    border-radius: 5px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background: url('./calendar.png') no-repeat right 10px center white;
    background-size: 20px;
    padding-right: 40px;
}

select select option:first-child {
    display: none;
}

select::after {
    content: '\25BC';
    position: absolute;
    top: 16px;
    right: 15px;
    pointer-events: none;
}

.calendar-icon {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    vertical-align: middle;
}

#label {
    margin: 20px 0;
    font-size: 1.2em;
}

#dropdown {
    margin: 20px 0;
}

#buttons {
    margin: 20px 0;
}

button {
    padding: 10px 20px;
    font-size: 1em;
    color: black;
    background-color: white;
    border: 2px solid black;
    cursor: pointer;
    margin: 5px;
    border-radius: 10px; /* Adds rounded corners to buttons */
}

.disabledButton {
    background-color: #ccc; 
    color: #666666; 
    cursor: not-allowed;
    border: 2px solid rgb(89, 89, 89);
    text-decoration: 'line-through';
}


button:hover {
    background-color: black;
    color: white;
}

button.redHover {
    padding: 0.5em 1em; 
}

button.redHover:hover  {
    background-color: red;
    color: white; 
}

#dateFull {
    /* font-size: 1.2em; */
    color: rgb(165, 0, 0);
}

#nothingAvailable {
    font-size: 1.2em;
    color: rgb(165, 0, 0);
}

#nothingScheduled {
    font-size: 1.2em;
    color: rgb(165, 0, 0);
    /* border: 2px solid #000000;
    border-radius: 15px;
    padding: 10px;
    box-sizing: border-box;
    background-color: #f9f9f9; */
}

form {
    display: inline-block; /* Center align form */
    text-align: left; /* Left align form elements */
    border: 2px solid #000000;
    border-radius: 15px;
    padding: 40px;
    margin-left: auto; /* Center the table horizontally */
    margin-right: auto; /* Center the table horizontally */
    margin-bottom: 2em; /* Center the table horizontally */
    width: 30em;
    max-width: 80%;
    box-sizing: border-box;
    background-color: #f9f9f9; /* Optional: Add background color to form */
}

input[type="text"], input[type="phone"], input[type="email"] {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
}

.styled-table {
    border-collapse: collapse;
    margin-left: auto; /* Center the table horizontally */
    margin-right: auto; /* Center the table horizontally */
    margin-top: 2em;
    font-size: 18px;
    font-family: sans-serif;
    max-width: 80%;
    border-radius: 10px 10px 0 0;
    overflow: hidden;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.15);
    table-layout: fixed;
    width: 100%; 
}

/* For screens smaller than 400px */
@media screen and (max-width: 750px) {
    .styled-table {
        font-size: 16px; /* Even smaller font for very small screens */
    }
}

/* For smaller screens */
@media screen and (max-width: 700px) {
    .styled-table {
        font-size: 15px; /* Even smaller font for very small screens */
    }
}

@media screen and (max-width: 650px) {
    .styled-table {
        font-size: 13px; /* Even smaller font for very small screens */
    }
}

@media screen and (max-width: 600px) {
    .styled-table {
        font-size: 11px; /* Smaller font for small screens */
    }
}

@media screen and (max-width: 550px) {
    .styled-table {
        font-size: 10px; /* Smaller font for small screens */
    }
}

@media screen and (max-width: 500px) {
    .styled-table {
        font-size: 8px; /* Even smaller font for very small screens */
    }
}

@media screen and (max-width: 450px) {
    .styled-table {
        font-size: 7px; /* Even smaller font for very small screens */
    }
}

@media screen and (max-width: 400px) {
    .styled-table {
        font-size: 6px; /* Even smaller font for very small screens */
    }
}

@media screen and (max-width: 360px) {
    .styled-table {
        font-size: 5px; /* Even smaller font for very small screens */
    }
}

.styled-table thead tr {
    background-color: #c2c2c2;
    color: black;
    text-align: center;
    font-weight: bold;
}

.styled-table th,
.styled-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #dddddd;
    word-wrap: break-word;
    text-align: center;
}

.styled-table tbody tr {
    border-bottom: 1px solid #dddddd;
}

.styled-table tbody tr:nth-of-type(even) {
    background-color: #f3f3f3;
}

.styled-table tbody tr:last-of-type {
    border-bottom: 2px solid black;
}

.instagram-link {
    text-align: center;
    margin-top: 3em;
}

.instagram-logo {
    width: 50px;
    height: 50px;
    border-radius: 5px;
    transition: transform 0.3s ease;
}

.instagram-logo:hover {
    transform: scale(1.2);
}

.brankodex-logo {
    width: auto;
    height: auto;
    max-width: 90%;
    border-radius: 5px;
    padding-bottom: 2em;
    padding-top: 2em;
}

.barbers {
    width: auto;
    height: auto;
    max-width: 20%;
    border-radius: 5px;
    padding-bottom: 2em;
    padding-top: 2em;
}

.styled-label {
  background-color: white;   /* white background */
  color: black;              /* text color */
  border: 2px solid black;   /* black outline */
  border-radius: 8px;        /* rounded edges */
  padding: 4px 8px;          /* space inside */
  display: inline-block;     /* keeps padding + border tidy */
}

.styled-label-test {
  background-color: rgb(217, 217, 217);   /* white background */
  max-width: 50%;
  margin-left: auto; /* Center the table horizontally */
  margin-right: auto; /* Center the table horizontally */
  color: black;              /* text color */
  border: 2px solid black;   /* black outline */
  border-radius: 8px;        /* rounded edges */
  padding: 8px 15px;          /* space inside */
}

.pricing-container {
    font-family: 'GUNSLINGER', serif;
    background-color: #fff;
    padding: 20px;
    border-radius: 10px;
    margin: 3em auto;
    max-width: 70%; /* Adjusted max-width */
    min-height: 20em;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
    position: relative; /* important so ribbon positions inside */
    overflow: hidden;   /* hides ribbon overflow */
}

.pricing-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.pricing-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #ddd;
    padding: 10px 0; /* Smaller padding */
    text-align: left;
}

.pricing-item:last-child {
    border-bottom: none;
}

.pricing-item h4 {
    margin: 0 0 5px;
    font-size: 1em; /* Smaller font size */
    color: #333;
}

.pricing-item p {
    margin: 0;
    font-size: 0.7em; /* Smaller font size */
    color: #555;
}

.price {
    font-size: 1em; /* Smaller font size */
    color: #000;
    font-weight: bold;
}

.price-mali {
    font-size: 1em; /* Smaller font size */
    color: #ff0000;
    font-weight: bold;
}

@media (max-width: 768px) {
    .custom-select {
        width: 100%;
    }
}

.Ponedeljak {
    background-color: #b8e3ff !important;
}

.Utorak {
    background-color: #b8ffd1 !important;
}

.Sreda {
    background-color: #f6ffb8 !important;
}

.Četvrtak {
    background-color: #ffe9b8 !important;
}

.Petak {
    background-color: #ffb8b8 !important;
}

.Subota {
    background-color: #878787 !important;
}

/* LOADER TEST */
.loader-wrapper {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: white;  /* Background color to hide content */
    z-index: 1000;  /* Make sure it's on top of other elements */
}

.loader  {
    animation: rotate 1s infinite;  
    height: 50px;
    width: 50px;
}
  
.loader:before,
.loader:after {   
    /* Remove the circular shape and add irregular borders */
    border-radius: 50% 80% 70% 60%;
    content: '';
    display: block;
    height: 30px;  /* Larger height to create an elongated shape */
    width: 15px;   /* Narrower width */
    background-color: orange;  /* Cheeto-like color */
    box-shadow: 30px 0 0 darkorange;  /* Simulate multiple "Cheetos" */
}
  
.loader:before {
    animation: ball1 1s infinite;  
    margin-bottom: 10px;
}
  
.loader:after {
    animation: ball2 1s infinite; 
}
  
@keyframes rotate {
    0% { 
      transform: rotate(0deg) scale(0.8); 
    }
    50% { 
      transform: rotate(360deg) scale(1.2); 
    }
    100% { 
      transform: rotate(720deg) scale(0.8); 
    }
}
  
@keyframes ball1 {
    0% {
      box-shadow: 30px 0 0 darkorange;
    }
    50% {
      box-shadow: 0 0 0 darkorange;
      margin-bottom: 0;
      transform: translate(15px,15px);
    }
    100% {
      box-shadow: 30px 0 0 darkorange;
      margin-bottom: 10px;
    }
}
  
@keyframes ball2 {
    0% {
      box-shadow: 30px 0 0 darkorange;
    }
    50% {
      box-shadow: 0 0 0 darkorange;
      margin-top: -20px;
      transform: translate(15px,15px);
    }
    100% {
      box-shadow: 30px 0 0 darkorange;
      margin-top: 0;
    }
}

/* Hide the loader once the site is loaded */
.hidden {
    display: none;
}

.ribbon {
  position: absolute;
  top: 10px;
  right: -40px; /* shift so it cuts diagonally */
  background: red;
  color: white;
  padding: 5px 40px;
  font-weight: bold;
  transform: rotate(45deg);
  box-shadow: 0 2px 6px rgba(0,0,0,0.3);
  font-size: 14px;
}

/* Parent: make children sit side by side */
.barbers-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    padding: 20px;
}

.barbers-container[hidden] {
  display: none !important;
}

.barber-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: clamp(180px, 25vw, 260px);
}

.barbers-pics {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  border-radius: 15px;
}

.barbers-pics:hover {
  filter: brightness(30%); /* makes it darker */
}

.barbers-button {
    padding: 10px 20px;
    font-size: 1em;
    color: black;
    background-color: rgb(255, 255, 255);
    border: 2px solid black;
    cursor: pointer;
    margin: 5px;
    border-radius: 10px; /* Adds rounded corners to buttons */
    /* font-weight: bold; */
}

/* Overlay text box at the bottom */
.barber-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;                      /* span full width */
  background: white;
  color: black;
  border-top: 2px solid black;
  border-radius: 0 0 12px 12px;
  padding: 10px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;            /* text stays centered */
  box-sizing: border-box;
}

.barber-img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 3 / 4; /* ensures same height */
  border-radius: 15px;
  border: 2px solid black;
  overflow: hidden;
}