/* * custom colour classes */

:root {
    --color-white: #fff2e8;
    --color-dark-grey:#868e96;
    --color-grey:#ced4da;
    --color-light-grey:#e9ecef;

    --color-black: #331904;
    --color-primary-dark:#d9480f;
    --color-primary: #fd7e14;
    --color-primary-off: #fd8b2c;
    --color-primary-light:#ffc078;
    
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    ::selection { 
        background: var(--color-primary-light);}
}


/* * GENERAL REUSABLE STYLES */
html {
    font-size: 62.5%;
    overflow-x: hidden;
}


body {
    font-size: 1.6rem;
    background-color: var(--color-white);
    font-family: 'Poppins', sans-serif;
}

.page-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    position: relative;
}

footer {
    background-color: var(--color-black);
    color: var(--color-white);
    width: 100%;
    height: 8rem;
    font-weight: 400;
    position: absolute;
    bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 4000;
}

/* * BUTTONS */

.btn {
    font-size: 1.7rem;
    font-weight: semi-bold;
    display: inline-block;
    background-color: var(--color-primary);
    padding: 0.5rem 1.8rem;
    cursor: pointer;
    outline: none;
    border: none;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

.btn:active {
    transform: translateY(2px);
    box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}

.btn:hover {
    opacity: 0.8;
}

.btn-light {
    background-color: var(--color-primary-light);
}


/* *ANIMATIONS */

/* animation for the low stock banner */

@keyframes flashBanner {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 1;
    }
    60% {
        opacity: 0; 
    }

    100% {
        opacity: 1; 
    }
}

/* anination for hover when remiving items fron basket */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg); 
    }
}


/* animation for filling the skills bar */
@keyframes fill-bar {
    0% {
        width: 0;
    }
    100% {
        width: var(--progress);
    }
}


/* * TOP NAVIGATION */

.top-nav {
    color: var(--color-white);
    background-color: var(--color-black);
    height: 9vh;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
}



.logo {
    margin-left: 2rem;
    height: 20rem;
}


@media (max-width: 50em) {
    .logo {
        margin-left: 1rem;
        height: 14rem;
    }
}

.top-nav-list {
    display: flex;
    list-style: none;
    margin-right: 8rem;
}

.top-nav-list > :not(:last-child) {
    margin-right: 1rem;
}

.link {
    text-decoration: none;
    font-size: 1.9rem;
    letter-spacing: 1.1px;
    width: 100%;
    padding: 0.6rem;
    color: inherit;
}

.link:hover {
    cursor: pointer;
    border-bottom: var(--color-black) solid;
}

.link-light:hover {
    border-bottom: var(--color-white) solid;
}

/* hamburger styles */

.menu-toggle {
    display: none;
}

.hamburger-bars,
.hamburger-cross {
    display: none;
    position: absolute;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
    z-index: 2001;
}

.hamburger-bars svg,
.hamburger-cross svg {
    color: var(--color-white);
    width: 4rem;
    height: 4rem;
    color: white;
    z-index: 2001;
}

/* Mobile nav */
.hamburger-nav-list {
    visibility: hidden;
    transform: translateX(100%);
    transition: transform 0.6s ease, opacity 0.6s ease;
    background-color: var(--color-primary-off);
    position: absolute;
    top: 0;
    right: 0;
    width: 50%;
    height: 100%;
    padding: 8rem 2rem;
    display: flex;
    flex-direction: column;
    list-style: none;
    z-index: 2000;
}

.hamburger-nav-list li {
    margin-bottom: 2rem;
}

.menu-toggle:checked ~ .hamburger-nav-list {
    visibility: visible;
    opacity: 0.95;
    transform: translateX(0);
}



/* Hamburger icon toggle */
.menu-toggle:checked ~ .hamburger-bars {
    display: none;
}

.menu-toggle:checked ~ .hamburger-cross {
    display: block;
}

/* media query for medium screen */
@media (max-width: 52em) {
    .top-nav-list {
        display: none;
    }

    .hamburger-bars {
        display: block;
    }
}


/* * SIDE NAVIGATION */

.side-nav {
    background-color: var(--color-primary-off);
    display: flex;
    flex-direction: column;
    align-items: center;
    min-height: 90vh;
    min-width: 13vw;
    padding-top: 6rem;
}

.side-nav-list {
    display: flex;
    flex-direction: column;
    list-style: none;
}

.side-nav-list li {
    padding-bottom: 1.3rem;
}

@media (max-width: 62em) {

    .side-nav {
        /* visibility: collapse; */
        display: none;
    }

    .tabs-container {
        max-width: 100vw;
    }
}



/* ? TASK 4 - JQUERY PAGE */


.tabs-container {
    background-color: var(--color-white);
    max-width: 90vw;
    z-index: 50;
}

.tabs-container h1 {
    font-family: 'Poppins', sans-serif;
    text-align: center;
    padding: 4rem 0;
}

#tabs {
    border: 0;
    padding: 0;
}

@media (max-width: 48em) {

    .tabs-container {
        min-width: 100vw;
    }
}

.tab {
    background-color: var(--color-grey);
    color: var(--color-black) !important;
    border: none;
    font-family: 'Poppins', sans-serif;
}

/* ? Overiding Jquery default styles */

.ui-tabs .ui-state-active a {
    background-color: var(--color-primary-light) !important;
    color: var(--color-black) !important;
}

.ui-tabs .ui-state-active {
    border: none !important; 
    outline: none !important; 
    box-shadow: none !important;
    background: #d9480f !important;
}

.tab-content {
    font-family: 'Poppins', sans-serif;
    width:90vw;
}

/* * faq */

.accordion-answer-wrap {
    display: flex;
}

.accordion-answer {
    margin-left: 2rem;
}

.skill-logo-faq {
    width: 3.6rem;
    height: 3.6rem;
}

/* * Colourpicker  */


#colour-info {
    font-weight: bold;
    margin-top: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

#swatch:hover {
    cursor: pointer;
}

#red, #green, #blue {
    float: left;
    clear: left;
    width: 300px;
    margin: 15px;
  }
  #swatch {
    width: 120px;
    height: 100px;
    margin-top: 18px;
    margin-left: 350px;
    background-image: none;
  }
  #red .ui-slider-range { background: #e03131; }
  #red .ui-slider-handle { border-color: #e03131; }
  #green .ui-slider-range { background: #37b24d; }
  #green .ui-slider-handle { border-color: #37b24d; }
  #blue .ui-slider-range { background: #228be6; }
  #blue .ui-slider-handle { border-color: #228be6; }


  /* Accordion */

  #accordion .ui-accordion-content  {
    padding: 2rem 1rem;
    height: 12rem;
  }

  @media (max-width: 48em) {
    #accordion .ui-accordion-content  {
        padding: 1rem 0.5rem;
        height: 16rem;
      }
}

/* sortable list */

.to-do-intro {
    margin-right: 1rem;
}

.sortable-list {
    list-style: none;
    margin-bottom: 1rem;
    cursor:grab;
    background-color: var(--color-grey);
    border: solid 1px var(--color-primary-dark);
    max-width: fit-content;
  
}

.sortable-list li {
    background-color: var(--color-light-grey);
    padding: 1rem;
    margin-bottom: 0.5rem;
    cursor: pointer;
    padding: 1rem 2rem 1rem 2rem;
}

#add-item {

    margin-left: 2rem;
}

.list-item {
    margin-bottom: 0.5rem;

}

.remove-item {
    margin-left: 2rem;
}


/* ? TASK 2 - TEXT INPUT */

.text-container {
    margin-top: 8rem;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    

}

.text-container h1 {
    margin-bottom: 3rem;

}

.text-input-form {
    width: 50%;
   display: flex;
   flex-direction: column;
}

textarea {
    font-size: 1.7rem;
    padding: 0.5rem;
    font-family: inherit;
    outline: none; 
    border: solid 1px var(--color-primary-light) ;
}

textarea:focus {
    outline: none;
    border: solid 2px var(--color-primary-dark) ;

}

.button-container {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 2rem;
}

.count-button {
    margin-top: 2rem;
    width: 10rem;
}

@media (max-width: 50em) {
    textarea {
        max-width: 40rem;
    }
    .text-container h1 {
     text-align: center;   
    }

    #feedback {
        padding: 1rem 3rem;
        text-align: justify;
    }

}


/* ? TASK 1 - SHOPPING CART */

.shopping-container {
    display: flex; 
    padding-bottom: 8rem;
    margin-bottom: 10rem;
}

.shopping-page-title {
    margin-top: 1rem;
    position: absolute;
    top: 0%;
    left: 50%;
    width: 80%;
    transform: translateX(-50%);
    }

    @media (max-width: 50em) {
        
        .shopping-page-title {
            font-size: 1.4rem;
        }
    }

    /* PRODUCT CARDS */

.products-container {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 10rem;
    padding: 0rem 4rem;
}


.products-container h1 {
    margin: 2rem 0rem;
    text-align: center;
}
.product-card {
    padding: 2rem;
    width: 30rem;
    height: auto;
    border : solid 2px var(--color-primary-dark);
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.2);
    margin: 2rem;
}

.product-card:hover {
    box-shadow: 0 10px 15px rgba(0, 0, 0, 0.4);
}

.product-name {
    margin-bottom: .5rem;
}

.product-rating {
    margin-bottom: .5rem;
}

.star-rating {
    width: 1.8rem;
    height: 1.8rem
}

.product-image-wrap {
    position: relative;
}

.product-image {
    width: 100%;
    object-fit: contain
}


.product-banner {
    position: absolute;
    left: 0;
    top: 0;
    padding: 2px 3px;
    text-transform: uppercase;
    letter-spacing: .5px;
    font-size: 1.4rem;
    font-weight: 600;
    background-color: var(--color-primary-light);
    
}

.low-stock {
    animation: flashBanner 2s infinite ease-in-out ;
    background-color: var(--color-primary-dark);
    color: var(--color-white);
    font-weight: 400;
}

.product-desc-wrap {
    height: 25rem;
}

.product-desc {
    margin: 1rem 0rem;
  font-size: 1.5rem;
}

.product-bullets {
    margin: 1rem 0rem 1rem 2rem;
    font-size: 1.4rem;
}

 .product-price {
    font-size: 2.4rem;
    margin-bottom: 1rem;
 }


.basket-container {
 
    border-radius: 5px;
    display: flex;
    flex-direction: column;

}

.basket-content {
    position: fixed;
    height: auto;
    background-color: var(--color-grey);
    box-shadow: -5px 0 15px rgba(0, 0, 0, 0.2);
    transition: right 0.3s ease-in-out;
    z-index: 1000;
    padding-left: 2rem;
    padding-bottom: 3rem;
    opacity: 0.93;
    width: 36rem;
    right: -100%
}

.icon-wrap {
    position: relative;
}

.basket-items-count {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    font-size: 1.3rem;
    font-weight: 600;
    border-radius: 50%;
    height: 2.2rem;
    width: 2.2rem;
    /* padding: 2px 2px; */
    background-color: #37b24d;
    right: 80%;
    top: 50%;
    z-index: 2000;
}


.toggle-cart-checkbox {
    visibility: collapse;
}

.toggle-cart-btn {
    position: absolute;
    visibility: visible;
    position: fixed;
    top: 3%;
    right: 6%;
    z-index: 1100;
    background-color: var(--color-primary-light);
    color: var(--color-black);
    border: none;
    padding: 0.5rem 1.5rem;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.4rem;
    text-align: center;
    border-radius: 5px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
}

@media (max-width: 57em) {
    .toggle-cart-btn {
        right: 9%;
    }
}

@media (max-width: 52em) {
    .toggle-cart-btn {
        right: 20%;
    }
  
}

@media (max-width: 40em) {
    .toggle-cart-btn {
        right: 30%;
    }
  
}

.toggle-cart-btn::after {
    content: "Show Basket";
    /* display: inline-block;
    width: 11rem; */
} 

.toggle-cart-checkbox:checked ~ .basket-content {
    right: 0;
}

.toggle-cart-checkbox:checked + .toggle-cart-btn::after {
    content: "Hide Basket";
}

.basket-heading {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 4rem;
}


.basket-icon {
    height: 2.2rem;
    width: 2.2rem;
    margin-left: 2rem;
}

.basket-icon-top
{
    cursor: pointer;
    height: 3rem;
    width: 3rem;
    margin-right: 3rem;
}

@media (max-width: 52em) {
    .basket-icon-top {
        margin-right: 10rem;
    }
}



.basket {
    padding: 1rem
}

.basket-product {
    display: flex;
    align-items: center;
    justify-content:flex-start;
    margin-bottom: 2px;
    margin-top: 1rem;
}

.basket-item-name {
    font-weight: 600;
    margin-left: .5rem;
    margin-right: 1rem;
   
}

.basket-item-quantity {
    margin-right: 2rem;

}

.remove-basket-item {
    cursor: pointer;
    font-size: 1rem;
    width: 2rem;
    height: 2rem;
    background-color: var(--color-primary);
    padding: 2px;
    border: none;
    border-radius: 50%;
    transition: transform 0.3s ease;
}

.remove-basket-item:hover {
    transform: scale(1.3);
    animation: spin 0.5s ease-in-out;
}


.basket-item-price {
    font-size: 1.4rem;
    margin-left: 2px;
}

.image-thumbnail {
    width: 4rem;
}

.basket-total {
    margin-left: 1rem;
}

.clear-basket {
    visibility: hidden;
    font-size: 1.4rem;
    margin-top: 2rem;
}


/* * HOME PAGE ROTATING CARD */

.card-container {

    height: 85vh;
    min-width: 87vw;
    display: flex;
    justify-content: center;
    align-items: center;

}

@media (max-width: 52em) {
    .card-container {
        min-width: 100%;
}
}

.business-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    
}

.card {
    width: 44rem;
    height: 60rem;
    perspective: 100rem;
    
  }

.card-inner {
    width: 100%;
    height: 100%;
    transition: 0.6s;
    transform-style: preserve-3d;
    position: relative;
    border-radius: 10px;
}


.card-inner.flipped {
    transform: rotateY(180deg);
  }

/* 
.card:hover .card-inner {
    transform: rotateY(180deg);
  } */

  .card-front, .card-back {
     color: var(--color-black);
    position: absolute;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    backface-visibility: hidden;
    border-radius: 2rem;
  }
  


.card-front  {
    padding-top: 8rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: var(--color-primary) ;
    border-radius: 1rem;
    border: solid 1rem var(--color-primary-light);
}

.card-front h1 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem 0;
    font-weight: 600;
    letter-spacing: 0.8px ;
}

.line-one, .line-two {
    color: #181818; 
    margin-bottom: 1rem;
}

.line-one {
    width: 60%;
}

.line-two {
    width: 40%;
}

.card-front h2 {
    font-weight: 500;
    font-size: 2rem;
    margin: 0 0 1rem 0;
}

.card-front h3 {
    font-weight: 400;
    padding-bottom: 6rem;
}


.card-photo {
    height: 16rem;
    width: 16rem;
    border-radius: 50%;
    border: #fff solid 0.1rem;
}


.show-more-button {
   display: flex;
}

.show-more-icon {
    width: 2.4rem;
    height: 2.4rem;
    margin-left: 1rem;
}


.card-back {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    font-size: 2rem;
    background-color: var(--color-primary-light);
    color: var(--color-black);
    transform: rotateY(180deg);
    padding: 0 3rem 0 3rem; 
    ::selection { 
        background: var(--color-primary);}
}

.card-back-title {
    margin-bottom: 2rem;
    padding: 1rem;
    text-align: center;
    border-bottom: solid 2px var(--color-black);

}

.skills {
    width: 100%;
}

.skill-name-wrap {
    display: flex; 
    align-items: center;
    margin-bottom: .5rem;

}
.skill-name {
    text-transform: uppercase;
    margin-left: 1rem;
}

.skill-name:not(:last-child) {
    margin-bottom: 0.2rem;
}

.skill-logo {
    width: 24px;
    height: 24px;
}


.skill-bar {
    height: 1.5rem;
    background-color: var(--color-primary-light);
    margin-bottom: .5rem;
}

.skill-progress {
    position: relative;
    height: 1.3rem;
    background-color: var(--color-dark-grey);
}

.skill-progress::before {
    content: attr(per);
    position: absolute;
    padding: 2px 3px;
    border-radius: 2px;
    font-size: 1.2rem;
    background-color: var(--color-white);
    right: 0%;
    top:-38%;
}

.skill-progress-html {
    max-width: 85%;
}

.skill-progress-css {
    max-width: 75%;
}

.skill-progress-js {
    max-width: 60%;
}

.skill-progress-php {
    max-width: 50%;
}

.skill-progress-sql {
    max-width: 55%;
}

.skill-progress-react {
    max-width: 45%;
}

.skill-progress-tailwind {
    max-width: 65%;
}

.skill-bar:hover .skill-progress {
    animation: fill-bar 0.8s forwards;
}

.btn-container {
    margin-top: 3rem;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}