* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: #4618ac;
    font-family: "Inter", Arial, Helvetica, sans-serif;
    font-weight: 500;
    color: white;
    display: flex;
}

.content_container {
    width: 70%
}

/* ========== HEADER ========== */

.header_container {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 0;
    height: 48px;

    @media (max-width: 900px) {
        flex-direction: column;
        height: auto;
    }
}

.logo_container {
    width: 100px;
}

.search_container {
    flex: 1;
    height: 100%;
    padding: 0;
    border: 1px solid white;
    border-radius: 0;
    background-color: #4618ac;
    display: flex;
    align-items: center;
    overflow: hidden;

    @media (max-width: 900px) {
        width: 100%;
    }
}

.search_container form {
    display: flex;
    align-items: center;
    width: 100%;
}

.search_container input[type="text"] {
    flex: 1;
    padding: 10px;
    border: none;
    background: transparent;
    color: white;
    font-size: 14px;
    outline: none;
    font-weight: 600;
}

.search_container input {
    font-weight: 600;
}

.search_container input::placeholder {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.6);
}

.search_container button {
    background: none;
    border: none;
    color: white;
    font-size: 16px;
    padding: 0 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.search_container button:hover {
    opacity: 0.7;
}

.search_container input[type="submit"] {
    display: none;
}

.region_container {
    display: flex;
    font-weight: 500;
    align-items: center;
    padding: 2px 8px 2px 0;
    font-size: 12px;
    color: white;
    cursor: pointer;
    @media (max-width: 900px) {
        display: none;
    }
}

.region_container:hover {
    color: #fad318
}

.region_container img {
    width: 12px;
    height: 12px;
    margin-right: 6px;
}

.filler {
    flex-grow: 1
}

.account_container {
    display: flex;
    gap: 5px;
    justify-content: flex-end;
}

.card_header_icon,
.header_icon {
    width: 36px;
    height: 36px;
    font-size: 20px;
    font-weight: 400;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background-color 0.3s;
}

.card_header_icon {
    position: absolute;
    right: 10px;
    top: 10px;
    opacity: 0;
    transition: 0.2s opacity linear;

    .card:hover & {
        opacity: 1;
    }
}

.header_icon:hover,
.account_header_icon:hover {
    color: #fad318;
}

/* ========== RESULTS ====== */
.content_container {
    max-width: 1020px;
    margin: 0 auto;
    padding: 20px;
}

.found_results {
    font-size: 12px;
    font-weight: 400;
    align-items: center;
    margin-top: 20px;
    padding: 10px 0;
}

.results_container {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    place-items: center;
    justify-content: center;
    margin-top: 20px;
    @media (min-width: 600px) {
        grid-template-columns: repeat(2, 1fr);
    }
    @media (min-width: 900px) {
        grid-template-columns: repeat(3, 1fr);
    }
    @media (min-width: 1200px) {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ========== GAME OFFER CARD ========== */

.card {
    display: flex;
    flex-direction: column;
    height: 470px;
    width: 100%;
    max-width: 270px;
    border: 1px solid #63e3c2;
    background-size: contain;
    justify-content: flex-end;
    background-position: top center;
    background-repeat: no-repeat;
    overflow: hidden;
    position: relative;
}

/* moving part */
.card_content {
    display: flex;
    flex-direction: column;
    transform: translateY(80px);
    transition: 0.2s transform linear;

    .card:hover & {
        transform: translateY(0px);
    }
}

.cashback_container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
}

.cashback_container img {
    width: 50%;
}

.platform_container {
    display: flex;
    justify-content: center;
    align-items: center;
}

.game_info_container {
    background-color: #1f0a4d;
    padding: 10px;
    gap: 8px;
    display: flex;
    flex-direction: column;
    font-size: 12px;
}

.region_container_card {
    color: #63e3c2;
}

.platform_container {
    display: flex;
    height: 25px;
    gap: 8px;
    font-size: 12px;
    justify-content: center;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(2px);
}

.platform_container img {
    width: 15px;
    height: 15px;
}

.title_container {
     font-size: 14px;
 }

.card_buttons {
    display: flex;
    flex-direction: column;
}

.button {
    height: 30px;
    cursor: pointer;
}

.buy_button {
    background-color: #fad318;
    color: #1f0a4d;
    margin: 10px 0;
    border: none;
    outline: none;
    font-size: 16px;
    font-weight: 600;
}

.options_button {
    background-color: #1f0a4d;
    border: 1px solid white;
    color: white;
    font-size: 16px;
    font-weight: 600;
}

.discount {
    font-size: 16px;
    color: rgba(213, 193, 230, 0.78);
}

.cashback_discount_info {
    color: #62ff62;
}

.final_price {
    font-size: 24px;
    margin: 8px 0;
}

.cashback_discount_info {
    font-size: 16px;
    margin-bottom: 10px;
}

.featured {
    opacity: 0.7;
}

.card_heart {
    position: absolute;
}