@import url('https://fonts.googleapis.com/css2?family=Luckiest+Guy&display=swap');

:root {
    --color: rgb(0, 104, 169);
}

* {
    box-sizing: border-box;
    transition: all 0.3s ease;
}

body, html {
    height: 100%;
    width: 100%;
    padding: 0;
    margin: 0;
    font-family: 'Luckiest Guy', cursive, sans-serif;
    color: rgb(0, 0, 0);
    background-color: rgb(255, 255, 255);
    /* background-image: url("https://www.transparenttextures.com/patterns/cubes.png"); */
}

header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 80vh;
    padding: 0 20px;
    font-size: 2.2em;
    background-image: url("https://www.transparenttextures.com/patterns/cubes.png");
    background-color: rgb(87, 83, 112);
    text-shadow: 0 0 5px rgb(0, 0, 0);
}

header h1 {
    text-align: left;
    width: 400px;
    line-height: 1.2em;
    margin: 0 0 20px 0;
    color: wheat;
}

header h1.sec {
    text-align: end;
}

header::after {
    content: "";
    display: block;
    position: absolute;
    bottom: 168px;
    left: 0;
    width: 100%;
    height: 50px;
    background: linear-gradient(to top, rgb(255, 255, 255), transparent);
    opacity: 0.5;
    translate: 0 50px;
}

.name {
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
    margin: 10px;
    font-size: 1.1em;
    text-shadow: 0 0 10px rgb(0, 0, 0);
    color: rgb(255, 255, 255);
    font-family: 'Courier New', Courier, monospace;
}

.info {
    font-family: 'Courier New', Courier, monospace;
    font-size: 1em;
    text-align: center;
    width: 600px;
    line-height: 1.5em;
    margin: 0 auto;
    background-color: var(--color);
    font-weight: 600;
    padding: 20px;
    width: 100%;
    color: white;
}

footer {
    color: white;
    background-color: var(--color);
    text-align: center;
    padding: 20px;
    font-size: 1em;
    font-weight: 600;
    width: 100%;
    font-family: 'Courier New', Courier, monospace;
}

.products {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    grid-gap: 0px;
    margin: 20px 0;
    margin-left: auto;
    margin-right: auto;
}

.product {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px;
    border: 1px solid rgba(0, 0, 0, 0.482);
    border-radius: 5px;
    background-color: rgb(255, 255, 255);
    box-shadow: 0 0 5px rgba(0, 0, 0, 0.212);
    margin: 1em;
    width: 300px;
    height: 350px;
}

.product img {
    width: 200px;
    height: 200px;
    object-fit: contain;
    margin: 0 0 10px 0;
}

.product:hover {
    transform: translateY(-15px);
    cursor: pointer;
}

.popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-content {
    background-color: white;
    padding: 30px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    text-align: center;
}

.popup-title {
    font-size: 1.5em;
    margin: 10px 0 10px 0;
}

.popup-description {
    font-size: 1em;
    margin: 0 0 10px 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-number {
    font-size: 1.2em;
    margin: 0 0 10px 0;
    font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.popup-close {
    background-color: var(--color);
    color: white;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    margin-top: 15px;
}

.hidden {
    display: none;
}