@charset "utf-8";

/*

Knowledge Share  Main Content Stylesheet
Author: Debish Sigdel
Filename: knowledge.css

*/

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

main {
  min-height: 80vh;
  padding-bottom: 10vh;
  background-image: url(../images/about_back.png);
  background-repeat: no-repeat;
  background-size: cover;
}

.grid_container {
    display: grid;
    width: 100%;
    grid-template-rows: 70vh 30vh;
    align-items: center;
    h2{
        text-align: center;
        margin-top: 1%;
        margin-bottom: 1%;
        font-family: 'Gill Sans';
        letter-spacing: .17em;
        color: #83151c;
    }
}

.article_slider {
    width: 100%;
    align-items: center;
    height: 100%;
    position: relative;
  }

.slides {
    position: relative;
    width: 95%;
    height: 100%;
    
}

#article_slide1 {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out; 
    background-color: #f0f0f0; 
    padding: 5%; 
    margin-left: 3%;
    margin-right: 3%;
    overflow: scroll;
    background: radial-gradient(
      #0f91a8d1,
      #eeefedac
    );
    border-radius: 10%;

}

#article_slide2 {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out; 
    background-color: #f0f0f0; 
    padding: 5%; 
    margin-left: 3%;
    margin-right: 3%;
    overflow: scroll;
    background: linear-gradient(
      #94f463c9,
      #eeefedc4
    );
    border-radius: 10%;

}

#article_slide3 {
    position: absolute;
    width: 100%;
    height: 100%;
    transition: opacity 1s ease-in-out; 
    background-color: #f0f0f0;
    padding: 5%; 
    margin-left: 3%;
    margin-right: 3%;
    overflow: scroll;
    background: linear-gradient(
      #df7deaae,
      #eeefedc4
    );
    border-radius: 10%;

}

#article_slide1 h2, #article_slide1 h1, #article_slide1 h3, #article_slide1 h4 {
        text-align: center;
        padding: 1%;
        margin-bottom: 1%;
        font-family: Georgia;
        letter-spacing: normal;
        color: #000;
}
#article_slide2 h2, #article_slide2 h1, #article_slide1 h3, #article_slide2 h4 {
    text-align: center;
    padding: 1%;
    margin-bottom: 1%;
    font-family: Georgia;
    letter-spacing: normal;
    color: #000;
}

#article_slide3 h2, #article_slide3 h1, #article_slide3 h3, #article_slide3 h4 {
    text-align: center;
    padding: 1%;
    margin-bottom: 1%;
    font-family: Georgia;
    letter-spacing: normal;
    color: #000;
}


.styled_article_code {
    white-space: pre-wrap;
    font-family: 'Courier New', Courier, monospace;
    position: relative;
    background-position: left top, left 1em;
    padding: 1em; 
    border-left: 0.5vw solid #83151c;
    background-color: #fff3e0; 
    max-width: 80%; 
    border: 1% solid #d3d3d3; 
    margin: auto; 
    margin-top: 1%;

}

.product_doc_links {
    display: inline-flex;
    justify-content: space-between;
    position:absolute;
    width: 100%;
    max-height: 50vh;
    padding-top: 2%;
    padding-bottom: 2vh;
    overflow: scroll;
    background-color: #e0eadda9;
    img {
        transition: transform .1s ease-in;
        cursor: pointer;
        width: 3.5vw;
        margin-right: 3%;
        vertical-align: middle;
        justify-content: space-between;
    }
}


.product_doc_links img:hover{
    transform: scale(1.3);
}

.icon_container {
    position: relative;
    display: inline-block;
    z-index: 1;
}

.icon_tooltip {
    visibility: hidden;
    width: 120px;
    background-color: rgba(202, 182, 182, 0.37);
    color: rgb(3, 3, 3);
    text-align: center;
    border-radius: 6px;
    padding: 5px 0;
    position: absolute;
    z-index: 2; 
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    opacity: 0;
    transition: opacity 0.2s ease-in-out;
}
  
.icon_container:hover .icon_tooltip {
    visibility: visible;
    opacity: 1;
}
  
.icon_size {
    height: 50%;
    width: 60%;
    object-fit: contain;

}


.prev, .next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    width: auto;
    margin-top: -50px;
    padding: 16px;
    color: rgb(60, 53, 53);
    font-weight: bold;
    font-size: 18px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
}

.next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.prev {
    left: 0;
    border-radius: 3px 0 0 3px;
}


.prev:hover, .next:hover { 
    background-color: rgba(69, 63, 63, 0.532);
}

@media (max-width: 1024px) {

    .grid_container {
        overflow: scroll;
        grid-template-rows: 80vh 20vh;
        h2 {
            font-size: smaller;
        }
    }
    .article_slider, .slides, #article_slide1, #article_slide2, #article_slide3 {
        width: 90%; 
        top: 1;
        padding-left: 7vw;
        h1, h2, h3, h4 {
            font-size: smaller;
        }
    }
    .styled_article_code {
        max-width: 100%; 
    }
    .product_doc_links {
        bottom: 1;
        img {
            width: 10vw;
        }
    }
    .prev, .next {
        font-size: 60%; 
        width: 20vw;
        height: 0.5vh;
        padding-top: 0;
    }
    .next {
        left: 80vw;
    }
}
  
