*{
    margin:0;
    padding:0;
    box-sizing:border-box;
}

body{
    font-family:Verdana, Geneva, Tahoma, sans-serif;

    background:
    linear-gradient(
        135deg,
        #182848,
        #4b6cb7
    );

    min-height:100vh;

    display:flex;
    justify-content:center;
    align-items:center;

    padding:20px;

    color:white;
}

.container{
    width:100%;
    max-width:700px;
}

h1{
    text-align:center;
    margin-bottom:20px;
}

.card{
    background:rgba(255,255,255,0.12);

    backdrop-filter:blur(10px);

    border-radius:20px;

    padding:20px;

    margin-bottom:20px;

    box-shadow:
    0 5px 15px rgba(0,0,0,.25);
}

.hidden{
    display:none;
}

.monster-options{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(140px,1fr));

    gap:10px;

    margin-bottom:15px;
}

.monster-btn,
.actions button,
#continue-btn{

    border:none;

    border-radius:12px;

    padding:12px;

    cursor:pointer;

    font-size:1rem;

    transition:.25s;
}

.monster-btn:hover,
.actions button:hover,
#continue-btn:hover{
    transform:scale(1.05);
}

#continue-card{
    text-align:center;
}

#continue-btn{
    width:100%;
    font-weight:bold;
    background:#5cff72;
}

#pet-name{
    width:100%;
    padding:12px;
    margin-top:10px;
    border:none;
    border-radius:12px;
    font-size:1rem;
}

#monster-display{
    font-size:7rem;
    text-align:center;
    margin:15px 0;

    animation:float 3s infinite ease-in-out;
}

@keyframes float{

    0%{
        transform:translateY(0);
    }

    50%{
        transform:translateY(-10px);
    }

    100%{
        transform:translateY(0);
    }

}

.bar{
    width:100%;
    height:24px;

    background:#222;

    border-radius:20px;

    overflow:hidden;

    margin-bottom:15px;
}

.fill{
    height:100%;
    width:100%;
    transition:.3s;
}

.health{
    background:#ff4d4d;
}

.hunger{
    background:#ffb347;
}

.energy{
    background:#ffee58;
}

.happy{
    background:#5cff72;
}

.xp{
    background:#66aaff;
}

.actions{
    display:grid;

    grid-template-columns:
    repeat(auto-fit,minmax(120px,1fr));

    gap:10px;
}

#menu-btn{
    background:#4b6cb7;
    color:white;
}

#new-pet-btn{
    background:#d9534f;
    color:white;
}

#home-new-pet-btn{
    width:100%;
    margin-top:12px;
    font-weight:bold;
    background:#d9534f;
    color:white;
    border:none;
    border-radius:12px;
    padding:12px;
    cursor:pointer;
    font-size:1rem;
    transition:.25s;
}

#home-new-pet-btn:hover{
    transform:scale(1.05);
    background:#e86a66;
}

#log{
    max-height:200px;
    overflow-y:auto;
}

.log-entry{
    background:rgba(255,255,255,.10);

    border-radius:10px;

    padding:10px;

    margin-bottom:10px;
}

.hidden{
    display:none !important;
}

.help-btn{
    display:block;
    margin:0 auto 20px;
    padding:12px 20px;
    border:none;
    border-radius:12px;
    background:#66aaff;
    color:white;
    font-size:1rem;
    font-weight:bold;
    cursor:pointer;
    transition:.25s;
}

.help-btn:hover{
    background:#84c0ff;
    transform:scale(1.05);
}

.modal{
    position:fixed;
    inset:0;
    background:rgba(0,0,0,.75);
    display:flex;
    justify-content:center;
    align-items:center;
    z-index:1000;
    padding:20px;
}

.modal-content{
    background:white;
    color:#222;
    width:100%;
    max-width:700px;
    max-height:80vh;
    overflow-y:auto;
    padding:30px;
    border-radius:20px;
}

.close-btn{
    position:absolute;
    top:12px;
    right:18px;
    font-size:2rem;
    font-weight:bold;
    color:#555;

    cursor:pointer;
    user-select:none;

    padding:4px 10px;
    border-radius:8px;

    transition:.25s;
}

.close-btn:hover{
    color:#d9534f;
    background:rgba(0,0,0,.1);
    transform:scale(1.1);
}
