:root{
    background-color: #1f1f1f;
    color: white;
    font-family: Arial;
}

body{
    margin: 0;

    min-height: 100vh;
}

main{
    width: 100%;
    height: 100%;

    display: flex;
    justify-content: center;
    align-items: center;
}

#main-container{
    width: 700px;
    height: fit-content;
    min-height: calc(100vh - (20px * 2) - (20px * 2));
    padding: 20px;
    border-radius: 10px;
    margin-top: 20px;
    margin-bottom: 20px;

    background-color: #2a2a2a;
}

#page-title-container{
    width: 100%;
    margin-bottom: 20px;

    display: flex;
    align-items: center;
    justify-content: center;
}

#page-title{
    width: fit-content;
    padding: 0;
    padding-bottom: 5px;
    padding-left: 15px;
    padding-right: 15px;
    border: 0;
    border-bottom: 1px solid white;
    margin: 0;

    text-align: center;
    font-size: 2.5rem;
}

.game-container{
    width: calc(100% - (10px * 2));
    height: fit-content;
    padding: 10px;
    border-radius: 10px;
    margin-bottom: 10px;

    background-color: #2f2f2f;
}

.game-title-container{
    margin-bottom: 10px;

    display: flex;
    align-items: center;
    gap: 10px;
}

.game-icon{
    width: 30px;
    height: 30px;

    margin-left: 5px;
}

.game-title{
    margin: 0;

    font-size: 1.5rem;
    font-weight: bold;
}

.badges-container{
    width: calc(100% - (10px * 2));
    height: fit-content;
    padding: 10px;
    border-radius: 10px;

    display: flex;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;

    background-color: #353535;
}

.badge{
    width: calc(100px - 2px);
    height: auto;
    padding-top: 5px;
    padding-bottom: 5px;
    border-right: 2px solid #3a3a3a;
    border-bottom: 2px solid #3a3a3a;
    border-radius: 10px;
    margin: 5px;

    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    gap: 0px; 

    overflow: hidden;

    background-color: #272727;
}

.badge-img{
    width: 80px;
    height: 80px;
    margin-bottom: 5px;
}

.badge-title{
    width: calc(100% - 4px);
    margin-bottom: 2.5px;
    padding-left: 2px;
    padding-right: 2px;

    text-align: center;
    font-size: 0.85rem;
}

.badge-level{
    color: #696969;
    font-size: 0.65rem;

    transition-duration: 0.2s;
}

.badge-level:hover{
    transition-duration: 0.2s;
    color: #fff;
}

.hidden{
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.no-outline{
    outline: none;
    -webkit-tap-highlight-color: transparent;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    -khtml-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

@media screen and (max-width: 750px) {
    #main-container{
        width: 375px;
    }
}

@media screen and (max-width: 420px) {
    #main-container{
        width: 100%;
    }

    #page-title{
        padding-bottom: 3px;
        padding-left: 10px;
        padding-right: 10px;
        border-bottom: 1px solid white;

        font-size: 1.5rem;
    }

    .game-container{
        width: calc(100% - (5px * 2));
        padding: 5px;
        border-radius: 5px;
        margin-bottom: 5px;
    }
    
    .game-title-container{
        margin-bottom: 5px;
    
        gap: 5px;
    }
    
    .game-icon{
        width: 15px;
        height: 15px;
    
        margin-left: 2.5px;
    }

    .game-title{
        margin: 0;
    
        font-size: 0.75rem;
        font-weight: bold;
    }

    .badges-container{
        width: calc(100% - (5px * 2));
        padding: 5px;
        border-radius: 5px;
    }

    .badge{
        width: calc(100px - 1px);
        padding-top: 2.5px;
        padding-bottom: 2.5px;
        border-right: 1px solid #3a3a3a;
        border-bottom: 1px solid #3a3a3a;
        border-radius: 5px;
        margin: 2.5px;
    }

    .badge-img{
        width: 40px;
        height: 40px;
        margin-bottom: 2.5px;
    }

    .badge-title{
        font-size: 0.5rem;
    }
    
    .badge-level{
        font-size: 0.35rem;
    }
}