:root {
  --bg-color: #eeeeee;
  --btxt-color: #0b2545;
  --element-color: white;
  --hover-color: aqua;
  --fbg-color: #282d32;
}

/* Style reset */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Scroll optimization */
* {
  scroll-behavior: smooth;
  scroll-margin-top: 8em;
  outline: 1px solid red;
}
.hidden {
  opacity: 0;
  filter: blur(5px);
  transform: translate(-100%);
  transition: all 0.7s;
}
@media(prefers-reduced-motion: reduce){
  .hidden {
    transition: none;
  }
}
.anim{
  opacity: 1;
  filter: blur(0);
  transform: translate(0);
  /* animation: fadeIn 1s; */
}


/* Body styles */
body {
  min-height: 100vh;
  font-family: "Raleway", sans-serif;
  font-weight: 650;
  background-color: var(--bg-color);
  color: var(--btxt-color);
}
section {
  min-height: 60vh;
  display: grid;
  place-items: center;
}

/* Icons styles */
.bxl-facebook-circle, .bxl-instagram {
  color: var(--element-color);
  &:active {
    color: var(--element-color); 
  }
}
.bx-calendar-edit, .bxs-calculator, .bx-line-chart {
  font-size: 72px;
}

/* Container styles */
.container {
  margin: 5vh 0;
}
.wrap {
  max-width: 1180px;
  padding: 0 10px;
  margin: 0 5vw;
}


/* Header style */
header {
  height: 8em;
  display: flex;
  justify-content: center;
}
.nav-wrap{
  display: flex;
  position: fixed;
  z-index: 10;
  top: 2rem;
  width: 90vw;
}
.navbar {
  display: flex;
  justify-content: space-between;
  box-shadow: 3px 0px 10px rgba(0,0,0,0.1); 
  border-radius: 40px;
  background-color: var(--element-color);
  width: 100%;

  & .navlogo {
    display: block;
    width: 60px;
    height: 60px;
    margin: 0 30px;
  }
  & .menu-button {
    display: block;
  }
  & .hideOnMobile {
    display: none;
  }
  & ul {
    display: flex;
    list-style-type: none;
    white-space: nowrap;
    margin: 0 30px;
    gap: 10px;
    font-size: large;
  }
  & li {
    display: flex;
    align-items: center;
    align-content: center;
    justify-content: center;
  }
  & a {
    text-decoration: none;
    color: #333333;

    &:hover {
      color: aquamarine;
    }
    &:active {
      color: aqua;
    }
  }
}
/* Sidebar */
.sidebar {
  position: fixed;
  top: 0;
  right: 0;
  height: 100vh;
  width: 15rem;
  z-index: 20;
  background-color: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: -10px 0 10px rgba(0, 0, 0, 0.1);
  flex-direction: column;
  display: none;

  & ul {
    list-style: none;
    align-items: center;
    width: 100%;
    padding-top: 1rem;
  }
  & li {
    height: 50px;
  } 
  & a {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    text-decoration: none;
    padding-left: 2rem;
    color: #0b2545;
    &:hover {
      background-color: #f0f0f0;
    }
  }
}

/* Dropmenu */



/* Main section */
main {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
}
#onama {
  text-align: center;
  min-height: 20vh;

  & .mainlogo {
    width: 100px;
    height: 100px;
  }
}
#goals {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;

  & .row1 {
    background-color: white;
    box-shadow: 3px 0px 10px rgba(0,0,0,0.1); 
    border-radius: 40px;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    height: inherit;
  }
  & .grid {
    background-color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
  }
}
#usluge {
  display: flex;
  justify-content: center;
  height: auto;
}
#cene {
  white-space: pre-wrap;
}


/* Footer */
footer {
  background-color: #282d32;
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding-top: 50px;
}
.foot-wrap {
  width: 100%;
}
.contact {
  display: flex;
  flex-direction: column;
  justify-content: space-around;
  gap: 20px;

  & .social {
    text-align: center;
  }
  & .col {
    flex: 1 0 0%;
  }
  & p {
    text-wrap: nowrap;
    font-weight: 300;
    opacity: 0.6;
  
    &:hover {
      opacity: 0.9;
    }  
  }
  & .map {
    border: none;
    border-radius: 20px;
    width: 100%;
    height: 150px;
  }
}
.copyright {
  padding-top: 20px;
  margin-bottom: 10px;
  font-size: 12px;
  opacity: 0.3;
}


/* Screen size not supported message*/
.warning {
  display: none;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
}


/* Custom scrollbar */
::-webkit-scrollbar {
  width: 15px;
}
::-webkit-scrollbar-track {
  background: #eeeeee;
  border-radius: 20px;
}
::-webkit-scrollbar-thumb {
  background: gray;
  border-radius: 20px;
  border: 4px solid transparent;
  background-clip: content-box;
}
::-webkit-scrollbar-thumb:hover {
  background: #0b2545;
  background-clip: content-box;
}


/* Media Queries */
@media screen and (max-width: 300px) {
  & header, main, footer {
    display: none;
  }
  & .warning {
    display: flex;
  }
}
@media(max-width: 440px){
  .sidebar{
    width: 100%;
  }
}
@media screen and (min-width: 768px) {
  & .navbar {

    & .menu-button {
      display: none !important;
    }
    & .hideOnMobile {
      display: block;
    }
  }
  & #goals {
    height: 30vh;

    & .grid {
      flex-direction: row;
    }
  }
  & #usluge {
    height: 40vh;
  }
  & .contact {
    flex-direction: row;
    text-align: left;
    justify-content: space-between;
  }
}