*{
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    color: white;
}

h1{
    text-align: center;
    margin: 25px;
}

.container{
    height: 100vh;
    width: 100vw;
    display: flex;
    padding: 50px 0;
    justify-content: center;
}

.main{
    width: 50vw;
    height: fit-content;
    padding: 15px;
    border-radius: 10px;
    background-color: rgba(62, 62, 62, 0.411);
    backdrop-filter: blur(15px);
}

#form{
    display: flex;
    flex-direction: column;
    margin: 25px;
}

#form > *{
    margin: 10px;
    padding: 15px;
    background-color: transparent;
    border: 2px solid white;
    border-radius: 7px;
}

select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    border: 1px solid black;
    padding: 10px;
    background-color: lightblue;
}
  

select option{
    padding: 8px;
    border-radius: 0;
    color: black;
    background-color: transparent;
}

#output {
    width: 100%;
    height: 10vh;
    background-color: #f2eee824;
    margin: auto;
    display: flex;
    padding: 19px 0;
    align-items: center;
    justify-content: center;
    word-wrap: break-word;
    font-size: 1.4rem;
    color: white;
    border-radius: 14px 14px 0 0;
}



#explaination{
    width: 100%;
    height: fit-content;
    background-color: #f2eee824;
    margin: auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    overflow: scroll;
    border-radius: 0 0 14px 14px;
}

#buttons > button:hover{
    cursor: pointer;
    background-color: white;
    color: black;
}

.explainationTable{
    border: 1px solid white;
    border-collapse: collapse;
    width: 70%;
    margin: 50px 0;
}

.explainationTable tr td{
    border: 1px solid white;
    font-size: 1.3rem;
    padding: 10px;
    text-align: center;
    width: 50px;
}

.explainationTable tr td span{
    text-align: center;
}
#explaination p{
    margin: 8px;
    font-size: 1.4rem;
    padding: 10px;
    text-wrap: wrap;
    overflow: scroll;
}
#explaination p span{
    margin: 5px;
    text-align: center;
}

::-webkit-scrollbar{
    display: none;
}

.github-details{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 35px;
}

.github-details img{
    height: 30px;
    width: 30px;
}

.github-details span{
    color: white;
    font-size: 1.2rem;
    margin-left: 15px;
    font-family: sans-serif;
    font-weight: bolder;
}

a{
    text-decoration: none;
}
.toastContainer{
    position: absolute;
    width: 100vw;
    display: flex;
    z-index: 99;
    top: 5px;
    justify-content: center;
}
#error-toast{
    position: fixed;
    width: 50vw;
    margin-top: 25px;
    z-index: 99;
    background-color: rgb(175, 47, 47);
    color: white;
    display: flex;
    display: none;
    flex-direction: column;
    border-radius: 20px;
    border: 2px solid white;
    padding: 25px;
    justify-content: center;
    animation-name: slideDown;
    animation-duration: 0.2s;
}

@keyframes slideDown {
    0%{
        transform: translateY(-100%);
    }
    100%{
        transform: translateY(0%);
    }
    
}

#error-toast h3{
    margin-bottom: 10px;
}
#buttons{
    margin: 0;
    padding: 0;
    border: 0;
    display: flex;
    flex-wrap: wrap;
}
#buttons > button{
    margin: 10px;
    padding: 15px;
    /* flex: 1; */
    background-color: transparent;
    border: 2px solid white;
    border-radius: 7px;
}
#Convert{
    width: 100%;
}
#swap{
    flex: 1;
}
#reset{
    flex: 1;
}
@media (max-width: 800px){
    .main{
        width: 80vw;
    }
    #error-toast{
        width: 70vw;
    }
    #output{
        font-size: 1rem;
    }
    #explaination p{
        font-size: 1.1rem;
    }

    #explainationTable{
        font-size: 1.1rem;
    }
}