@import url('https://fonts.googleapis.com/css2?family=Rubik:wght@300;400;500;600;700;800;900&display=swap');

body {
    font-family: 'Rubik', sans-serif !important;
    font-size: medium;
    color: #000;
    background-color: #34495E !important;
}

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 10000;
    top: 0;
    right: 0;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
    opacity: 0.9;
  }

  .sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: large;
    color: #FFF;
    display: block;
    transition: 0.3s;
  }

  .sidenav a:hover {
    color: #FF0;
  }

  .sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
  }

.table-history tbody tr {
    padding: 0 2rem;
    background-color: #F4F6F6;
}

.table-history tbody tr:nth-child(even) {
    background-color: #FFFFFF;
}

.table-history tbody tr td{
    padding: .5rem 1rem;
    vertical-align: top;
    border-top: 1px solid #dee2e6;
}

#showresult {
    min-height: 400px;
}

.result-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.boxlist {
    width: 100%;
    display: flex;
    flex-direction: row;
    /* flex-wrap: wrap; */
    justify-content: center;
    gap: 12px;
}


.listnum {
    width: 100%;
    display: flex;
    flex-direction: row;
    justify-content: center;
}

.boxnum {
    font-weight: bold;
    font-size: 30px;
    text-align: center;
    background-image: url('../images/rnum.png');
    border-radius: 5px;
    border: #000 solid 2px;
    width: 50px;
    height: 60px;
    margin: 2px 2px;
    padding-top: 7px;
}

footer {
    background-color: #333;
    padding: 20px;
    color: #ccc;
    font-size: 14px;
    position: fixed;
    margin: 0;
    width: 100%;
    left: 0;
    bottom: 0;
}



@media only screen and (max-width: 768px) {

    footer {
        position: relative !important;
    }

    #showresult {
        margin: 0 auto;
        width: calc(100% - 24px);
        min-height: 400px;
        margin-bottom: 1rem;
    }
}

@media only screen and (max-height: 740px) {

    footer {
        position: relative !important;
    }
}

@media only screen and (max-height: 450px) {
    .sidenav {padding-top: 15px;}
    .sidenav a {font-size: 18px;}
}

@media only screen and (max-width: 450px) {
    

    #showresult {
        margin: 0 auto;
        width: calc(100% - 24px);
        min-height: 450px;
        margin-bottom: 1rem;
    }

    .boxlist {
        flex-wrap: wrap;
    }

    .boxlist > .listnum {
        width: calc(33.333333% - 5px);
    }
}

#myBtn {
    color: yellow;
    font-size: 40px;
    z-index: 1000;
    cursor: pointer;
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    border: none;
    outline: none;
    background: none;
    border-radius: 4px;
}
  