/**=================================*/
/**============ GENERAL ============*/
/**=================================*/

:root {
   --primary-color: #98C3E6;
   --secondary-color: #313131;
   --light-silver-color: #b1b1b1;
   --form-color: #b1b1b1;
}

html {
   font-size: 62.5%;
}

body {
   font-size: 1.6rem;
}

.noscript-warning {
   background: #fff3cd;
   color: #664d03;
   padding: 10px 16px;
   text-align: center;
   font-size: 14px;
}

/**==========================================*/
/**================= HEADER =================*/
/**==========================================*/

header {
   height: 100vh;
   background-image: url('assets/1.jpg');
   background-position: center;
   background-repeat: no-repeat;
   background-size: cover;
   overflow: hidden;
   position: relative;
}

header img.move {
   width: 100%;
   height: 100vh;
   object-fit: cover;
}

header img.confets {
   width: 100%;
   height: 100vh;
   object-fit: cover;
   position: relative;
   position: absolute;
   left: 0;
}

header img.confets {
   position: absolute;
   animation: confettiAnimation 3.25s ease infinite;
}

.snow-wrapper {
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 9999;
}

.snow-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url("assets/snow.png");
  opacity: 0.5;
  background-repeat: repeat-y;
  background-size: cover;
  animation: fall 8s linear infinite;
}

.snow-layer.second {
  top: -100%; /* počinje iznad prve */
}

@keyframes fall {
  to {
    transform: translateY(100%);
  }
}

.penguin,
.foca {
  position: absolute;
  transform-origin: bottom center; /* da se njišu kao igračke */
  animation-name: float-soft;
  animation-timing-function: ease-in-out;
  animation-iteration-count: infinite;
}
.penguin {
  width: 200px;
  left: 20%;
  bottom: 7%;
  animation-duration: 4.2s;
  animation-delay: 0.2s;
}

.foca {
  width: 500px;
  right: 7%;
  bottom: 5%;
  animation-duration: 3.8s;
  animation-delay: 0.8s;
}

/* blaga “lelujajuća” animacija */
@keyframes float-soft {
  0% {
    transform: translateY(0) rotate(0deg);
  }
  50% {
    transform: translateY(-8px) rotate(1.5deg);
  }
  100% {
    transform: translateY(0) rotate(0deg);
  }
}



/**==========================================*/
/**=============== POZIVNICA ================*/
/**==========================================*/

.pozivnica {
   overflow-x: hidden;
}

.pismo {
   height: 100vh;
}

#flip-card-inner {
   display: flex;
   justify-content: center;
   align-items: self-end;
   position: relative;
   width: 100%;
   height: 100%;
   text-align: center;
   transition: transform 0.6s;
   transform-style: preserve-3d;
}

#flip-card-front {
   background-image: url('/assets/pismo/1-3.png');
   background-repeat: no-repeat;
   background-position: top;
   background-size: contain;
   z-index: 2;
   position: absolute;
   /** pozicija pisma  */
   bottom: 10%;
   height: 600px;
   width: 600px;
}

#letter {
   position: absolute;
   top: 0px;
   width: 100%;
   height: 100%;
}

#letter img {
   width: 80%;
   height: auto;
}

#envelope {
   background-image: url('/assets/pismo/1.png');
   background-repeat: no-repeat;
   background-position: center;
   background-size: contain;
   z-index: 4;
   position: absolute;
   height: 600px;
   width: 600px;
}

/* THE MAINCONTAINER HOLDS EVERYTHING */
.maincontainer {
   position: absolute;
   width: 600px;
   height: 600px;
   background: none;
   top: 50%;
   left: 50%;
   transform: translate(-50%, -50%);
}

/* THE CARD HOLDS THE FRONT AND BACK FACES */
.thecard {
   position: absolute;
   top: 208px;
   left: 0;
   width: 100%;
   height: 100%;
   border-radius: 10px;
   transform-style: preserve-3d;
   z-index: 6;
}

/* THE FRONT FACE OF THE CARD, WHICH SHOWS BY DEFAULT */
.thefront {
   position: absolute;
   top: 0;
   left: 54px;
   width: 82%;
   height: 100%;
   backface-visibility: hidden;
   overflow: hidden;
   color: #000;
   background-image: url('assets/pismo/1-1.png');
   background-position: top;
   background-size: contain;
   background-repeat: no-repeat;
}

/* THE BACK FACE OF THE CARD, WHICH SHOWS ON MOUSEOVER */
.theback {
   position: absolute;
   top: 0;
   left: 0;
   width: 100%;
   height: 35%;
   backface-visibility: hidden;
   overflow: hidden;
   transform: rotateX(180deg);
   background-image: url('assets/pismo/1-2.png');
   background-position: top;
   background-size: contain;
   background-repeat: no-repeat;
}

.scroll-indicator-top,
.scroll-indicator-bottom {
   display: none;
   animation: arrowIndicatorBounce 2.3s infinite;
   justify-content: center;
   position: relative;
   z-index: 999;
}

.scroll-indicator-top img,
.scroll-indicator-bottom img {
   cursor: pointer;
   width: 20px;
}

.obavestenje {
   background-image: url('assets/img-section.jpg');
   background-position: bottom;
   background-size: cover;
   background-repeat: no-repeat;
   background-attachment: fixed;
   height: 60vh;
   display: flex;
   align-items: center;
}
.obavestenje div {
   margin-left: 25%;
}

.oText {
   width: 40%;
   font-family: century_bold;
   color: var(--secondary-color);
   font-size: 3.2rem;
   margin: 0;
}

/**==========================================*/
/**============= CONTACT FORM ===============*/
/**==========================================*/

.desktop {
   display: block;
}

.kontakt-forma {
   background-color: #fff;
   margin: 10rem 0;
}

.form-container h2 {
   font-size: 3.2rem;
}

input.form-control,
textarea.form-control,
select.form-select,
.txt-dodatak,
.txt-btn {
   font-size: 1.6rem;
}

input.form-control::placeholder,
textarea.form-control::placeholder,
select.form-select {
   color:var(--form-color)
}

input.form-control:focus,
textarea.form-control::focus,
select.form-select:focus {
   color: var(--form-color);
   border-color: var(--primary-color);
   box-shadow: 0 0 0 0.25rem rgb(222 184 103 / 43%);
}

input[type='text'],
select,
textarea {
   box-sizing: border-box; /* Make sure that padding and width stays in place */
   margin-bottom: 2.4rem; /* Bottom margin */
   resize: vertical; /* Allow the user to vertically resize the textarea (not horizontally) */
}

input[type='submit'] {
   background-color: #95a09c;
   color: #fff;
   width: 100%;
}

input[type='submit']:hover {
   background-color: #436947;
}

.first-half,
.second-half {
   display: flex;
   align-items: center;
   justify-content: space-between;
   margin-bottom: 2.4rem;
}

.first-half label,
.second-half label {
   width: 30%;
}

.first-half select,
.second-half select {
   width: 70%;
}

.form-container h2 {
   text-align: left;
   margin: 0 auto;
   width: 70%;
   font-family: century_bold;
   color: var(--primary-color);
}

.txt-dodatak {
   text-align: left;
   margin: 0 auto;
   width: 70%;
   padding-bottom: 5.4rem;
   color: var(--light-silver-color);
}

.form-container form {
   margin: 0 auto;
   width: 70%;
   display: flex;
   flex-direction: column;
   color: var(--primary-color);
   font-weight: 600;
}

.form-select {
   margin-bottom: 0;
}

.txt-btn {
   text-align: left;
   padding-bottom: 2.4rem;
   color: var(--light-silver-color);
   font-weight: 400;
}

.btn {
   padding: 0.9rem 1.8rem;
   font-family: century_bold;
   font-size: 2.08rem;
   color: #fff;
   background-image:  linear-gradient(to right, #799CB8, #98C3E6, #B6D5ED, #799CB8);
   box-shadow: 0 4px 15px 0 #98C3E6;
   background-size: 300% 100%;
   transition: all 0.4s ease-in-out;
}

.btn:hover {
   color: #fff !important;
   background-position: 100% 0;
   transition: all 0.4s ease-in-out;
}

.submit-btn.disabled {
   opacity: 0.6 !important;
   pointer-events: none !important;
   cursor: not-allowed !important;
}

label {
   margin-bottom: 1rem;
   /* text-indent: 1rem; */
}

.form-messages {
   margin: 0 auto;
   padding: 1rem;
   border-radius: 3px;
   font-size: 1.6rem;
   margin-top: 2rem;
   color: #fff;
   text-align: center;
}

option:checked {
   color: var(--primary-color);
}

.success {
   background-color: rgba(140, 198, 63, 0.7);
}

.error {
   background-color: rgba(198, 94, 63, 0.7);
}

.input-error {
   color: #fff;
   /* background-color: red; */
   background-color: rgba(198, 94, 63, 0.7);
   margin: 1rem 0;
   padding: 1rem;
   border-radius: 3px;
   display: none;
}

.form-loader {
   display: flex;
   gap: 0.5rem;
   align-items: center;
   font-size: 1.2rem;
   color: #555;
   margin: 2rem auto 0 auto;
}

.loader {
   width: 18px;
   height: 18px;
   border: 3px solid #ddd;
   border-top: 3px solid #555;
   border-radius: 50%;
   animation: spin 1s linear infinite;
}

@keyframes spin {
   0% {
      transform: rotate(0deg);
   }
   100% {
      transform: rotate(360deg);
   }
}

/**==========================================*/
/**================= FONTS ==================*/
/**==========================================*/

@font-face {
   font-family: century_normal;
   src: url(assets/fonts/Century_Normal.ttf);
}

@font-face {
   font-family: century_bold;
   src: url(assets/fonts/Century_Bold.ttf);
}

/***** Let's get this party started *****/

::-webkit-scrollbar {
   width: 12px;
}

/* Track */

::-webkit-scrollbar-track {
   -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
   /* border-radius: 10px; */
}

/* Handle */

::-webkit-scrollbar-thumb {
   /* border-radius: 10px; */
   background: var(--primary-color);
   border-radius: 10px;
   -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.5);
}

::-webkit-scrollbar-thumb:window-inactive {
   background: var(--primary-color);
   border-radius: 10px;
}

/**==========================================*/
/**============== SLIDE SHOW ================*/
/**==========================================*/
.sample-slider {
   width: 100%;
   overflow: hidden;
}

.sample-slider img {
   width: 100%;
   height: 250px;
   object-fit: cover;
   object-position: top;
}

.sample-slider .swiper-wrapper {
   transition-timing-function: linear !important;
   will-change: transform;
}

/**==========================================*/
/**================= FOOTER =================*/
/**==========================================*/

footer {
   height: 80vh;
   background-image: url(assets/img-footer.jpg);
   background-position: bottom;
   background-size: cover;
   background-repeat: no-repeat;
   background-attachment: fixed;
   color: var(--secondary-color);
   font-weight: 500;
}

footer div {
   height: inherit;
   display: flex;
   flex-direction: column;
   justify-content: center;
   text-align: left;
   margin-left: 25%;
}

footer div p {
   font-size: 1.6rem;
}

footer img {
   height: inherit;
   width: inherit;
   position: absolute;
}

a {
   text-decoration: none;
   color: var(--secondary-color);
   font-weight: 600;
}

footer a {
   display: inline-block;
   transition: 0.3s linear;
   font-size: 1.6rem;
}

footer a:hover {
   color: var(--secondary-color);
   transform: scale(1.05);
}

/**==========================================*/
/**============== CSS ANIMATIONS =============*/
/**==========================================*/

@keyframes arrowIndicatorBounce {
   0%,
   20%,
   50%,
   80%,
   100% {
      transform: translateY(0);
   }
   40% {
      transform: translateY(-20px);
   }
   60% {
      transform: translateY(-10px);
   }
}
