@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Roboto+Slab:wght@400;700;800&display=swap');

:root {
    font-size: 20px;
}
* {
    box-sizing: border-box;
}
body {
    margin: 0;
    background-color: #141419;
    color: #e3e3e3;
    font-family: "inter",sans-serif;

    --d: 4px; 
    background: radial-gradient( circle at var(--d) var(--d), #222 calc(var(--d) - 1px), #0000 var(--d) ) 0 0 / 50px 50px #141419;
}

.list {
    width: 100%;
    display: grid;
    place-content: center;
    place-items: center;
    gap: 1rem;
    --width: 350px;
    grid-template-columns: repeat(auto-fill, minmax(var(--width), var(--width)));
}

.list .item {
    cursor: pointer;
    background: #1f1f29;
    max-width: var(--width);
    display: flex;
    flex-direction: column;
    border-radius: 0.5rem;
    overflow: hidden;
    width: 100%;
    height: 400px;
    overflow-y: auto;
}

.list .item .content, .list .item .head {
    padding: 0.2rem 0.5rem;
}

.list .item .head {
    font-size: 1.1em;
    font-weight: 600;
}

.list .item img {
    background-repeat: no-repeat !important;
    background-position: center !important;
    place-self: center;
    width: max-content;
    height: 200px;
    background-size: cover !important;
}

header {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    font-size: 1.2em;
}

header .back {
    color: #aeaeae;
}

.popup {
    position: fixed;
    top: 0;
    width: 100%;
    height: 100%;
    background: #141419ee;
    overflow: auto;
    display: flex;
    justify-content: center;
}

.firstStep {
    opacity: 0%;
    display: flex;
    transition: 250ms opacity ease;
}

.secondStep {
    opacity: 100%;
}


.popup .content {
    position: absolute;
    top: -100%;
    transition: 250ms ease top;
    padding: 0.5rem;
    width: 100%;
    max-width: 700px;
    height: fit-content;
    background: #1f1f29;
    color: #d3e5f5;
    overflow: hidden;
    border-radius: 0.7em;
}

.thirdStep {
    top: 0 !important;
}

.popup .about {
    padding: 0.5rem;
}

.popup .title {
    font-family: "roboto slab",serif;
    color: #c1c7ce;
    color: rgb(228, 228, 228);
    font-weight: bold;
    /* font-size: 1.2em; */
    text-align: center;
    width: 100%;
}

.popup .link {
    padding: 0.5em;
    padding-top: 0;
    display: block;
    text-align: center;
    color: #5383FC;
}

.popup .popis {
    color: #c1c7ce;
}

.popup img {
    width: 100%;
    height: fit-content;
}
.nodisplay {
    display: none;
}

.close {
    background: #141419;
    color: #d3e5f5;
    border: none;
    font-size: 1.2em;
    padding: 0.2em 0.5em;
}

.item .content a, .popis a {
    color: #bebeff !important;
}
