body{
    background-color: #333;
    padding: 0;
    margin: 0;
    height: 100vh;
}

a{
    text-decoration: none;
    color: black;
}
.menu{
    width: 20rem;
    margin: 10px;
    background-color: #ccc;
    padding: 0.5rem;
    border-radius: 0.25rem;
}
.menu form{
    display: flex;
    flex-direction: column;
}
.container{
    display: grid;
    grid-template-columns: auto auto auto auto;
    justify-content: center;
}
.btn{
    margin: 0.2rem;
    cursor: pointer;
    background: #ccc;
    border: 1px black solid;
    border-radius: 0.25rem;
    transition: .3s ease;
}
.btn:hover{
    background-color:white;
}
table{
    background-color: #ccc;
    border: black 1px solid;
    border-radius: 0.25rem;
    width: 50vw;
    border-collapse: collapse;
}
table,th{
    border: black 1px solid;
}
table,tr{
    border: black 1px solid;
}

.list{
    max-width: 19rem;
    margin: 10px;
    
}
.header{
    background-color: #ccc;
    max-height: 15vh;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 5px;
}
.header .logo{
    padding: 0;
    margin: 0;
    margin-right: auto;
    margin-left: 5px;
}
.logo h1,p{
    margin: 0;
    padding: 0;
}
.logo p{
    font-size: 12px;
}
.list a{
    cursor: pointer;
    margin: 0.2rem;
    padding: 2px 5px;
    width: fit-content;
    height: fit-content;
    background: rgb(177, 174, 174);
    border: 1px black solid;
    border-radius: 0.25rem;
    transition: .3s ease;
}
.list form{
    display: flex;
    flex-direction: row;
}
.list a:hover{
    background-color: white;
}
.list input:first-child{
    width: 1rem;
}
.list input:last-child{
    width: 5rem;
}

.list td:last-child{
    display: flex;
    align-items: center;
    justify-content: center;
}
.resultado{
    max-width: 15rem;
    min-width: fit-content;
    margin: 10px;
    grid-column: 2/2;
    grid-row: 1/1;
}
.resultado td:first-child{
    display: flex;
    justify-content: center;
    align-items: center;
}

.resultado:last-child{
    grid-row: 2/2;
}
.icon{
    padding-right: 10px;
}
.header .btn{
    margin: 0 5px;
}
.links-header{
    display: flex;
    margin-left: auto;
}
.links{
    min-width: 25rem;
    max-width: 25rem;
    width: fit-content;
    height: fit-content;
    margin:  15px auto;
    padding: 5px 10px;
    border-radius: 0.25rem;
    background-color: #ccc;
    color: black;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.links H1{
    border-bottom: black 3px dotted;
}

.btn{
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: 25rem;
    background-color:  rgb(158, 158, 158);
    display: flex;
    border: black 1px solid;
    border-radius: 0.25rem;
    padding: 5PX;
    margin: 5px 0;
    align-items: center;
    transition: .1s ease;
}
.btn:hover{
    background-color: white;
}
.submenu{
    font-family: 'Courier New', Courier, monospace;
    text-align: left;
    background-color:  rgb(158, 158, 158);
    display: flex;
    flex-direction: column;
    border: black 1px solid;
    border-radius: 0.25rem;
    padding: 5PX;
    margin: 5px 0;
    transition: .3s ease;
    cursor: pointer;
}
.sub-btn{
    margin-top: 5px;
    display: flex;
    margin: 0 auto;
    align-items: center;
    justify-content: center;
}
.submenu:hover{
    background-color: rgb(85, 84, 84);
}
.submenu div{
    display: flex;
    align-items: center;
}
.submenu a{
    display: none;
    margin: 0 5px;
    opacity: 0;
}
.submenu:focus-within{
    background-color: #ccc;
}
.submenu:focus-within a{
    display: flex;
    opacity: 1;
}
.logo{
    margin: 15px;
}
.logo h1{
    padding: 0;
    margin: 0;
}
.logo p{
    font-size: 12px;
    padding: 0;
    margin: 0;
}
.tooltip{
    opacity: 0;
    visibility: hidden;
    padding: 5px;
    position: absolute;
    left: 80%;
    margin-left: 15px;
    background-color: cyan;
    border-radius: 0.25rem;
    transition: .3s ease;
}
.tooltip::after{
    content: " ";
    position: absolute;
    top: 50%;
    right: 100%;
    margin-top: -5px;
    border-width: 5px;
    border-style: solid;
    border-color: transparent cyan transparent transparent;
}
.container:hover .tooltip{
    visibility: visible;
    left: 53%;
    opacity: 1;
}
.ajuda{
    position: absolute;
    display: none;
    height: fit-content;
    background-color: #ccc;
    border: black 1px solid;
    margin: 10px;
}
.detalhes:hover > .ajuda{
    display: block;
    left: 0;
}
.ajuda p {
    margin: 0px;
    padding: 5px;
    border: black 1px solid;
}
.desc{
    height: fit-content;
    background-color: #ccc;
    border: black 1px solid;
    margin: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    width: fit-content;
    margin-inline: auto;
    padding: 00.25rem;
}
.form-item{
    display: flex;
    flex-direction: column;
    margin-inline: 0.25rem;
}

.alert{
    position: absolute;
    background-color: #fff;
    border: black 1px solid;
    display: none;
    padding-inline: 2.5rem;
    align-items: center;
    justify-content: center;
    justify-self: center;
    left: 40%;
    top: 15vh;
}

@media (max-width: 600px){
    .header .btn{
        height: 1rem;
        width: 1rem;
    }
    .header .btn span{
        display: none;
    }
    .header .icon{
        padding: 0;
    }
    .links{
        max-width: 100%;
        border-radius: 0;
        width: 100%;
        margin: 0;
        padding: 0;
        justify-content: center;
        align-items: center;
    }
    .container{
        margin: 0;
        padding: 0;
        width: 100%;
        max-width: 100%;
    }
    .submenu{
        max-width: 80vw;
    }
    .sub-btn{
        flex-direction: column;
    }
    .sub-btn a{
        margin: 5px 0;
        max-width: 50vw;
    }
    .btn{
        width: 85vw;
    }
    
    
}
footer{
    height: 5vh;
    background-color: #ccc;
    display: flex;
    justify-items: center;
    align-items: center;
}