:root {
    --fontSize: 16px;
    --white:white;
    --black:black;
    --darkBlue:#00296B;
    --blue:#003F88;
    --ligherBlue:#00509D;
  --yellow:#FFD500;
  --darkYellow:#FDC500;
  
  }
  
  * {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
  font-family: sans-serif;
  scroll-behavior: smooth;
  
  }
  
  body {
    width: 100%;
    background-color: var(--darkBlue);
    font-family: sans-serif;
  }











/* HEADER */


header {
    width: 70%;
    margin: auto;
    background-image: linear-gradient(rgba(0,63,136,0.3),rgba(0,63,136,0.9)),url("image-of-phones.jpg");
    clip-path: polygon(0 0, 100% 0, 100% 75%, 0 93%);
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: space-around;
    height: 20rem;
  }
  
  
  header img {
    width: 8rem;
    border-radius: 15px;
    transition: linear 0.15s;
    cursor: pointer;
  }
  
  
  
  header nav {
    display: flex;
    align-items: center;
    column-gap: 12rem;
    background-color: rgba(0, 80, 157,0.8);
    padding: 15px;
    border-radius: 1rem;
  }
  
  header nav li {
    font-size: 1.4rem;
    list-style-type: none;
    cursor: pointer;
  
  
  }
  
  
  
  header nav li a {
  
    border-radius: 10px;
    padding: 15px;
    text-decoration: none;
    color: var(--darkYellow);
    transition: linear 0.12s;
  }
  
  header nav li a:hover {
  background-color: var(--darkYellow);
  color: rgb(0,80,157);
  }
  


  @keyframes slideInLeft {

    from {
    transform: translateY(-40px);
    }
    
    
    to{
    transform: translateY(0);
    }
    
   
    }


  /* PHONE NAV */

  .phone-nav img {
width: 40%;
transform: scale(0.5);
display: none;

  }



  #nav-phone-list {
    display: none;
  }

  .phone-nav-lista {
   
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    list-style: none;
    font-size: 1.3rem;
    row-gap: 1rem;
    background-color: #00509D;
    width: 80%;
    margin: 0 auto;
    margin-bottom: 1.2rem;
    border-radius: 1.2rem;
    animation: slideInLeft 0.75s ease-in-out forwards;
  }

  .phone-nav-lista li {
    
    padding: 1.1rem;
    
  }




/* MAIN */



main {
    width: 70%;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }





  /* SAMSUNG POSEBNA SEKCIJA */



  .about-samsung-a55 {
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
  }

  .about-samsung-a55 p {
    width: 60%;
    font-size: 1.2rem;
    color: var(--darkYellow);
    border-left: 2px solid var(--darkYellow);
    padding-left: 1rem;
  }






.galaxy-a55-slike {
    display: flex;
    width: 80%;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}


.galaxy-a55-slike img {
    width: 40%;
}


/* SPECS OVERALL */

.specs-overall {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    row-gap: 3rem;
}


.specs-container {
    width: 100%;
}

.pod-naslov {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #00509D;
    padding: 1rem;
    border-radius: 2rem
    

}

.pod-naslov h3 {
    font-size: 1.7rem;
    color: var(--darkYellow);
}

.pod-naslov img {
    width: 2.5%;
    cursor: pointer;
}



#info1,
#info2,
#info3,
#info4 {
    display: none;
}

.specs-info {
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 1.5rem;
    flex-wrap: wrap;
    column-gap: 2rem;
    row-gap: 3rem;
}

.info {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  row-gap: 1rem;
}

.info:nth-child(odd) {
    background-color: #003F88;
    padding: 1.2rem;
    border-radius: 1rem;
}


.info h4 {
    font-size: 1.3rem;
    color: var(--darkYellow);
}

.info p {
    color: var(--white);
    font-size: 1.1rem;
}





/* IZABERI BOJE TELEFONA */

.available-colors-container {

  width: 60%;
  background-color: var(--ligherBlue);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
 gap: 2rem;
  padding: 2rem;
  border-radius: 1.2rem;
  margin:0 auto;
  margin-top: 2rem;
}


.one-color-phone {
  margin: 0 auto;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.one-color-phone img {
  width: 50%;
}

.one-color-phone h5 {
  font-size: 1.5rem;
  color: var(--darkYellow);
  background-color: #00296B;
  width: 30%;
  margin: 0 auto;
  margin-top: 1.5rem;
  padding: 0.6rem;
  border-radius: 1rem;
}


/* BUTTONS CHOSE COLORS */

.chose-color-button {
border: 2px solid var(--darkYellow);
width: 3.5rem;
height: 3.5rem;
border-radius: 50%;
margin-left: 2rem;
cursor: pointer;

}

#crni-fon-dugme {
  background-color: rgb(53, 53, 53);
}

#zuti-fon-dugme {
  background-color: rgb(233, 233, 129);
}

#plavi-fon-dugme {
  background-color: rgb(177, 201, 252);
}







.site-name-slogan {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: linear-gradient(rgba(0,63,136,0.3),rgba(0,63,136,0.9)),url(phones.jpg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    width: 100%;
    margin-bottom: 3rem;
    margin-top: 2rem;
  
  }

  .site-name-slogan p {
    color: var(--darkYellow);
    font-size: 3rem;
  }

  .site-name-slogan{
  
    text-align: center;
  }
  
  
  .site-name-slogan p {
    font-size: 3rem;
  }


  h1 {
    color: var(--darkYellow);
    font-size: 48px;
   margin-bottom: 3.4rem;
  }








.allPhonesContainer {
    margin-top: 2rem;
    width: 100%;
    background-color: var(--ligherBlue);
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
   gap: 2rem;
    padding: 2rem;
    border-radius: 1.2rem;

}







@keyframes appear {

  from {
      opacity: 0;
      scale: 0.5;
  }
  
  to {
      opacity: 1;
      scale: 1;
  }
  
  }
  
  
  






.phone-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 25%;
    background-color: var(--darkBlue);
    animation: appear linear;
    animation-timeline: view();
    animation-range: entry 0%;
    border-radius: 1.2rem;
    

}


.phone-pic {
    width: 100%;
    height: 60%;
    transform: scale(0.8);
    transition: all 0.15s ease-in-out;
 
   
}

.phone-pic:hover {
  transform: scale(0.9);
}

.phone-name {
    color: var(--darkYellow);
    font-size: 1.3rem;
}


.phone-memory {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 1rem;
}





.phones-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
  
}

.phones-buttons button {
    padding: 0.7rem;
    border: none;
    background-color: var(--darkYellow);
    color: #003F88;
    font-size: 1.3rem;
    cursor: pointer;
    transition: all 0.15s ease-in-out;
    border-radius: 1rem;

}

.phones-buttons button:hover {
    background-color: #003F88;
    color: var(--darkYellow);
}



.hide {
  display: none;
}

.price-phone {
    margin-bottom: 1rem;
    color: var(--darkYellow);
    font-size: 1.3rem;
    background-color: #003F88;
    padding: 0.5rem 3rem;
    border-radius: 1rem;
  


}




.price-and-cart {
  display: flex;
  justify-content: space-around;
  align-items: center;
  
}


.cart-image {
  width: 10%;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: all 0.15s;
}

.cart-image:hover {
  opacity: 0.8;
}




#cena1-1,
#cena1-2 {
  display: none;
}



.arrow-up {
  opacity: 0;
  width: 1.5%;
  position: fixed;
  bottom: 2rem;
  right: 4rem;
  transition: opacity 0.5s ease-in-out;
 

}

.arrow-up.visible {
  opacity: 1;
 
}




  /* FOOTER */

footer {

    width: 70%;
    margin: 2rem auto 0;
    background-image: linear-gradient(rgba(0,63,136,0.3),rgba(0,63,136,0.9)),url("image-of-phones.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    height: 36rem;
  
  
  
  
  
    
  }
  
  
  
  
  .socials,
  .upper-footer,
  .lower-footer {
  
  
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  width: 100%;
  
  
  }
  
  
  .lower-footer {
    align-items: flex-start;
  }
  
  
  
  
  .info-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* background-color: rgba(0, 80, 157,0.8); */
    padding: 5px;
  }
  
  
  .info-container img {
    width: 50px;
    height: 50px;
  }
  
  
  .info-container a {
    text-decoration: none;
    margin-top: 0.5rem;
    color: #FDC500;
    font-size: 1.2rem;
  }
  
  
  .info-container-link {
    transition: 0.2s ease;
    
  }
  
  
  .info-container-link:hover {
    opacity: 0.6;
  }
  
  
  hr {
    width: 90%;
    margin: 0 auto;
    color: #FDC500;
    margin-top: 20px;
    
  }
  
  
  .lower-footer {
    margin-top: 1.2rem;
    
  }
  
  
  
  footer .lower-footer ul {
    list-style: none;
    /* background-color: rgba(0, 80, 157,0.8); */
    padding: 10px;
  
    
  
  }
  
  
  
  footer .lower-footer ul li {
    margin-bottom: 1.2rem;
    color: #FDC500;
    font-size: 1.2rem;
  }
  
  
  .ul-heading {
    width: 900;
    background-color: rgba(0, 41, 107,0.8);
    width: fit-content;
    padding: 10px;
    border-radius: 10px;
  }
  
  
  ul li a {
    text-decoration: none;
    color: #FDC500;
    transition: 0.2s ease;
  }
  
  ul li a:hover {
    opacity: 0.6 ;
  }
  
  
  .socials {
    background-color: rgba(0, 41, 107,0.8);
    padding: 15px 0;
  
  }
  
  
  .socials p {
    color: #FDC500;
  padding: 10px;
  font-size: 1.2rem;
  }
  
  
  .socials img {
    width: 30px;
    transition: 0.2s ease;
  }
  
  
  .socials img:hover {
    opacity: 0.6;
  }
  





  @keyframes slideInLeft {

    from {
    transform: translateX(-200px);
    }
    
    
    to{
    transform: translateX(0);
    }
    
   
    }



main {

 animation: slideInLeft 0.75s ease-in-out forwards;

}












  /* MEDIA QUERY */



  @media(max-width:768px) {



    header nav {
      display: none;
    }
    
    
    header {
      display: flex;
    justify-content: space-between;
    align-items: center;
      width: 100%;
      clip-path: polygon(0 0, 100% 0, 100% 85%, 0 93%);
      
    
    }
    
    main {
      width: 90%;
    }
    
    
    
    h1 {
     
      font-size: 3rem;
     margin-bottom: 2rem;
    }
    
    
    .site-name-slogan{
      
      text-align: center;
    }
    
    
    .site-name-slogan p {
      font-size: 2rem;
    }
    
    
    
    
    .allPhonesContainer {
    
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: flex-start;
      flex-wrap: wrap;
     
    }


    .phone-container {
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      width: 80%;
      margin: 0 auto;
      
 
      
  
  }

  .phones-buttons button {
    font-size: 1rem;
  }


 

  .phone-name {
    font-size: 1.1rem;
    margin: 0 auto;
  }

  .phone-nav{
    width: 50%;
  }

header a {
  padding: 2rem;
}


  

      .phone-nav img {
        width: 100%;
        transform: scale(0.25);
    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;

      }


      header nav {
        display: none;
      }

      
      .arrow-up {
        width: 5%;
        position: fixed;
        bottom: 2rem;
        right: 2rem;
       
      
      }





/* SAMSUNG POSEBNA STRANICA */

.about-samsung-a55 p {
    width: 90%;
    font-size: 1rem;

  }


  .galaxy-a55-slike {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    margin-top: 2rem;
}


.galaxy-a55-slike img {
    width: 45%;
}


/* SPECS OVERALL MEDIA QUERY */








.pod-naslov h3 {
    font-size: 1rem;
}

.pod-naslov img {
    width: 4%;

}



.info h4 {
    font-size: 1rem;
    color: var(--darkYellow);
}

.info p {
    color: var(--white);
    font-size: 0.8rem;
}




/* IZABERI BOJE TELEFONA  MEDIA QUERY*/

.available-colors-container {

  width: 90%;
  background-color: var(--ligherBlue);
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
 gap: 2rem;
  padding: 2rem;
  border-radius: 1.2rem;
  margin:0 auto;
  margin-top: 2rem;
}


.one-color-phone {
  margin: 0 auto;
  text-align: center;
}

.one-color-phone img {
  width: 100%;
}

.one-color-phone h5 {
  font-size: 1.3rem;
  color: var(--darkYellow);
  background-color: #00296B;
  width: 50%;
  margin: 0 auto;
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 1rem;
}


    
/* FOOTER */


    footer {
    
      width: 100%;
      margin: auto;
     margin-top: 4rem;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      height: fit-content;
    
    
      
    }
    
    
    
    
    .socials,
    .upper-footer
     {
    
    
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    row-gap: 40px;
    
    
    }
    
    
    footer .lower-footer ul li {
      font-size: 10px;
    }
    
    div.socials {
      display: flex;
      flex-direction: row;
      justify-content: space-evenly;
      align-items: center;
      
    }
    
    
    .socials p {
      font-size: 10px;
    }
    
    .socials img {
      width: 20px;
    }
    
    
    }