@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    display: flex;
    justify-content: center;
    height: 100%;
    background-color: lightgray;
    font-family: Poppins, 'Segoe UI', sans-serif;
    scrollbar-gutter: stable;
    color: #3e3e3e;

}

header {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 60px;
    padding-bottom: 20px;
    padding-inline: clamp(1.375rem, 2vw, 1.75rem);
    background-color: lightskyblue;
}

header h1 {
    font-size: clamp(1.625rem, 1.35rem + 1.25vw, 2.125rem);
    font-weight: 600;
    line-height: 1.2;
    text-align: center;
    text-wrap: balance;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    background-color: lightblue;
    width: 100%;
    max-width: 1440px;
    min-width: 380px;
    min-height: 760px;
    margin-inline: auto;
}


main {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-color: lightblue;
    padding: clamp(0.75rem, 2.5vw, 1.25rem);
    max-width: 80%;
    min-width: 380px;
    line-height: 2rem;
    align-self: center;
}

.main-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 70%;
    min-width: 300px;
    font-size: 1.5rem;
}

.main-content p {
    margin-bottom: 1rem;
}


.main-content ul {
    padding-left: 2rem;
}

.main-content li {
    margin-bottom: 1rem;
}

.main-content a {
    color: darkmagenta;
    text-decoration: none;
    padding: 0.25rem 0.25rem;
}

.main-content a:hover {
    background-color: orange;
    padding: 0.25rem 0.25rem;
}




footer {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: clamp(1rem, 2.5vw, 1.25rem);
    padding-bottom: clamp(1rem, 2.5vw, 1.25rem);
    padding-inline: clamp(1.375rem, 2vw, 1.75rem);
    font-family: Tahoma, sans-serif;
    font-size: clamp(0.875rem, 0.8rem + 0.35vw, 1rem);
    background-color: lightskyblue;
    margin-top: auto;
}

/* Tablet: 768px–1199px */
@media screen and (min-width: 768px) and (max-width: 1199px) {
    header {
        padding-top: 76px;
        padding-bottom: 26px;
        padding-inline: clamp(1.125rem, 2.8vw, 1.5rem);
    }

    header h1 {
        font-size: clamp(1.375rem, 1.15rem + 1vw, 1.875rem);
    }

    footer {
        padding-inline: clamp(1.125rem, 2.8vw, 1.5rem);
    }
}

/* Mobile: max 767px */
@media screen and (max-width: 767px) {
    header {
        padding-top: 72px;
        padding-bottom: 20px;
        padding-inline: clamp(0.875rem, 4vw, 1.125rem);
    }

    header h1 {
        font-size: clamp(1.125rem, 1rem + 1.25vw, 1.5rem);
    }

    .main-content {
        font-size: 1.2rem;
    }

    footer {
        padding-top: 1rem;
        padding-bottom: 1rem;
        padding-inline: clamp(0.875rem, 4vw, 1.125rem);
        font-size: clamp(0.8125rem, 0.78rem + 0.2vw, 0.9375rem);
    }
}
