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

body{
    background:#050505;
    color:#fff;
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding:30px;
}

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

h1{
    text-align:center;
    font-size:42px;
    font-weight:700;
}

.subtitle{
    text-align:center;
    color:#888;
    margin:10px 0 35px;
}

.card{
    background:#0d0d0d;
    border:2px solid #222;
    border-radius:24px;
    padding:30px;
}

.image-box{
    position:relative;
    width:100%;
    aspect-ratio:1/1;
    background:#111;
    border:2px solid #222;
    border-radius:20px;
    overflow:hidden;
    display:flex;
    justify-content:center;
    align-items:center;
}

#catImage{
    width:100%;
    height:100%;
    object-fit:cover;
    opacity:0;
    transition:opacity .35s ease;
    user-select:none;
}

#catImage.show{
    opacity:1;
}

.loader{
    position:absolute;
    width:60px;
    height:60px;
    border:4px solid rgba(255,255,255,.15);
    border-top:4px solid #fff;
    border-radius:50%;
    animation:spin .8s linear infinite;
}

.loader.hidden{
    display:none;
}

.buttons{
    display:flex;
    gap:15px;
    margin-top:25px;
}

.buttons button{
    flex:1;
    background:#fff;
    color:#000;
    border:none;
    border-radius:16px;
    padding:16px;
    font-size:17px;
    font-weight:600;
    cursor:pointer;
    transition:.2s;
}

.buttons button:hover{
    transform:translateY(-2px);
}

.buttons button:active{
    transform:scale(.98);
}

@keyframes spin{

    from{
        transform:rotate(0deg);
    }

    to{
        transform:rotate(360deg);
    }

}

@media(max-width:600px){

    h1{
        font-size:34px;
    }

    .card{
        padding:20px;
    }

    .buttons{
        flex-direction:column;
    }

}