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

body {
    font-family: Arial, sans-serif;
    background-color: #2b3a42;
    color: #fff;
    display: flex;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
    min-height: 100vh;
    overflow-y: auto;
}

.container {
    display: flex;
    flex-direction: column;
    gap: 20px;
    max-width: 600px;
    width: 100%;
    margin: 0 auto;
}

.exchange-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 2px solid #4caf50;
    padding: 20px;
    border-radius: 10px;
    background-color: #354c55;
    position: relative;
}

.exchange-box {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
}

.item {
    text-align: center;
}

.item h2 {
    margin-bottom: 10px;
}

.item-image {
    width: 150px;
    height: auto;
    border: 2px solid #4caf50;
    border-radius: 5px;
}

.arrow {
    margin: 0 20px;
    font-size: 24px;
}

.buttons {
    display: flex;
    gap: 10px;
    border-top: 2px solid #4caf50;
    padding-top: 10px;
    width: 100%;
    justify-content: center; /* Центрируем кнопки */
}

.used {
    background: #252e37;
    opacity: 0.8;
}
.used, .used .item-image, .used .buttons {
    border-color: #733232;
}
.used button {
    background: #733232;
}
.used-chip {
    position: absolute;
    top: -9px;
    background: #b62525;
    color: #ffffff;
    border-radius: 5px;
    padding: 3px 8px;
    font-size: 12px;
    opacity: 0.9;
    text-shadow: 1px 1px 1px #000;
}

.author {
    margin-bottom:10px;
}
.id {
    position: absolute;
    top:10px;
    right:10px;
    color: rgb(39 55 65);
    font-size: 30px;
}


@media (max-width: 1050px) {
    .item-image {
        width: 130px;
    }
}

@media (max-width: 590px) {
    .item-image {
        width: 100px;
    }
    .id {
        font-size: 20px;
    }
    .exchange-block {
        padding-top: 30px;
    }
}