* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --primary-color: #38a4fe;
  --secondary-color: #ffca02;
  --primary-font-color: #474747;
  --dark-background-color: #292c33;
  --light-background-color: #f2f9ff;
  --btn-hover-color: #ffe102;

  --font-family: "Open Sans", sans-serif;

  --f-size-XS: 1rem;
  --f-size-S: 1.2rem;
  --f-size-M: 1.5rem;
  --f-size-L: 2rem;
  --f-size-XL: 2.5rem;
}
body {
  color: var(--primary-font-color);
  font-family: var(--font-family);
  background-color: var(--light-background-color);
}
section {
  overflow: hidden;
}
li {
  list-style-type: none;
}
a {
  text-decoration: none;
  font-size: var(--f-size-S);
  color: var(--primary-font-color);
}
p {
  margin-bottom: 1rem;
  font-size: var(--f-size-S);
  line-height: 1.5;
}
h2 {
  font-size: var(--f-size-L);
  margin: 2rem 0;
}
h3 {
  margin: 1rem 0;
  font-size: var(--f-size-S);
}

.container {
  max-width: 100rem;
  width: 80%;
  margin: 0 auto;
  height: 50rem;
}

.flex {
  display: flex;
}
.grid {
  display: grid;
}
.column {
  flex-direction: column;
}
.center {
  align-items: center;
  justify-content: center;
}
.absolute {
  position: absolute;
}
.relative {
  position: relative;
}
.uppercase {
  text-transform: uppercase;
}
.italic {
  font-style: italic;
}
.btn {
  padding: 0.75rem 1.25rem;
  background-color: var(--secondary-color);
  font-weight: bold;
  display: block;
  min-width: fit-content;
  width: 15rem;
  border-radius: 5px;
  margin-top: 1rem;
  text-align: center;
  cursor: pointer;
  color: #303030;
}
.btn:hover,
.btn:active {
  background-color: var(--btn-hover-color);
}
.show {
  display: flex;
}
.hidden {
  display: none;
}
/*-----------------MAX-WIDTH 1440px-----------*/
@media screen and (max-width: 1440px) {
  p,
  a {
    font-size: var(--f-size-XS);
  }
}
/*-----------------MAX-WIDTH 1280px-----------*/
@media screen and (max-width: 1024px) {
  h2 {
    font-size: var(--f-size-M);
  }
  a,
  p {
    font-size: 0.9rem;
  }
}
/*-----------------MAX-WIDTH 480px-----------*/
@media screen and (max-width: 480px) {
  .container {
    width: 90%;
  }
}
/*-----------------------------TOP-BAR-------------------------------------------*/
#top {
  width: 100%;
  height: 3rem;
  position: fixed;
  z-index: 50;
  top: 0;
  background-color: rgba(0, 0, 0, 0.2);
  color: white;
  padding: 0 2rem;
}
#top ul {
  height: 100%;
  align-items: center;
  justify-content: space-between;
  width: 20rem;
  margin: 0 auto;
}

#top a {
  color: var(--btn-font-color);
  text-decoration: none;
  text-shadow: 1px 2px 6px rgba(0, 0, 0, 0.444);
}
#top p {
  font-size: 0.6rem;
  display: inline;
  margin: 0;
  display: none;
}
#top i {
  color: var(--btn-font-color);
  font-size: var(--f-size-S);
}

#top i:hover {
  scale: 1.5;
}

/* -------- mobile -----------------------*/
@media screen and (max-width: 1280px) {
  #top {
    height: 2.5rem;
  }
  #top i {
    font-size: var(--f-size-XS);
  }
}
@media screen and (max-width: 480px) {
  h2 {
    font-size: var(--f-size-S);
    line-height: 1.5;
  }
  #top ul {
    width: 100%;
  }
}
/*-------------------------------------------------------------*/
header {
  background-color: rgba(0, 0, 0, 0.2);
  display: none;
  position: fixed;
  top: 3rem;
  left: 0;
  width: 100%;
  z-index: 49;
}
nav {
  width: 80%;
  max-width: 100rem;
  margin: 0 auto;
}
nav ul {
  height: fit-content;
}

nav li {
  padding: 0.5rem;
}
nav li:not(:last-child) {
  margin-right: 1rem;
}

nav li a {
  cursor: pointer;
  color: white;
  text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.7);
}
.menu-btn a:hover {
  color: #ffca02;
  text-shadow: 2px 2px 6px rgba(255, 255, 255, 0.7);
}

/*-----------------MAX-WIDTH 1280px-----------*/
@media screen and (max-width: 1280px) {
  header {
    top: 2.5rem;
  }
}
@media screen and (max-width: 800px) {
  nav li:not(:last-child) {
    margin-right: 0;
  }
}
/*-----------------MAX-WIDTH 480px-----------*/
@media screen and (max-width: 480px) {
  nav {
    width: 90%;
  }
  nav li {
    padding: 0.35rem;
  }
  nav li a {
    font-size: 0.85rem;
  }
}
/*-------------------------------------------*/
footer {
  background-color: var(--dark-background-color);
  padding: 3rem 0;
}
footer .container {
  height: 10rem;
  width: 70%;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  align-items: center;
  color: white;
  gap: 2rem;
}

footer h4 {
  margin-bottom: 0.5rem;
}
footer a {
  color: white;
}
footer p {
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
  display: inline;
}
footer img {
  height: 5rem;
}
footer .drustvene-mreze {
  align-items: center;
  gap: 1rem;
}
footer .drustvene-mreze i {
  font-size: 2.5rem;
}
/*------------------MAX-WIDTH 1280------------------*/
@media screen and (max-width: 1280px) {
  footer .container {
    width: 80%;
    height: 8rem;
  }
  footer p {
    font-size: 0.6rem;
  }
  footer h4 {
    font-size: 0.7rem;
  }
  footer img {
    height: 4rem;
  }
}
/*------------------MAX-WIDTH 1280------------------*/
@media screen and (max-width: 1024px) {
  footer .container {
    grid-template-columns: 1fr 1fr;
    height: fit-content;
  }
  footer p {
    font-size: 0.9rem;
  }
  footer h4 {
    font-size: var(--f-size-XS);
  }

  footer .info i {
    margin-right: 1rem;
  }

  footer .drustvene-mreze i {
    font-size: 2rem;
  }
  footer img {
    height: 3rem;
  }
}

/*------------------MAX-WIDTH 480------------------*/
@media screen and (max-width: 480px) {
  footer .container {
    grid-template-columns: 1fr;
    height: fit-content;
  }
  footer a,
  footer p {
    font-size: 0.7rem;
  }
}

/*-----------------------------------------------*/
#o-nama {
  background-color: var(--primary-color);
}
#o-nama .container {
  color: white;
  gap: 5%;
}
#o-nama h1 {
  font-size: 6rem;
  color: var(--secondary-color);
}
#o-nama .image {
  width: 50%;
  height: 100%;
}
#o-nama .image img {
  height: 100%;
}
#o-nama h2 {
  font-size: var(--f-size-L);
  margin: 0.5rem 0;
}
#o-nama .text {
  margin-top: 5%;
  width: 50%;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  #o-nama .image img {
    height: 90%;
    margin: auto 0;
  }
}

/*------------------------------------------------------------*/
@media screen and (max-width: 1024px) {
  #o-nama .container {
    height: fit-content;
    flex-direction: column;
    position: static;
    gap: 0;
  }
  #o-nama .image,
  #o-nama .text {
    width: 100%;
  }
  #o-nama .text {
    height: fit-content;
    order: 1;
    padding-top: 4rem;
    position: relative;
  }
  #o-nama .image {
    position: static;
    order: 2;
    width: 100%;
    height: 60vh;
  }
  #o-nama .image img {
    width: auto;
    height: 120%;
    object-fit: cover;
    justify-content: end;
    align-items: end;
    margin-top: -20%;
    margin-right: -50%;
  }
}

/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
  #o-nama h1 {
    font-size: 5rem;
  }
  #o-nama h2 {
    font-size: var(--f-size-M);
  }
}
/*------------------------MAX-WIDTH 600---------------*/

@media screen and (max-width: 600px) {
  #o-nama h1 {
    font-size: 5rem;
  }
  #o-nama h2 {
    font-size: var(--f-size-M);
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  #o-nama h2 {
    font-size: var(--f-size-S);
  }
  #o-nama span {
    font-size: 0.9rem;
  }
  #o-nama .image img {
    height: 100%;
  }
  #o-nama .btn {
    width: 12rem;
  }
}
/*-----------------------*/
#osnivanje {
  background-image: url(../images/top.png);
  background-repeat: no-repeat;
  background-position: center top;
  background-size: 100% auto;
}
#osnivanje .container {
  height: 40rem;
}
#osnivanje .image {
  width: 50%;
  height: 100%;
}
#osnivanje .text {
  width: 50%;
  height: fit-content;
  align-items: start;
  justify-content: center;
  min-height: 25rem;
  padding: 2rem;
}

#osnivanje img {
  display: block;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  border: 10px solid white;
  border-top-left-radius: 200px;
  border-bottom-right-radius: 100px;
  width: 33rem;
  height: 28rem;
  object-fit: cover;
  object-position: center;
  z-index: 5;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  #osnivanje img {
    width: 100%;
  }
}
@media screen and (max-width: 1024px) {
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
  #osnivanje .container {
    flex-direction: column;
    height: fit-content;
  }

  #osnivanje .text {
    position: static;
    width: 100%;
    padding: 0;
  }
  #osnivanje .image {
    width: 100%;
    height: 25rem;
    overflow: hidden;
  }
  #osnivanje img {
    position: static;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  #osnivanje .text {
    padding: 1rem;
  }
  #osnivanje .image {
    height: 20rem;
  }
}
/*--------------------------------------------------------------------*/
#ebc-tim {
  background-image: url(../images/bottom.png);
  background-repeat: no-repeat;
  background-position: center bottom;
  background-size: 100% auto;
}
#ebc-tim .container {
  gap: 2rem;
  height: 40rem;
}
#ebc-tim .text {
  width: 50%;
}
#ebc-tim img {
  width: 35rem;
  height: 30rem;
  object-fit: cover;
  object-position: center;
  border: 10px solid white;
  box-shadow: 3px 3px 8px rgba(0, 0, 0, 0.2);
  border-top-right-radius: 200px;
  border-bottom-left-radius: 100px;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  #ebc-tim img {
    width: 50%;
  }
}
@media screen and (max-width: 1024px) {
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
  #ebc-tim {
    padding-top: 3rem;
  }
  #ebc-tim .container {
    height: fit-content;
    flex-direction: column;
  }
  #ebc-tim img {
    width: 100%;
    height: 25rem;
    order: 2;
  }
  #ebc-tim .text {
    width: 100%;
    order: 1;
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  #ebc-tim .text {
    padding: 1rem;
  }
  #ebc-tim img {
    height: 20rem;
  }
}

/*---------------------------------*/
#ebc-ime {
  background-image: url(../images/o-nama.jpg);
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}
#ebc-ime::before {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  background-color: #38a5fe6c;
}
#ebc-ime .container {
  height: 25rem;
  z-index: 5;
  color: white;
}
#ebc-ime h2 {
  font-size: var(--f-size-XL);
  text-align: center;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
}
@media screen and (max-width: 1024px) {
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
}
/*--------------------------------*/
#info {
  background-color: var(--primary-color);
  padding: 3rem 0;
}
#info .container {
  height: fit-content;
  text-align: center;
  color: white;
}
/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
}
@media screen and (max-width: 1024px) {
}
/*------------------------MAX-WIDTH 800---------------*/

@media screen and (max-width: 800px) {
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
}
/*----------------------------------------------------*/
#kontakt {
  background-color: var(--primary-color);
  padding: 5% 0;
}
#kontakt .container {
  height: fit-content;
  gap: 2rem;
}
#kontakt h2 {
  text-align: center;
  color: white;
}

#kontakt .cards {
  grid-template-columns: repeat(4, 1fr);
  height: fit-content;
  margin: 2rem 0;
  text-align: center;
  width: 100%;
}
#kontakt .cards a {
  width: 100%;
}
#kontakt .square {
  width: 100vw;
  height: 20rem;
  top: 30%;
  background-color: var(--secondary-color);
}
#kontakt form {
  height: fit-content;
  width: 70%;
  background-color: white;
  padding: 3rem;
  margin: 2rem 0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
}

#kontakt form .red {
  color: red;
}
#kontakt form div:first-child {
  gap: 1rem;
}
#kontakt form div:first-child div {
  width: 50%;
}
#kontakt form hr {
  margin: 1rem 0;
}
#kontakt form label {
  margin: 0.5rem 0;
  width: 100%;
  display: block;
}
#kontakt form input,
#kontakt form textarea {
  width: 100%;
  padding: 0.5rem;
  font-family: var(--font-family);
  font-size: var(--f-size-XS);
  outline: none;
  border: none;
  background-color: #f0f0f0;
}
#kontakt form textarea {
  height: 12rem;
}
#kontakt form button {
  outline: none;
  border: none;
}
#kontakt p {
  text-align: center;
  color: white;
}
#kontakt h3 {
  font-size: var(--f-size-M);
  margin: 2rem 0 1rem;
  color: white;
}
#kontakt .card {
  align-items: center;
  color: white;
  padding: 0.5rem;
}

#kontakt i {
  font-size: 5rem;
  color: white;
}

/*---------MAX-WIDTH 1440-------------*/
@media screen and (max-width: 1440px) {
}

/*------------------------MAX-WIDTH 1280---------------*/
@media screen and (max-width: 1280px) {
  #kontakt h3 {
    font-size: var(--f-size-S);
  }
}
/*------------------------MAX-WIDTH 1024---------------*/
@media screen and (max-width: 1024px) {
  #kontakt .cards {
    grid-template-columns: 1fr 1fr;
  }
  #kontakt form div:first-child {
    flex-direction: column;
  }
  #kontakt form div:first-child div {
    width: 100%;
  }
}
/*------------------------MAX-WIDTH 800---------------*/
@media screen and (max-width: 800px) {
  #kontakt form {
    width: 80%;
    padding: 2rem;
  }

  #kontakt form textarea {
    height: 15rem;
  }
}
/*------------------------MAX-WIDTH 600---------------*/
@media screen and (max-width: 600px) {
  #kontakt form {
    width: 90%;
    padding: 2rem;
  }

  #kontakt i {
    font-size: 4rem;
  }
}
/*------------------------MAX-WIDTH 480---------------*/
@media screen and (max-width: 480px) {
  #kontakt i {
    font-size: 3rem;
  }
  #kontakt h3 {
    font-size: 0.9rem;
  }
  #kontakt p {
    font-size: 0.8rem;
  }
  #kontakt .card {
    padding: 0 0.5rem;
  }
}
