
* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 0;
    background-color: hsl(0, 0%, 100%);
    overflow-x: hidden;
}


h1 {
    margin: 0;
    background-color: hsl(150, 100%, 20%);
    font-family: 'Amiri', Arial, sans-serif;
    color: white;
    padding: 10px 0;
    text-align: center;
    font-size: 2rem;
}


.header {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: hsl(150, 100%, 20%);
    padding: 10px 0;
    flex-wrap: wrap;
}

.logo-link {
    display: flex;
    text-decoration: none;
    cursor: pointer;
    align-items: center;
}

.dz-logo {
    width: 80px;
    height: 80px;
    transition: transform 0.3s ease;
    border: 2px solid hsl(46, 65%, 52%);
    border-radius: 50%;
    padding: 5px;
    background-color: white;
}

.dz-logo:hover {
    transform: rotate(10deg) scale(1.1);
}


.navbar ul {
    display: flex;
    list-style-type: none;
    justify-content: center;
    background-color: hsl(145, 100%, 15%);
    padding: 0;
    margin: 0;
    flex-wrap: wrap;
}

.navbar a {
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    display: block;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.navbar a:hover {
    background-color: hsl(46, 65%, 52%);
    color: hsl(150, 100%, 20%);
}

.navbar li:last-child a {
    border-right: none;
}


.welcome-box {
    display: flex;
    flex-direction: column;
    margin: 30px auto;
    min-width: 300px;
    max-width: 700px;
    background-color: hsl(0, 0%, 100%);
    padding: 30px;
    line-height: 1.6;
    border: 3px solid hsl(46, 65%, 52%);
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,102,51,0.1);
    width: 95%;
    text-align: center;
}

.title {
    font-family: 'Amiri', 'Oswald', sans-serif;
    font-size: 2.5rem;
    padding-bottom: 15px;
    color: hsl(150, 100%, 20%);
    text-align: center;
    margin-top: 0;
    border-bottom: 2px dashed #D4AF37;
}

.message {
    font-family: 'Roboto', sans-serif;
    color: hsl(0, 0%, 20%);
    font-size: 1.1rem;
    margin: 4px;
}

.card-button-div {
    padding: 20px 0;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
/*
.general-button {
    background-color: hsl(208, 79%, 51%);
    color: white;
    border: 2px solid hsl(208, 79%, 51%);
    padding: 12px 25px;
    margin-top: 25px;
    cursor: pointer;
    border-radius: 30px;
    width: auto;
    max-width: 200px;
    font-weight: bold;
    transition: all 0.3s;
    align-self: center;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
    */
.general-button {
    background-color: hsl(208, 79%, 51%);
    color: white;
    border: 2px solid hsl(208, 79%, 51%);
    padding: 12px 25px;
    cursor: pointer;
    border-radius: 30px;
    font-weight: bold;
    transition: all 0.3s;
    font-size: 1rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    max-width: 90%;
}

.general-button:hover {
    background-color: transparent;
    color: hsl(208, 79%, 51%);
    transform: translateY(-3px);
    box-shadow: 0 5px 10px rgba(30,136,229,0.3);
}


.main-content {
    flex: 1;
    padding: 20px 0;
}

.card-div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
    padding: 20px;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    width: 280px;
    flex: 1 1 250px;
    box-shadow: 0 5px 15px rgba(0,102,51,0.1);
    transition: all 0.3s;
    border-radius: 10px;
    overflow: visible;
    background: white;
    border-top: 5px solid hsl(46, 65%, 52%);
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,102,51,0.2);
}

.card-title {
    font-size: 16px;
    font-family: 'Oswald', sans-serif;
    color: hsl(345, 100%, 38%);
    margin: 15px 0 10px 0;
    text-align: center;
}

.card-text {
    text-align: center;
}


footer {
    font-family: 'Roboto', sans-serif;
    background-color: hsl(145, 100%, 15%);
    margin-top: 50px;
    width: 100%;
    color: white;
    padding: 30px 0;
    display: flex;
    justify-content: center;
    border-top: 5px solid hsl(46, 65%, 52%);
    text-align: center;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    max-width: 1200px;
    width: 100%;
    padding: 0 30px;
    flex-wrap: wrap;
}

.footer-left, .footer-right {
    width: 48%;
    padding: 15px;
}

.footer-left h3, .footer-right h3 {
    color: hsl(46, 65%, 52%);
    border-bottom: 2px solid hsl(46, 65%, 52%);
    padding-bottom: 10px;
    font-size: 1.3rem;
}

.highlight {
    color: hsl(150, 72%, 81%);
    font-weight: bold;
}


@media only screen and (min-width: 961px) {
    .card {
        width: 45%;
        max-width: 350px;
    }

    .navbar a {
        padding: 15px 20px;
    }
}


@media (max-width: 768px) {
    .title {
        font-size: 2rem;
    }

    .footer-container {
        flex-direction: column;
    }

    .footer-left, .footer-right {
        width: 100%;
        text-align: center;
        margin-bottom: 20px;
    }
}


@media (max-width: 600px) {
    .card-div {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .card {
        width: 90%;
        max-width: 400px;
    }

    .welcome-box {
        width: 95%;
        padding: 20px;
        text-align: center;
    }

    .navbar ul {
        flex-direction: column;
        align-items: center;
    }

    .navbar a {
        padding: 12px 15px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.2);
        border-right: none;
    }

    .navbar li:last-child a {
        border-bottom: none;
    }

    .dz-logo {
        width: 60px;
        height: 60px;
    }

    h1 {
        font-size: 1.5rem;
        padding: 8px 0;
    }

    .general-button {
      font-size: 0.9rem;
      padding: 10px 20px;
    }
    .footer-left h3, .footer-right h3 {
        font-size: 1.1rem;
    }
}


@media only screen and (max-width: 400px) {
    body {
        font-size: 0.95rem;
    }

    .navbar a {
        width: 100%;
    }

    .general-button {
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .title {
        font-size: 1.6rem;
    }

    .message {
        font-size: 1rem;
    }
}
