html, body {
    font-family: 'Baloo Bhaina 2', cursive;
    background-color: white;
}

#myBtn {
    opacity: 70%;
    display: none; /* Hidden by default */
    position: fixed; /* Fixed/sticky position */
    bottom: 10px; /* Place the button at the bottom of the page */
    right: 10px; /* Place the button 30px from the right */
    z-index: 99; /* Make sure it does not overlap */
    border: none; /* Remove borders */
    outline: none; /* Remove outline */
    background-color: rgb(0, 182, 182); /* Set a background color */
    color: white; /* Text color */
    cursor: pointer; /* Add a mouse pointer on hover */
    padding: 10px; /* Some padding */
    border-radius: 100px; /* Rounded corners */
    font-size: 15px; /* Increase font size */
  }
  
  #myBtn:hover {
    background-color: #555; /* Add a dark-grey background on hover */
  }

.blog-header-text {
    font-size: 4rem;
}

.dropdown-menu {
    visibility: hidden;
    background-color: rgb(0, 182, 182);
    color: white;
}

.dropdown-item {
    color: white;
}

.dropdown:hover .dropdown-menu {
    display: block;
    visibility: visible;
}

.no-border {
    border: 0px;
    box-shadow: 5px 5px 15px 5px #d3d3d3;
}

.card-zoom {
    overflow: hidden;
}

.card-img-top-zoom {
    transition: transform 1s, filter .5s ease-out;
}

.card-img-top-zoom:hover  {
  transform: scale(1.2);
  filter: brightness(120%);
}


.footer {
    background-color: rgb(58, 58, 58);
    padding-top: 2rem;
    padding-bottom: 2rem;
    margin-top: 2rem;
    margin-bottom: 0rem;
    padding-left: 2rem;
    padding-right: 2rem;
    text-decoration-color: white;
}

.link-section-title {
    color: white;
    transition: font-size .2s;
}

.link-section-title:hover {
    text-decoration: none;
    color: white;
    font-size: 120%;
}

.footer-links {
    color: white;
}

.footer-links:hover {
    color:  rgb(0, 182, 182);
    text-decoration: none;
}

.homepage_section_title {
    background-color: rgb(0, 182, 182);
    padding-top: 1rem;
    padding-bottom: 1rem;
    margin-top: 2rem;
    margin-bottom: 2rem;
    text-decoration-color: white;
}

.prof_img {
    transition: transform .2s;
}

.prof_img:hover {
    transform: scale(1.05);
}

.flip-card-container {
    padding: 0px;
}

/* The flip card container - set the width and height to whatever you want. 
We have added the border property to demonstrate that the flip itself goes 
out of the box on hover (remove perspective if you don't want the 3D effect */
.flip-card {
    background-color: transparent;
    height: 300px;
    border: 0px solid #f1f1f1;
    padding-top: 5px;
    padding-bottom: 2px;
    padding-left: 0px;
    padding-right: 0px;
    margin: 10px 10px 10px 10px;
    perspective: 1000px; /* Remove this if you don't want the 3D effect */
  }
  
  /* This container is needed to position the front and back side */
  .flip-card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    text-align: center;
    transition: transform 0.8s;
    transform-style: preserve-3d;
  }
  
  
  /* Position the front and back side */
  .flip-card-front, .flip-card-back {
    border-radius: 20px;
    position: absolute;
    width: 100%;
    height: 100%;
    -webkit-backface-visibility: hidden; /* Safari */
    backface-visibility: hidden;
  }
  
  /* Style the front side (fallback if image is missing) */
  .flip-card-front {
    color: black;
  }
  
  .img-flip-card {
    border-radius: 20px;
  }

  /* Style the back side */
  .flip-card-back {
    width: 100%;
    background-image: url("dnabackgorund.jpg");
    justify-content: center;
    background-color: dodgerblue;
    color: white;
    transform: rotateY(180deg);
  }

.navbar {
    padding-left: 2rem;
    padding-right: 2rem;
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
    font-size: medium;
    background-color: rgb(0, 182, 182);
}


.navbar-brand {
    font-size: x-large;
}


.under-link-home {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.home_url {
    padding-bottom: 0px;
}

.home_url:hover + .under-link-home {
    width: 70%;
    opacity: 1;
}


.under-link-servizi {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.servizi_url {
    padding-bottom: 0px;
}

.servizi_url:hover + .under-link-servizi {
    width: 80%;
    opacity: 1;
}

.under-link-my_blog {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}


.my_blog_url {
    padding-bottom: 0px;
}

.my_blog_url:hover + .under-link-my_blog {
    width: 70%;
    opacity: 1;
}


.under-link-about_url {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.about_url {
    padding-bottom: 0px;
}

.about_url:hover + .under-link-about_url {
    width: 70%;
    opacity: 1;
}


.under-link-contact_url {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.contact_url {
    padding-bottom: 0px;
}

.contact_url:hover + .under-link-contact_url {
    width: 70%;
    opacity: 1;
}


.under-link-create_post_url {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.create_post_url {
    padding-bottom: 0px;
}

.create_post_url:hover + .under-link-create_post_url {
    width: 70%;
    opacity: 1;
}


.under-link-logout_url {
    background-color: white;
    width: 0px;
    height: 2px;
    margin-left: 30px;
    opacity: 0;
    transition: width 0.5s, opacity 0.5s;
}

.logout_url {
    padding-bottom: 0px;
}

.logout_url:hover + .under-link-logout_url {
    width: 70%;
    opacity: 1;
}


.container-fluid.content-container-home {
    margin: 0px;
    margin-top: 0px;
    margin: 0px;
    margin-bottom: 0px;
    padding: 0px 0px 0px 0px;
    animation: fadein 1s;
}


/* FADE IN EFFECT */
@keyframes fadein {
    from { opacity: 0; top: 100px}
    to   { opacity: 1; top:0px}
}

/* ANIMATIONS */

@keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

@-webkit-keyframes fadeInUp {
    from {
        transform: translate3d(0,40px,0)
    }

    to {
        transform: translate3d(0,0,0);
        opacity: 1
    }
}

.animated {
    animation-duration: 1.5s;
    animation-fill-mode: both;
    -webkit-animation-duration: 1.5s;
    -webkit-animation-fill-mode: both
}

.animated-servizi {
    animation-duration: .5s;
    animation-fill-mode: both;
    -webkit-animation-duration: .5s;
    -webkit-animation-fill-mode: both
}

.animatedFadeInUp {
    opacity: 0
}

.fadeInUp {
    opacity: 0;
    animation-name: fadeInUp;
    -webkit-animation-name: fadeInUp;
}

.hidden { 
    opacity: 0; 
  }
  
  .visible { 
    opacity: 1; 
  }

/* END ANIMATIONS */

.pagination-block {
    margin-bottom: 30px;
}

.about-snippet-block {
    background-color: white;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}

.about-page-block {
    background-color: white;
    border: 0px;
    border-radius: 0px;
    box-shadow: 5px 5px 15px 5px #d3d3d3;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
}


.carousel-text-overlay {
    color: blanchedalmond;
    position: absolute;
    top: 25%; 
    left: 50%; 
    transform: translate(-50%, -50%);
}

.post-image-block {
    background-color: white;
    border: 1px solid rgb(192, 192, 192);
    border-top-left-radius: 5px;
    border-top-right-radius: 5px;
}

.post-page-block {
    background-color: white;
    border: 1px solid rgb(192, 192, 192);
    border-radius: 5px;
    padding: 20px;
}

.single-post-home {
    background-color: white;
    border: 0px;
    box-shadow: 5px 5px 15px 5px #d3d3d3;
    border-radius: 5px;
    padding: 20px;
    margin-bottom: 30px;
}

.no-border-top {
    border-top: 0;
    border-top-left-radius: 0;
    border-top-right-radius: 0;
}

.post-image {
    display: block;
    margin-left: auto;
    margin-right: auto;
    padding: 3px; 
}

.p-small-one {
    font-size: 0.875rem;
}

.p-small-two {
    font-size: 0.800rem;
}

.custom-link {
    color: black;
}

.custom-link:hover {
    color: dodgerblue;
    text-decoration: none;
}

.read-more {
    color: rgb(180, 180, 180);
    text-decoration: underline;
}

.read-more:hover {
    color: rgb(105, 105, 105) !important;
    text-decoration: underline;
}


/* class for typing texts */
.typewriter {
    font-size: 1.5rem;
    overflow: hidden;
    white-space: nowrap;
    margin: 0 auto;
    letter-spacing: .15em;
    animation: 
        typing 3.5s steps(40, end), 
        blink_caret 0.75s step-end infinite;
}


/* typing effect */
@keyframes typing {
    from { width: 0 }
    to { width: 100% }
}


/* The typewriter cursor effect */
@keyframes blink_caret {
    from { border-color: blue }
    to { border-color: orange; }
}


@media (min-width: 900px) {
    .post_detail_container {
        padding-left: 12rem; 
        padding-right: 12rem;
    }
}

@media (min-width: 768px) {

    /* Do an horizontal flip when you move the mouse over the flip box container */
    .flip-card:hover .flip-card-inner {
    transform: rotateY(180deg);
    }

    .single-post-home {
        margin-left: 0px;
    }

    .about-page-block {
        margin-left: 0px;
    }

    .post-page-block {
        margin-left: 0px;
    }

    .post-image-block {
        margin-left: 0px;
    }

    .pagination-block {
        margin-left: 0px;
    }
}

@media (min-width: 768px) {

    .nav-link {
        padding-right: 0px !important;
        padding-left: 2rem !important;
    }

    .hr-footer {
        border-color: transparent;
        border: transparent;
    } 
}

@media (max-width: 767px) {
    .about-snippet-block {
        margin-top: 30px;
    }

    .navbar {
        padding: 8px 20px 8px 20px;
    }

    .flip-card-back {
        width: 40%;
    }
}

@media (max-width: 510px) {
    .flip-card-back {
        width: 80%;
    }
}

@media (max-width: 610px) {
    .flip-card-back {
        width: 80%;
    }

    .img_scritta_logo {
        display: none;
    }
}

@media (max-width: 970px) {
    .carousel-text-overlay {
        display: none;
    }

    .blog-header-text {
        font-size: 1.5rem;
    }
}

@media (min-width: 610px) {
    .sm-home {
        display: none;
    }
}