*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: schibsted;
    font-weight: bold;
    color: #333;
    background-image: linear-gradient(180deg, #372991, #15142b);
}


.logo-php {
    display: inline-block;
    height: 1.5em;
    width: auto;
}

.logo-php img {
    height: 100%;
    width: auto;
    display: block;
}

header h1 {
    text-transform: uppercase;
    text-align: center;
    font-size: 2.5rem;
    margin: 2rem 0;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5em;
    font-family: arca-majora;
}

#txt-header {
    text-decoration: underline;
    text-decoration-color: #787cb5;

}

img {
    width: 100%;
    height: 250px;
    display: block;
}

.contetnt {
    max-width: 1000px;
    margin-right: auto;
    margin-left: auto;
    padding: 1rem;
}

.card-wrap {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    list-style: none;
}


.card-wrap article:last-child {
    margin: 0 auto;
    grid-column: 1 / -1;
    text-align: center;
}


.card-list {
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden;
    transition: transform 0.3s ease;

}

.card-list:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.card-listLink {
    text-decoration: none;
    color: inherit;
    display: block;
    padding: 1.5rem;
}

.card-listTitle {
    font-size: 1.5rem;
    font-weight: bold;
    text-align: center;
    margin: 1rem 0;
}

.card-listText {
    line-height: 1.6;
}

footer {
    font-family: 'gamelia';
    text-align: center;
    margin-top: 3rem;
    padding: 2rem 0;
    color: #777bb4;
    background-image: linear-gradient(135deg, #372991, #15142b);
    border-top: 2px solid #7a83af;
    box-shadow: 0 -4px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 10;
}

footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    filter: blur(10px);
    z-index: -1;
    opacity: 0.6;

}

footer::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: url('./assets/img/php-logo-transparent.png');
    background-size: 15%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.1;
    z-index: -1;

}


#scrollTopButton {
    display: none;
    position: fixed;
    bottom: 30px;
    right: 30px;
    background-color: #777bb4;
    color: #fff;
    border: none;
    border-radius: 50%;
    padding: 12px;
    cursor: pointer;
    opacity: 0.7;
    transition: opacity 0.3s;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
    z-index: 1000;
}

#scrollTopButton:hover {
    background-color: #4f549c;
}

#scrollTopButton i {
    font-size: 2.5rem;
}