﻿:root {
    --primColor: #dcdcdc;
    --secoColor: #555555;
    --cornerRad: 4px;
}

body {
    /*background-color: var(--primColor);*/
    font-family: Arial, Helvetica, sans-serif;
    font-size: 16px;
}

details {
    margin: 40px;
}

/*ESTE ES EL BOTON*/
summary {
    writing-mode: vertical-lr;
    text-align: center;
    padding: 8px 6px; /*EL TAMAÑO DEL BOTON*/
    width: 25px;
    height: 20px;
    background-color:white /*var(--primColor)*/;
    border: 2px solid var(--secoColor);
    border-radius: var(--cornerRad);
    color:black /*var(--secoColor)*/;
    cursor: pointer;
    user-select: none;
    outline: none;
    transition: transform 200ms ease-in-out 0s;
    
}

    summary::before,
    summary::after {
        position: static;
        top: 0;
        left: -2px;
    }

    summary::before {
        content: "";
    }

    summary::after {
       
        content: "III";
        letter-spacing: 1px;
    }

    summary:hover {
        transform: scale(1.1);
    }

    summary::marker {
        font-size: 0;  
       
    }

    summary::-webkit-details-marker {
        display: none; 
     
    }

details[open] .menu {
    animation-name: menuAnim;
   
}

details[open] summary::before {
    content: "X";
   
}

details[open] summary::after {
    content: "";
}
/*ESTE ES EL MENU*/
.menu {
    height: 0;
    width: fit-content;
    border-radius: var(--cornerRad);
    background-color: white /*var(--primColor)*/;
    box-shadow: 0 4px 12px 0 rgba(0, 0, 0, 0.2);
    font-family: 'Franklin Gothic Medium', 'Arial Narrow';
    
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    animation: closeMenu 300ms ease-in-out forwards;
}

    .menu a {
        padding: 12px 45px;
        margin: 0 16px;
        color: white /*var(--secoColor)*/;
        border-bottom: 2px solid rgba(0, 0, 0, 0.1);
        text-decoration: none;
        text-align: center;
        transition: filter 200ms linear 0s;  
        
    }

        .menu a:nth-of-type(1) {
            padding-top: 24px;
        }

        .menu a:nth-last-of-type(1) {
            border-bottom: none;
        }

        .menu a:hover {
            filter: brightness(200%);
        }

details::before {
   
    /*content: "← Menu";*/
    color: #242222;
    position:absolute;
    margin-left: 50px;
    padding: 10px 10px;
    opacity: 0.6;
    font-size:17px;
    
}

details[open]::before {
    animation: fadeMe 300ms linear forwards;
}

@keyframes menuAnim {
    0% {
        height: 0;
    }

    /*LA CANTIDAD QUE PUEDA BAJAR EL MENU*/
    100% {
        height: 100%;
    }
}

@keyframes fadeMe {
    0% {
        opacity: 0.4;
    }

    100% {
        opacity: 0;
    }
}
