@import url('https://fonts.googleapis.com/css2?family=Pixelify+Sans:wght@400..700&display=swap');

body {
    font-family: "Pixelify Sans", sans-serif;
    font-optical-sizing: auto;
    font-weight: 500;
    font-style: normal;
    text-align: center;
    background-color: #1A1A1D;
    color: whitesmoke;
    height: 2000px;
}

header {
    padding-top: 52px;
    background-image: url('../images/header.png');
    background-size: cover;
    min-height: 200px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0px 3px 3px #A64D79;
}

.headerData {
    background-color: #1A1A1D;
    padding: 12px;
    border: 2px solid #A64D79;
    max-width: 20%;
    margin-left: 40%;
    margin-right: 40%;
    margin-bottom: 4px;
}

a {
    font-size: 20px;
    color: whitesmoke
}

a:hover {
    color: gray;
}

a:active {
    color: darkslategray;
}

.curPage {
    color: wheat;
}

.pageTitle {
    text-align: center;

    p, h2 {
        text-align: center;
    }
}

.page {
    display: flex;
    align-items: top;
    justify-content: left;
    margin: 40px 20px;

    h2 {
        margin-top: 24px;
    }

    .text {
        width: 800px;
    }
}

.page, .pageTitle {
    img {
        margin: 12px;
        border-radius: 12px;
        border: 1px solid #A64D79;
    }
}

.page {
    img {
        width: 720px;
    }
}

.data {
    display: flex; /* Используем Flexbox для выравнивания */
    align-items: top; /* Центрируем элементы по вертикали */
    justify-content: center; /* Центрируем элементы по горизонтали */
    background-color: #1a1a1da6;
    padding: 12px;
    border-bottom: 1px solid #A64D79;
    border-top: 1px solid #A64D79;
    width: 100%;
}

img {
    width: 256px;
}

.text {
    vertical-align: top;
    width: 400px;
}

.feature {
    padding-top: 100px;
    min-height: 800px;
    text-align: center;
    background-size: cover;
}

.open {
    background-image: url('../images/room-rain.gif');
}

.libre {
    background-image: url('../images/castle-winter.webp');
}

.community-based {
    background-image: url('../images/cybercity.gif');
}

h1 {
    font-size: 42px;
}

h2 {
    text-align: left;
    font-size: 32px;
    color: wheat;
}

p {
    text-align: left;
    font-size: 20px;
}

footer {
    background-color: #3B1C32;
    width: 100%;
    padding: 12px;
    color: whitesmoke;
}

.cards {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 25px 25px;
    grid-auto-rows: minmax(auto, auto);
    margin: 48px;
}

.card {
    background-color: #3B1C32;
    border-radius: 12px;
    padding: 12px;
    padding-top: 24px;
    border: 2px solid #A64D79;
    max-width: 384px;
    
    p {
        text-align: center;
    }

    h2 {
        text-align: center;
    }

    img {
        border-radius: 12px;
        border: 2px solid #A64D79;
        margin-bottom: 12px;
    }
}

@media (max-width: 768px) {

    .headerData {
        max-width: 95%;
        margin-left: 2.5%;
        margin-right: 2.5%;

        a {
            font-size: 16px;
        }
    }

    img {
        width: 164px;
    }


    .cards {
        grid-template-columns: repeat(1, 1fr);
        gap: 25px 0px;
        margin: 12px;
    }

}