body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    color: white;

    background-image: url(../img/Decoration/download\ \(2\).jpeg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.top-bar {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    padding: 20px 40px;
}

.key-button {
    background: #7b5e57;
    padding: 10px 20px;
    border-radius: 20px;
    font-size: 18px;
    grid-column: 1;
    justify-self: start;
}

.back-home {
    display: inline-block;
    margin-top: 12px;
    text-decoration: none;
    color: white;
}

.page-title {
    background: #7b5e57;
    padding: 10px 40px;
    border-radius: 20px;
    font-size: 20px;
    grid-column: 2;
    justify-self: center;
}

.corner-icon {
    width: 60px;
    grid-column: 3;
    justify-self: end;
}


.h2 {
    color: white;
    margin-left: 80px;
    margin-bottom: 10px;
}

.box {
    width: 300px;
    height: 300px;
    border-radius: 10px;
    overflow: hidden;
    margin: 80px;
}

.box img {
    width: auto;
    height: 80%;
    object-fit: cover;
}



.fade img {
    opacity: 0.3;
    transition: opacity 0.5s;
}

.fade:hover img {
    opacity: 1;
}

.scale {
    transition: transform 0.5s;
}

.scale:hover {
    transform: scale(1.2);
}

.threeD {
    display: grid;
    justify-content: center;
    align-items: center;
    height: 80vh;
    perspective: 800px;
}

.platform {
    width: 300px;
    height: 150px;
    background: #777;
    border-radius: 20px;
    transform: rotateX(60deg) rotateZ(-20deg);
    transition: all 0.3s ease;
    box-shadow: 0 20px 30px rgba(0, 0, 0, 0.3);
}

.platform-text {
    color: white;
    font: 18px;
    opacity: 0;
    transform: translateY(15px);
    transition: all 0.3s ease;
}

.platform:hover {
    transform: rotateX(60deg) rotateZ(-20deg) translateZ(30px);
    box-shadow: 0 50px 70px rgba(0, 0, 0, 0.5);
}

.platform:hover .platform-text {
    opacity: 1;
    transform: translateY(0);
}
   

.slide:hover {
    animation: slide 0.5s forwards;
}

.keyframe-animation {
    margin-top: 100px;
    text-align: center;
}

@keyframes foxMove {
    0% {
        transform: translateX(0) scaleX(1);
    }

    49% {
        transform: translateX(200px) scaleX(1);
    }

    50% {
        transform: translateX(200px) scaleX(1);
    }

    51% {
        transform: translateX(200px) scaleX(-1);
    }

    100% {
        transform: translateX(0) scaleX(-1);
    }
}

.cat {
    width: 150px;
    animation: foxMove 4s infinite linear;
}
