body {
    font-family: Arial, sans-serif;
    background-color: #f0f0f0;
}

.bg-white {
    background-color: white;
}
.border {
    border: 1px solid black;
    border-radius: 0.5rem;
}
.p-2 {
    padding: 0.5rem;
}

.m-2 {
    margin-top: 10rem;
    margin-bottom: 10rem;
}
.shadow {
    box-shadow: 2px 2px 5px grey;
}  

.body-game {
    max-height: 80vh;
}
button {
    background-color: unset;
    border-radius: 0.5rem;
    padding:0.5rem;
    margin:0.5rem;
    box-shadow: 0.5px 2px 0px grey;
    cursor: pointer;
}

.flex{
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content: center;
}
.w-50 {
    width: 50%;
}
.h-full {
    height: 100%;
}
.flex-row {
    flex-direction: row;
    align-items: center;
    justify-content: space-evenly;
    gap: 0.2rem;
}

.flex-wrap {
    flex-wrap: wrap;
}
.grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    justify-items: center;
}

#portrait-warning {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.8);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 9999;
    padding: 0rem 3rem 0rem 0rem;
}

.hidden {
    display: none!important;
}

.shake {
    animation: shake 0.5s;
    background-color: red;
    color:white
}

.items {
    flex:0 33%;
    border-radius: 1rem;
}


@keyframes shake {
    0% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-5px); }
    100% { transform: translateX(0); }
}


@media (max-width: 768px) {
    .w-50 {
        width: 90%;
    }
    .body-game {
        max-height: 100vh;
    }
    .grid {
        align-items: start;
    }

    h2 {
        font-size: 1.5rem!important;
    }
}