@import url('https://fonts.googleapis.com/css2?family=Chivo:ital,wght@0,100..900;1,100..900&family=Josefin+Sans:ital,wght@0,100..700;1,100..700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Chivo';
    background-color: #1aa6bb;
}

div.section_navigation {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

div.container {
    max-width: 550px;
    width: 100%;
    height: 330px;
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

div.section_tabs {
    padding: 30px;
}

div.section_tabs h2 {
    margin-bottom: 1rem;
}

div.section_tabs nav {
    display: flex;
    justify-content: space-around;
    width: 80%;
    position: relative;
}

div.section_tabs>nav label {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 37px;
    border-radius: 5px;
    transition: all .3s ease;
    color: #1aa3bb;
    cursor: pointer;
    z-index: 2;
}

div.section_tabs>nav label:hover {
    background-color: #189baf71;
}


/* -----------Color--------- */
.section_tabs input#home:checked ~ nav label.home {
    color: #fff;
}
.section_tabs input#blog:checked ~ nav label.blog {
    color: #fff;
}
.section_tabs input#code:checked ~ nav label.code {
    color: #fff;
}
.section_tabs input#help:checked ~ nav label.help {
    color: #fff;
}
.section_tabs input#about:checked ~ nav label.about {
    color: #fff;
}

div.active_slider {
    width: 70px;
    height: 37px;
    position: absolute;
    background-color: #1aa3bb;
    left: 4px;
    border-radius: 5px;
    z-index: 1;
    transition: all .3s ease;
}

/* -------------position----------- */
.section_tabs input#blog:checked ~ nav .active_slider {
    left: 83px;
}
.section_tabs input#code:checked ~ nav .active_slider {
    left: 160px;
}
.section_tabs input#help:checked ~ nav .active_slider {
    left: 240px;
}
.section_tabs input#about:checked ~ nav .active_slider {
    left: 318px;
}


/* -----------Content----------- */

div.content_tabs{
    padding: 2rem .5rem;
}

div.content_tabs h4{
    margin-bottom: 1rem;
}

div.content_tabs p{
    text-align:justify;
}

.content{
    display: none;
}

div.section_tabs input#home:checked ~ .content_tabs .home_content{
    display: block;
} 

div.section_tabs input#blog:checked ~ .content_tabs .blog_content{
    display: block;
} 
div.section_tabs input#code:checked ~ .content_tabs .code_content{
    display: block;
} 
div.section_tabs input#help:checked ~ .content_tabs .help_content{
    display: block;
} 
div.section_tabs input#about:checked ~ .content_tabs .about_content{
    display: block;
} 
