@font-face {
    font-family: 'InriaSans';
    src: url('fonts/InriaSans-Bold.ttf') format('truetype');
}

html {
    height: 100%;
    width: 100%;
    margin: 0;
    padding: 0;
}

body {
    background-color: white;
    width: 100%;
    height: 100%;
    font-family: 'InriaSans';
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    align-items: center;

}

header {
    background-color: #D9D9D9;
    height: 47px;
    width: 100%;
    margin: 0;
    font-family: 'InriaSans';
    color: #5C5A59;
    display: flex;
    align-items: center;
    font-size: 24px;
}

.head {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    padding: 0 17px 0 17px;
}

.logo {
    max-width: 261px;
    max-height: 257px;
}

.imgPrinter {
    max-width: 674px;
    max-height: 674px;
}

main {
    height: 100%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 120px 0 120px;
    box-sizing: border-box;
    flex-direction: row;
}

.desklinks {
    margin: 0;
    display: flex;
    flex-direction: row;
    gap: 15px;
}

.desklink {
    font-size: 24px;
    color: #5C5A59;
    transition: transform 0.3s ease, font-size 0.3s ease, color 0.3s ease;
    transform: scale(1);
    text-decoration: none;
}

.desklink:hover {
    font-size: 24px;
    color: #3e3e3d;
    transform: scale(1.05);
}


@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

@keyframes big {
    0% { transform: scale(1); }
    100% { transform: scale(1.05); }
}

.block1 {
    width: 674px;
    height: 674px;
    pointer-events: none;
}

.block2 {
    width: 674px;
    height: 674px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 41px;
    pointer-events: none;
}

.buyButton {
    animation: pulse 3s infinite ease-in-out;
    pointer-events: visible;
}

.buyButton:hover {
    animation: none;
    transform: scale(1.05);
}

.progress-container {
    position: relative;
    width: 100%;
    min-height: 30px;
    height: 30px;
    background: #828282;
    overflow: hidden;
}

.progress-bar {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    width: 0%;
    background: linear-gradient(to right, #666, #222);
    transition: width 1s linear;
    z-index: 0;
}

.progress-text-wrapper {
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: none;
}

.progress-text {
    font-size: 14px;
    font-weight: bold;
    position: absolute;
    white-space: nowrap;
    transition: color 0.3s ease;
}

.progress-text.under {
    color: white;
    z-index: 1;
}

.progress-text.over {
    color: black;
    z-index: 2;
    mix-blend-mode: difference;
}

@media screen and (max-width: 480px) {

    main {
        flex-direction: column;
        padding: 46px 28px 0 28px;
    }
    
    .block1 {
        order: 2;
        width: 424px;
        height: 424px;
    }

    .imgPrinter {
        width: 424px;
        height: 424px;
    }

    .block2 {
        order: 1;
    }
}