@font-face {
    font-family: 'Fjalla One';
    src: url('../assets/FjallaOne-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Fjalla One', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    overflow-x: hidden;
}

/* Obsah nebude překrytý fixní patičkou */
main {
    flex: 1;
    margin-bottom: 120px; /* Toto odsazení bude odstraněno ve Step 7 nebo při výběru 5 a více položek na mobilu */
}

button {
    font-weight: bold;
    text-transform: uppercase;
    font-family: 'Fjalla One', sans-serif;
    letter-spacing: .1em;
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: rgb(255, 230, 242);
    padding: 10px 20px;
}

.navbar-left h1 {
    font-size: 2em;
    color: #ff66b2;
    margin: 0;
}

.navbar-left a {
    text-decoration: none;
    color: inherit;
}

.navbar-right {
    display: flex;
    align-items: center;
}

.wizard-container {
    max-width: 600px;
    margin: 2em auto;
    padding: 2em;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.step {
    margin-bottom: 1.5em;
}

input[type="range"] {
    -webkit-appearance: none;
    width: 100%;
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(to right, #ff66b2, #ff3380);
    outline: none;
    opacity: 0.8;
    transition: opacity 0.2s;
    margin-top: 1em;
    cursor: pointer;
}

input[type="range"]:hover {
    opacity: 1;
}

/* Webkit (Chrome, Safari) */
input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 50px;
    height: 50px;
    background: url('../assets/heart.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    border: none;
    margin-top: -19px;
}

input[type="range"]::-webkit-slider-thumb::before {
    content: "?";
    font-size: 30px;
    color: #FF66B2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

input[type="range"]::-moz-range-track {
    height: 12px;
    border-radius: 10px;
    background: linear-gradient(to right, #ff66b2, #ff3380);
}

input[type="range"]::-moz-range-progress {
    background: transparent;
}

input[type="range"]::-moz-range-thumb {
    width: 50px;
    height: 50px;
    background: url('../assets/heart.svg') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    border: none;
}

input[type="range"]::-moz-range-thumb::before {
    content: "?";
    font-size: 30px;
    color: #FF66B2;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

.flying-heart {
    position: absolute;
    font-family: 'Lineicons';
    font-size: 20px;
    color: #FF66B2;
    z-index: 100;
    animation: flyFromSlider 2s ease-out forwards;
    opacity: 0.8;
}

button {
    padding: .7em 1.5em;
    font-size: 1.2em;
    background: linear-gradient(to right, #ff66b2, #ff3380);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    z-index: 1;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 102, 178, 0.4);
}

.runaway-btn {
    background: #ffcccc;
    color: #ff3380;
}

#response-buttons {
    margin-top: 2em;
    display: flex;
    justify-content: space-around;
}

#calendar-section {
    margin-top: 20px;
}

#excited-gif img,
#happy-gif img {
    width: 250px;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 0;
}

/* Style for the long button with effects in Step 2 */
.long-effect-btn {
    width: 100%;
    padding: .5em;
    font-size: 1.5em;
    text-align: center;
    background: linear-gradient(to right, #ff66b2, #ff3380);
    color: white;
    border: none;
    border-radius: 30px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.long-effect-btn:hover {
    transform: scale(1.02);
    box-shadow: 0px 8px 15px rgba(255, 102, 178, 0.6);
}

.long-effect-btn::before {
    content: "💕💕💕";
    position: absolute;
    top: 50%;
    left: 5%;
    transform: translateY(-50%);
    font-size: 1.3em;
    opacity: 0.8;
    pointer-events: none;
}

.long-effect-btn::after {
    content: "💕💕💕";
    position: absolute;
    top: 50%;
    right: 5%;
    transform: translateY(-50%);
    font-size: 1.3em;
    opacity: 0.8;
    pointer-events: none;
}

.heart {
    position: absolute;
    bottom: -50px;
    width: 15px;
    height: 15px;
    background-color: #ff66b2;
    animation: float 10s infinite ease-in-out;
    opacity: 0.8;
    z-index: -1;
}

.heart::before,
.heart::after {
    content: '';
    position: absolute;
    width: 15px;
    height: 15px;
    background-color: #ff66b2;
    border-radius: 50%;
}

.heart::before {
    top: -7.5px;
    left: 0;
}

.heart::after {
    top: 0;
    left: -7.5px;
}

@keyframes rotate {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

@keyframes flyFromSlider {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

.calendar-container {
    display: grid;
    grid-template-columns: repeat(7, 1fr); 
    gap: 10px;
    width: 100% !important; 
    margin: 20px 0;
    box-sizing: border-box;
}

.day-header {
    font-weight: bold;
    text-align: center;
    font-size: 1.2em;
}

.date-box {
    background: #ff66b2;
    color: white;
    padding: 15px;
    text-align: center;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
    font-size: 1.1em;
	
	display: inline-flex; /* Aby se ikona a text zarovnaly */
	align-items: center;
	gap: 8px; /* Mezera mezi ikonou a textem */
	padding: 10px 15px;
	border-radius: 20px;
	box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.date-box::before {
  content: '\f073'; /* Font Awesome ikona kalendáře */
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
}

.date-box.selected {
    background: #ff3380;
    box-shadow: 0px 4px 12px rgba(255, 51, 128, 0.6);
}

.date-box:hover {
    background: #ff3380;
}

.dates-container {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    justify-content: flex-start;
    margin: 20px 0;
}

.time-slot-container {
    margin: 1em 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.time-slot {
    background: #ff3380;
    color: white;
    padding: 5px 10px;
    border-radius: 5px;
    display: inline-block;
    margin-top: 5px;
    margin-right: 5px;
}

.time-picker {
    font-family: 'Fjalla One', sans-serif;
    padding: 0.5em;
    border-radius: 10px;
    border: 1px solid #ddd;
    font-size: 1em;
    background: #f4f4f9;
    margin-right: 5px;
    outline: none;
    transition: border-color 0.3s ease;
}

.time-picker:focus {
    border-color: #ff66b2;
}

.add-time-slot-btn {
    padding: 0.7em 1.5em;
    background: linear-gradient(to right, #ff66b2, #ff3380);
    color: white;
    border: none;
    border-radius: 50px;
    font-weight: bold;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5em;
}

.add-time-slot-btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 4px 10px rgba(255, 102, 178, 0.4);
}

.remove-time-slot {
    display: none;
}

.remove-time-slot:hover {
    transform: scale(1.2);
    color: #ff66b2;
    box-shadow: 0 0 10px rgba(255, 102, 178, 0.4);
}

.remove-time-slot i {
    font-size: 1.2em;
}

/* Food & Activity Selection Styles */
.food-container, .activity-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
    margin-top: 20px;
}

.food-item, .activity-item {
    width: 150px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, box-shadow 0.3s ease-in-out;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
}

.food-item img, .activity-item img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform 0.3s ease-in-out;
}

.food-item label, .activity-item label {
    display: block;
    text-align: center;
    font-weight: bold;
    margin: 10px 0;
    color: #ff66b2;
}

.food-item:hover, .activity-item:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.food-item.selected, .activity-item.selected {
    transform: scale(1.13);
    box-shadow: 0 12px 24px rgba(255, 102, 178, 0.8);
}

.food-item.selected img, .activity-item.selected img {
    transform: rotate(-2deg) scale(1.1);
}

/* Additional Styles for images */
.food-images-container, .activity-images-container {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
    margin-top: 20px;
}

.food-image, .activity-image {
    width: 100px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.error-message {
    background-color: #ffcccc;
    color: #ff0000;
    padding: 1em;
    border-radius: 5px;
    text-align: center;
    margin-top: 10px;
    font-weight: bold;
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.1);
    text-transform: uppercase;
}

#full-calendar-container, #specific-dates-container {
    width: 100%;
    margin: 1em 0;
}

@keyframes float {
    0% {
        transform: translateX(0) translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateX(-200px) translateY(-1000px) rotate(360deg);
        opacity: 0;
    }
}

@keyframes flyFromSlider {
    0% {
        transform: translateY(0);
        opacity: 1;
    }
    100% {
        transform: translateY(-150px) translateX(50px) rotate(360deg);
        opacity: 0;
    }
}

#happy-gif-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

#excited-gif-section {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 300px;
}

/* Center align content in Step 6 */
#step-6 {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Pulse effect for "Send" button (a také pro CTA tlačítko v Step 7) */
.send-step {
    background: linear-gradient(to right, #ff66b2, #ff3380);
    color: white;
    padding: 0.7em 1.5em;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.3s;
    animation: pulse 1s infinite;
}

.send-step:hover {
    background: linear-gradient(to right, #ff3380, #ff66b2);
    transform: scale(1.15);
    box-shadow: 0px 4px 10px rgba(255, 102, 178, 0.4);
}

/* Definice keyframes pro pulsující efekt */
@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.05);
  }
  100% {
    transform: scale(1);
  }
}

/* Upravený fixní footer */
footer.site-footer {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #333;
    color: white;
    text-align: center;
    font-size: 0.9em;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
    padding: 20px;
    z-index: 1000;
}

footer.site-footer p {
    margin: 10px 0 0 0;
}

footer a {
    color: #ff66b2;
    text-decoration: none;
    transition: color 0.3s ease;
}

footer a:hover {
    color: #ff3380;
}

.policy-links {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.policy-btn {
  background-color: #ff66b2;
  color: white;
  padding: 10px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s, box-shadow 0.3s;
}

.policy-btn:hover {
  background-color: #ff3380;
  transform: scale(1.05);
  box-shadow: 0px 4px 10px rgba(255, 102, 178, 0.4);
  color: white;
}

/* Velikost sociálních ikon nastavena na 2em */
.footer-links .social-icon i {
    font-size: 2em;
}

/* Nové styly pro poslední krok (Step 7) */

/* Obecné odsazení pro Step 7 */
#step-7 {
  padding: 20px;
}

/* Upravený nadpis – pouze jeden, v capslocku */
.final-heading {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #444;
  text-transform: uppercase;
}

/* Kontejner rekapitulace */
.recap-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-around;
  margin-bottom: 30px;
}

.card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  flex: 1 1 calc(45% - 20px);
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
  min-width: 250px;
}

.card-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1em;
  color: #333;
  margin-bottom: 10px;
}

.card-item i {
  color: #ff66b2;
}

/* Obrázky v kartách – sjednocené */
.recap-image {
  width: 100%;
  max-height: 150px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 10px;
}

.card-text {
  font-size: 1em;
  color: #333;
  text-align: center;
}

/* CTA kontejner */
.cta-container {
  text-align: center;
  margin-top: 20px;
}

.cta-container button {
  font-size: 1.2em;
  padding: 15px 30px;
  background: #ff66b2;
  border: none;
  border-radius: 50px;
  color: #fff;
  cursor: pointer;
  transition: background 0.3s;
  animation: pulse 1s infinite;
}

.cta-container button:hover {
  background: #ff3380;
}

/* Responzivita – karty ve sloupci na mobilu */
@media (max-width: 480px) {
  .recap-container {
    flex-direction: column;
    align-items: center;
  }
  .card {
    flex: 1 1 100%;
  }
}

/* Další media queries zůstávají stejné */
@media (max-width: 768px) {
    body {
        padding: 10px;
        font-size: 1em;
    }
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px;
    }
    .navbar-left h1 {
        font-size: 1.5em;
        text-align: center;
    }
    .wizard-container {
        max-width: 100%;
        padding: 15px 10px;
        margin: 1em auto;
    }
    .step {
        margin-bottom: 1.5em;
        padding: 0 10px;
    }
    input[type="text"],
    input[type="file"],
    .time-picker {
        width: 100%;
        padding: 12px;
        margin: 10px 0;
        font-size: 1em;
        box-sizing: border-box;
    }
    button {
        padding: 12px 20px;
        font-size: 1em;
        width: 100%;
    }
    .right-bottom-btn,
    .back-step {
        position: static;
        width: 100%;
        margin: 10px 0;
    }
    .switch-container {
        flex-direction: column;
        align-items: flex-start;
    }
    .switch-container label {
        font-size: 0.9em;
        margin: 10px 0;
    }
    .calendar-container {
        grid-template-columns: repeat(4, 1fr);
        gap: 5px;
    }
    .date-box {
        padding: 8px;
        font-size: 0.9em;
    }
    .time-slot-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .food-container, .activity-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .food-item, .activity-item {
        width: 100%;
    }
    .food-item img, .activity-item img {
        height: 100px;
        object-fit: cover;
    }
    .food-item label, .activity-item label {
        font-size: 0.9em;
    }
    .add-food-section, .add-activity-section {
        margin-top: 20px;
    }
    .add-custom-food-btn, .add-custom-activity-btn {
        font-size: 1em;
        padding: 10px;
        width: 100%;
    }
    #happy-gif-section,
    #excited-gif-section {
        height: 200px;
    }
    #excited-gif img,
    #happy-gif img {
        width: 200px;
    }
}

@media (max-width: 480px) {
    nav {
        padding: 5px;
    }
    .navbar-left h1 {
        font-size: 1.2em;
    }
    .wizard-container {
        padding: 10px 0;
    }
    .step h2 {
        font-size: 1.2em;
    }
    input[type="text"],
    input[type="file"] {
        font-size: 0.9em;
    }
    button {
        font-size: 0.9em;
    }
    .food-container {
        grid-template-columns: 1fr;
    }
    .food-item img {
        height: 120px;
    }
    #happy-gif-section,
    #excited-gif-section {
        height: 150px;
    }
    #excited-gif img,
    #happy-gif img {
        width: 150px;
    }
}

/* ===== NOVĚ: Skrytí patičky na mobilních zařízeních ===== */
@media (max-width: 768px) {
    footer.site-footer {
         display: none !important;
    }
}