@font-face {
    font-family: tuercasytornillos;
    src: url(../font/tt0144m_.ttf) format("opentype");
}

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

body {font-family: tuercasytornillos;}

header {
    width: 100%;
    height: 50px;
    background: #070050;
    color: white;
    display:flex;
    align-items: center;
	position:fixed;
    z-index: 100;
}

header img {
    height: 50px;
    margin: auto;
}

.submenu li a {
    border-left: 0px solid #b9b8b8;
    border-bottom: 1px solid white;
}

#btn-menu {
    display: none;
}

header label {
    margin: 3px;
    font-size: 35px;
    cursor: pointer;
    display: none;
}

.menu ul {
    background: rgba(119, 119, 119, 0);
    display:flex;
    list-style: none;
}

.menu ul ul {
    display: none;
    background: #b9b8b8;
}

.menu a {
    display: block;
    color: #ffffff;
    padding: 5PX 0 5PX 0;
    text-decoration: none;
    width: 160px;
    text-align: center;
    border-left: 2px solid white;
    font-family: tuercasytornillos;
}

.menu a:hover {
    background: #ffffff;
    color: #070050;
}

.menu a span {
    margin-left: 10px;
}

.menu ul li:hover ul {
    display: block;
    position: absolute;
}
.color {
    width: 250px;
}
.color a{
    width: auto;
    color: black;
}

@media (max-width:1024px) {
    header label {
        display: block;
    }
    
    header h1 {
        font-size: 30px;
    }
    .menu {
        position: absolute;
        top: 48px;
        left: 0;
        width: 100%;
        transform:translatey(-160%);
        transition: all 0.0s;
    }
    .menu ul {
        display: block;
        background: rgba(255, 0, 0, 0.81);
    }
    .menu ul li:hover ul {
        display: none;
        position:static;
    }
    .menu a {
        text-align: center;
        width: auto;
        padding: 2px;
        border: 0px solid ;
    }
    
    .menu span {
        position: absolute;
        right: 5px;
    }
    #btn-menu:checked ~ .menu {
        transform: translatey(00%);
    }
    
    .menu ul ul {
        background: #b9b8b8;
        padding-left: 0px;
    }
    
    .submenu li a {
        border-left: 0px solid #b9b8b8;
        border-bottom: 1px solid white;
        margin-left: 15px;
        margin-right: 15px;
    }
    
    .color {
        width: 100%;
    }
}
