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

body {
    background: url('images/background.jpg') no-repeat center center fixed;
    background-size: cover;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    font-family: 'Raleway', sans-serif;
}

.background-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(26, 26, 26, 0.5);
    backdrop-filter: blur(10px);
    z-index: 0;
}

.magazine-cover {
    background: white;
    width: 400px;
    height: 600px;
    padding: 20px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    z-index: 1;
    animation: slideIn 1s ease-out forwards;
}

@keyframes slideIn {
    from {
        transform: translateY(200px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

header {
    display: flex;
    justify-content: space-between;
    font-size: 8px;
    font-weight: 600;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

header div {
    transition: opacity 0.5s ease-in-out;
}

header div:hover {
    opacity: 0.6;
    color: darkolivegreen;
}

.title {
    text-align: center;
    margin-top: -10px;
}

.animated-title {
    font-size: 50px;
    font-family: 'Sigmar', sans-serif;
    font-weight: 700;
    line-height: 1;
    display: inline-block;
    transition: transform 0.3s ease-in-out;
    animation: floatTitle 3s ease-in-out infinite alternate;
}

@keyframes floatTitle {
    0% { transform: translateY(5px); }
    100% { transform: translateY(-5px); }
}

.animated-title:hover {
    color: darkolivegreen;
}

.title span {
    font-size: 16px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Raleway', sans-serif;
}

.cover-image {
    width: 100%;
    height: 65%;
    overflow: hidden;
    margin: 10px 0;
    position: relative;
}

.cover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 5px;
    transition: transform 0.5s ease-in-out;
}

.cover-image:hover img {
    transform: scale(1.05);
}

footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 10px;
    color: #333;
    font-family: 'Montserrat', sans-serif;
}

.barcode {
    width: 50px;
    height: 15px;
    background: repeating-linear-gradient(
        90deg,
        black 0px, black 2px,
        white 2px, white 4px
    );
}

.magazine-cover:hover {
    animation: bounce 0.5s ease forwards;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.5);
}

@keyframes bounce {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
}
