* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", Arial, sans-serif;
}

body {
    background-color: #222629;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

/* index */

#container {
    text-align: center;
    max-width: 90%;
    padding: 20px;
}

#title {
    color: #87C232;
    font-size: 64px;
    font-weight: 900;
}

#desc {
    color: white;
    margin: 10px 0;
}

#subContainer {
    margin-bottom: 22px;
}

#play, #roll {
    background-color: #87C232;
    padding: 12px 32px;
    border-radius: 18px;
    display: inline-block;
    border-style: none;
    cursor: pointer;
    transition: 0.15s;
}

#play:hover, #roll:hover {
    background-color: #a2d45c;
}   

#play:active, #roll:active {
    background-color: #c3e98d;
}

#play a, #roll a {
    color: #FFF;
    text-decoration: none;
    letter-spacing: 1.6px;
}

/* Game */

#winner {
    font-size: 24px;
    font-weight: 800;
    color: white;
}

#main {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    align-items: center;
    grid-gap: 44px;
    margin: 32px 0;
}

.player {
    font-size: 24px;
    color: #6B6E70;
    font-weight: 800;
    margin-bottom: 16px;
}

.playerContainer{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#roll {
    color: #FFF;
    text-decoration: none;
    letter-spacing: 1.6px;
}

@media all and (max-width: 550px){
    body {
        height: 90vh;
    }

    img {
        width: 150px;
        height: 150px;
    }

    #main {
        grid-gap: 32px;
    }
    
}

@media all and (max-width: 400px){
    body {
        height: 90vh;
    }

    img {
        width: 135px;
        height: 135px;
    }

    #main {
        grid-gap: 24px;
    }
    
}

@media all and (max-width: 350px){
    body {
        height: 90vh;
    }

    #title {
        font-size: 48px;
    }

    #winner {
        font-size: 16px;
    }

    img {
        width: 110px;
        height: 110px;
    }

    .player {
        font-size: 16px;
    }

    #main {
        grid-gap: 18px;
    }

    #play, #roll {
        background-color: #87C232;
        padding: 8px 24px;
        border-radius: 18px;
    }

    #play a, #roll a {
        font-size: 12px;
    }
    
}

