*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
:root{
    --posBottom: 0px;
}
html{
    scroll-behavior: smooth;
} 
body{
    background-color: antiquewhite;
    position: relative;
    font-family: 'Poppins', sans-serif;
}
.document{
    max-width:1028px;
    padding: 60px;
    padding-top: 40px;
    padding-bottom: 10px;
    background-color: white;
    position: relative;
    margin: 0px auto;
}
.header{
    max-width: 1028px;
    background-color: white;
    padding:60px;
    padding-bottom: 0px;
    margin:20px auto 0px;
}
.document__title{
    text-align: center;
    text-transform: uppercase;
    margin-bottom: 20px;
    font-size: 1.5rem;
}
.document__description{
    font-size: 1.1rem;
    font-style: italic;
    text-align: center;
    padding-bottom: 20px;
    border-bottom: 1px solid black;
}
.item{
    margin-bottom: 45px;
}
.item__title{
    font-size: 1.1rem;
    text-transform: uppercase;
    display: inline-block;
    margin: 10px -10px 0px;
    padding: 0px 10px;
    transition: background-color .5s ease;
}
.item__title--selected{
    background-color: gold;
}
.item__description{
    font-size: 1.1rem;
    margin: 10px -10px 5px;
    padding:5px 10px;
    line-height: 1.5rem;
    transition: background-color .5s ease;
}
.item__description--selected{
    background-color: lightgray;
}
.item__content{
    width:100%;
    min-height: 290px;
    background-image: url(../img/placeholder.jpg);
    background-position: center;
    background-repeat: no-repeat;
}
.button{
    position: fixed;
    width:40px;
    height: 40px;
    background-color: #272822;
    padding: 13px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: center;
    align-items: center;
}
.button--next{
    bottom:55px;
    left:10px;
    background-image: url(../img/caret-down-solid.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
}
.button--prev{
    bottom:10px;
    left: 10px;
    background-image: url(../img/caret-up-solid.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
}
.button--top{
    bottom:10px;
    right:10px;
    transform: translatex(60px);
    transition: transform 0.6s;
    background-image: url(../img/chevron-up-solid.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 20px;
}

.button--top--show {
    transform: translatex(0)!important;
}

.toggle{
    transform: translate(0);
    opacity: 1;
}
.button--index{
    position: fixed;
    bottom:10px;
    right:unset;
    left:10px;
    background-image: url(../img/chevron-right-solid.svg);
    background-position: center;
    background-repeat: no-repeat;
    background-size: 15px;
}
.button--index--hide{
    background-image: url(../img/chevron-left-solid.svg);
}
.index{
    min-height: 50px;
    background-color: rgba(0, 0, 0, 0.842);
    position: sticky;
    bottom:0;
    z-index: 999;
    max-width: 1028px;
    margin:0 auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    user-select: none;
}

.index__item{
    cursor: pointer;
    width: 25px;
    height: 25px;
    display: flex;
    border: 1px solid black;
    border-radius: 30%;
    justify-content: center;
    align-items: center;
    background-color: #272822;
    color: white;
    font-weight: bold;
    margin:5px 3px;
}
.index__item--selected{
    color: black;
    background-color: #ffd700;
}
.name{
    font-size: .8rem;
    font-weight: bold;
    text-align: center;
}

@media screen and (max-width:1148px){
    .button--next{
        bottom: calc(var(--posBottom) + 55px);
    }
    .button--prev{
        bottom: calc(var(--posBottom) + 10px);
    }
    .button--top{
        bottom: calc(var(--posBottom) + 10px);
    }
}

@media screen and (max-width:768px) {
    .document, .header{
        width: 100%;
        margin: 0px;
        padding: 20px;
    }
    .button--next{
        bottom: calc(var(--posBottom) + 50px);
        left: 5px;
    }
    .button--prev{
        bottom: calc(var(--posBottom) + 5px);
        left: 5px;
    }
    .button--top{
        bottom: calc(var(--posBottom) + 5px);
        right: 5px;
    }
}