html
{
    display: flex;
    flex-wrap: wrap;
    font-size: 14px;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
   
}

body
{
    margin: 0%;
    padding: 0%;

    align-items: center;
    justify-content: center;
    text-align: center;
}

.header
{ 
    /*background: linear-gradient(270deg,  #ef8172);*/
    background-color: black;
    background-size: 180% 180%;
    font-size: 1.3rem;
    color: white;
    display: flex;
    flex-direction: column;
    width: 100vw;
    justify-content: center;
    border-bottom: 0.25rem solid;
}

.main
{
    background: linear-gradient(180deg,  #ef8172, #ff5ec9);
}

h1
{
    justify-content: center;
    text-align: center;
    text-decoration: none;
    color: white;
    margin: 18px 0px;
}

h1 a:link
{
    justify-content: center;
    text-align: center;
    text-decoration:none;
    color: white;
}

h1 a:visited
{
    justify-content: center;
    text-align: center;
    text-decoration:line-through;
    color: white;
}

h2
{
    margin-top: 20px;
    font-size: 1.6rem;
}

.body_text
{
    margin: 10px 10px;
    font-size: larger;
    font-weight: bold;
    padding: 0px 1%;
    font-size: 1.2rem;
}

.deck 
{
    font-size: medium;
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 1.25rem;
}

.category
{
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    padding: 0% 8%;

}

button
{
    flex: 1 1 10%;
    height: 70px;
    margin-top: 5px;
    margin-bottom: 20px;
    border: none;
    border-radius: 10px;
    padding: 1 30px;
    color: white;
    background-color: black;
    
    
    font-weight: bold;
    cursor: pointer;
}

button:hover
{
    color: lightgray;
}

.card_section
{
    margin: auto;
    margin-top: 10px;
    margin-bottom: 30px;
    max-height: 70%;
    max-width: 475px;
    padding: 0% 10%;
}

.cards
{
    display: flex;
    justify-content: center;
    align-items: center; 
    margin: auto;
    height: 600px;
    width: 100%;
    background-color: black;
    border-radius: 0%;
    border-radius: 20px 20px;
    padding-bottom: 30px;
    cursor: pointer;
}

#card_text
{

    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bolder;
    color: white;
    text-align: center;
    max-width: 400px;
    max-height: 600px;
    word-wrap: break-word;
    overflow-wrap: break-word;
    text-wrap: balance;
    user-select: none; 
}

#card_text p
{
    max-height: 500px;
    font-size: 2.4rem;
    white-space: pre-line;
    padding: 0px 20px;
}

/*#card_text:hover
{
    font-size: 2.4rem;
    font-family:system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    font-weight: bolder;
    color: #ef8172;
    text-align: center;
}
*/
#general.activeDeck
{
    color: lime;
}

#truth_dare.activeDeck
{
    color: rgb(229, 255, 0);
}

#dirty.activeDeck
{
    color: rgb(245, 4, 4);
}

#haveIEver.activeDeck
{
    color: rgb(241, 54, 232);
}

#whoIs.activeDeck
{
    color: rgb(0, 183, 255);
}

.inactiveDeck
{
    color: white;
}

#rules
{
    text-align: justify;
    padding: 1% 10%;
    color: white;
}

#rules h2
{
    text-align: center;
    font-weight: bolder;
}

#rules h4
{
    margin: 0px;
}

#rules p
{
    font-weight: normal;
    font-size: 1rem;
}

#rules li
{
    font-size: 1rem;
}

#rulebox
{
    width: 80%;
    padding: 10%;
    background-color: black;
    color: white;
    border: 0%;
    border: none;
    border-radius: 20px;
}
.body_text
{
    font-size: 1.1rem;
}
.footer
{
    height: 100px;
}

@media (min-width: 769px)
{
    #general.activeDeck:hover
    {
        color: green;
    }

    #truth_dare.activeDeck:hover
    {
        color: rgb(170, 160, 24);
    }

    #dirty.activeDeck:hover
    {
        color: rgb(173, 0, 0);
    }

    #haveIEver.activeDeck:hover
    {
        color: rgb(182, 40, 175);
    }

    #whoIs.activeDeck:hover
    {
        color: rgb(0, 124, 173);
    }

}
    @media (max-width: 768px) {
    /* Mobile CSS */
    body
    {
        width: 100%;
    }

    .header
    { 
        width: 100vw;
    }

    .category
    {
        display: flex;
        align-items: center;
        justify-content: center;
        flex-wrap: wrap;
        gap: 1%;
        padding: 0% 8%;
    }

    .deck 
    {
        font-size: medium;
        font-weight: 600;
        font-size: 1.1rem;

        max-height: auto;
    }

    .category
    {
        padding: 0% 5%;
    }

    button
    {
        flex: 1 45%;  /* two buttons per row, same size */
        margin: auto;
        padding: 0% 10%;
    }

    .card_section
    {
        padding: 0% 5%;
    }

    #card_text p
    {
        white-space: pre-line;
        padding: 0px 20px;
        max-height: 700px;
    }

    #rules
    {
        padding: 1% 5%;
    }


}