﻿.sidebar {
    position: fixed;
    top: 0;
    width: 500px;
    right: -500px;
    height: 100%;
    background-color: #fff;
    transition: all .5s ease;
    box-shadow: 0px 0px 8px 0px black;
    z-index: 999;
}

    .sidebar header {
        font-size: 28px;
        color: #353535;
        line-height: 70px;
        text-align: center;
        background-color: #fff;
        user-select: none;
    }

    .sidebar a {
        display: block;
        height: 65px;
        width: 100%;
        color: #353535;
        line-height: 65px;
        padding-left: 30px;
        box-sizing: border-box;
        border-left: 5px solid transparent;
        transition: all .5s ease;
    }
 
.sidebar a i {
    font-size: 23px;
    margin-right: 16px;
}

.sidebar a span {
    letter-spacing: 1px;
    text-transform: uppercase;
}

#check {
    display: none;
}

label #btn, label #cancel, label span {
    position: fixed;
    right: 0px;
    top: 50%;
    cursor: pointer;
    color: #FFFFFF;
    border-radius: 5px;
    margin: 15px 0px;
    font-size: 29px;
    background-color: #7c1a1e;
    box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), inset -7px -7px 10px 0px rgba(0,0,0,.1), 3.5px 3.5px 20px 0px rgba(0,0,0,.1), 2px 2px 5px 0px rgba(0,0,0,.1);
    height: 45px;
    width: 45px;
    text-align: center;
    line-height: 45px;
    transition: all .5s ease;
    z-index: 999;
}

label #cancel {
    opacity: 0;
    visibility: hidden;
}

#check:checked ~ .sidebar {
    right: 0;
}

#check:checked ~ label #btn {
    margin-right: 500px;
    opacity: 0;
    visibility: hidden;
}

#check:checked ~ label #cancel {
    margin-right: 500px;
    opacity: 1;
    visibility: visible;
}

.sidebar > a.active, .sidebar > a:hover:nth-child(even) {
    --accent-color: #52d6f4;
    --gradient-color: #c1b1f7;
}

.sidebar a.active, .sidebar > a:hover:nth-child(odd) {
    --accent-color: #c1b1f7;
    --gradient-color: #A890FE;
}

.frame {
    width: 50%;
    height: 30%;
    margin: auto;
    text-align: center;
}

@media(max-width : 800px) {
    .sidebar {
        position: fixed;
        top: 0;
        width: 300px;
        right: -300px;
        height: 100%;
        background-color: #fff;
        transition: all .5s ease;
        box-shadow: 0px 0px 8px 0px black;
        z-index: 999;
    }

        .sidebar header {
            font-size: 28px;
            color: #353535;
            line-height: 70px;
            text-align: center;
            background-color: #fff;
            user-select: none;
        }

        .sidebar a {
            display: block;
            height: 65px;
            width: 100%;
            color: #353535;
            line-height: 65px;
            padding-left: 30px;
            box-sizing: border-box;
            border-left: 5px solid transparent;
            transition: all .5s ease;
        }

    a.active, a:hover {
        border-left: 5px solid var(--accent-color);
        color: #fff;
        background: linear-gradient(to left, var(--accent-color), var(--gradient-color));
    }

    .sidebar a i {
        font-size: 23px;
        margin-right: 16px;
    }

    .sidebar a span {
        letter-spacing: 1px;
        text-transform: uppercase;
    }

    #check {
        display: none;
    }

    label #btn, label #cancel, label span {
        position: fixed;
        right: 0px;
        top: 50%;
        cursor: pointer;
        color: #FFFFFF;
        border-radius: 5px;
        margin: 15px 0px;
        font-size: 29px;
        background-color: #7c1a1e;
        box-shadow: inset 2px 2px 2px 0px rgba(255,255,255,.5), inset -7px -7px 10px 0px rgba(0,0,0,.1), 3.5px 3.5px 20px 0px rgba(0,0,0,.1), 2px 2px 5px 0px rgba(0,0,0,.1);
        height: 45px;
        width: 45px;
        text-align: center;
        line-height: 45px;
        transition: all .5s ease;
        z-index: 999;
    }

    label #cancel {
        opacity: 0;
        visibility: hidden;
    }

    #check:checked ~ .sidebar {
        right: 0;
    }

    #check:checked ~ label #btn {
        margin-right: 300px;
        opacity: 0;
        visibility: hidden;
    }

    #check:checked ~ label #cancel {
        margin-right: 300px;
        opacity: 1;
        visibility: visible;
    }
}

.divShow {
    visibility: visible;
    opacity: 1;
    height: auto;
    width: auto;
    transition: all 1s;
}

.divHidden {
    opacity: 0;
    height: 0;
    width: 0;
    visibility: hidden;
}

.horAlign {
    margin-left: auto;
    margin-right: auto;
    display: block;
}

.p-detail-Icon {
    width: 30px;
    margin-right: 10px;
}