body {
    background-color: black;
}

/* main2 */

header {
    font-size: 22px;
    font-family: Arial, Helvetica, sans-serif;
    background-color: rgba(0, 0, 0, 0.416);
    align-content: center;
    text-align: center;
    width: 100%;
    height: 40px;
    top: 0%;
    padding-top: 10px;
    z-index: 1000;
    position: fixed;
}

header img {
    width: 90px;
    height: 34px;
    float: left;
    margin-bottom: 12px;
    margin-left: 10px;
}

header a:not(:last-of-type) {
    font-family: arial;
    font-size: 15px;
    text-decoration: none;
    text-align: center;
    color: rgb(23, 90, 14);
    margin: 40px;
}

.button {
    color: black;
    padding: 8px 20px;
    background-color: rgb(23, 90, 14);
    border-radius: 45px;
    float: right;
    text-decoration: none;
    margin-right: 15px;
}

.button1 {
    border: solid black;
    color: black;
    padding: 8px 20px;
    background-color:rgb(23, 90, 14);
    border-radius: 45px;
    text-decoration: none;
    margin-right: 25px;
}

.button2 {
    color: black;
    padding: 8px 20px;
    background-color: rgb(23, 90, 14);
    border-radius: 45px;
    text-decoration: none;
}

main {
    text-align: center;
    height: 475px;
    background-color:  black;
    padding-top: 100px;
    padding-bottom: 120px;
    width: 100%;
} 

main a {
    color: white;
}

.maindiv1 {
    left: 10%;
    position: absolute;
    width: 80%;
    height: 500px;

    display: flex;
}

.maindiv2 {
    width: 65%;
    height: 100%;
    align-items: center;
    text-align: center;
    align-content: center;
}

.maindiv3 {
    display: flex;
    width: 35%;
    right: 0%;
    top: 0%;
    height: 100%;
    position: absolute;
    justify-content: center;
}

a {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
}

nav {
    align-self: center;
    width: 70%;
    background: linear-gradient(135deg, #232323, #4b4b4b);
    align-content: center;
    height: 47px;
    margin: 0 auto;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 20px;
}

nav a {
    padding: 30px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 14px;
    text-decoration: none;
}   

.main_first {
    height: 300px;
    margin: auto;
    text-align: center;
}

.main_first a:first-of-type {
    font-size: 35px;
    color: white;
    text-decoration: none;
}

.main_first div {
    color: black;
    padding: 25px 20px;
    background-color: rgba(0, 0, 0, 0.674);
    width: 200px;
}

.main2 {
    height: 750px;
    margin-top: -150px;
}

.main2 div div {
    border-radius: 10px;
    width: 100%;
    padding-bottom: 20px;
    justify-content: space-around;
    display: flex;
    flex-direction: column;
    padding: 15px;
    border: 1px solid rgb(23, 90, 14);
    background: black;
    min-height: 280px;
}

.main2 h3 {
    color: white;
    font-family: Arial, Helvetica, sans-serif;
    text-align: left; 
    margin-left: 10px;
}

.main2 a:first-of-type {
    font-size: 35px;
}

.divbutton {
    margin: auto;
    border: 1px;
    background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
    border-radius: 30px;
    padding: 7px 40px;
}
 
.userdiv {
    width: 27%;
    background-color: #c7c7c789;
    margin: auto;
    border-radius: 11px;
    height: 230px;
    border: none;
    position: relative;
    padding-top: 35px;
    color: rgb(0, 0, 0);
    gap: 10px;
    background: linear-gradient(50%);
}

/* footer erea */
footer {
    /* border-top: rgb(131, 97, 13) solid 1px; */
    background: linear-gradient(135deg, #000000, #192019a8);
    color: white;
    display: grid;
    justify-content: center;
    align-items: center;
    height: 200px;
    background-color: black;
}

.footer_div1 {
    text-align: center;
    margin: auto;
}

.footer_div2 {
    color: wheat;
    /* display: flex; */
    justify-content: center;
    align-items: center;
    /* gap: 30px; */

    display: grid;
    grid-template-columns: repeat(4, 1fr); /* Default: 4 in a row */
    gap: 10px;
}

.footer_div2 img {
    margin-right: 10px;
}

.footer_div2 a {
    color: white;
    text-decoration: none;
}

@media (max-width: 576px) {

    .footer_div2 {
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        grid-template-rows: repeat(2, auto);   /* 2 rows */
        justify-items: center;
    }

    body {
        width: 100%;
        margin-left: 0%;
        background-color: black;
    }
    .header_media {
        height: 30px;
        left: 0%;
        width: 100%;
        background-color: rgba(0, 0, 0, 0.477);
    }
    .header_media img {
        width: 60px;
        height: 24px;
        margin-top: 1px;
    }
    .header_media a:not(:last-of-type) {
        display: none;
    }
    .button {
        color: black;
        padding: 5px 10px;
        background-color: rgb(23, 90, 14);
        border-radius: 45px;
        float: right;
        text-decoration: none;
        margin-right: 20px;
        font-size: 13px;
    }
    .mainmedia {
        height: 530px;
    }
    .maindiv1 {
        display: flex;
        flex-direction: column;
        flex-wrap: wrap;
        height: 600px;
        position: relative;
        justify-content: center;
    }
    .maindiv2 {
        width: 100%;
        height: 70%;
        position: absolute;
        bottom: 0%;
    }
    .maindiv3 {
        position: absolute;
        height: 29%;
        width: 100%;
        justify-self: center;
    }
    .maindiv3 img {
        width: 170px;
        height: 170px;
    }
    nav {
        height: 300px;
    }
    .divnav {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
    }
    .navhover {
        width: 100%;
    }
    .button23 {
        padding: 9px 25px;
        margin: auto;
    }
    #_1st {
        height: 700px;
    }
    .main_first a:first-of-type {
        font-size: 26px;
    }
    .main_first #text {
        font-size: 15px;
    }
    .main2 {
        margin-top: 30px;
        height: 2300px;
    }
    .main2 a:first-of-type {
    font-size: 26px;
    }
    .main2div1 {
        flex-wrap: wrap;
    }
    .main3 {
        margin-top: 1300px;
        padding-bottom: 670px;
    }
    .main2div2 {
        flex-wrap: wrap;
    }
    .userdiv1 {
        padding-bottom: 570px;
        position: relative;
        flex-wrap: wrap;
        display: block;
        flex-direction: column;
    }

}

@media (max-width: 430px) {
    .main3 {
        margin-top: 1550px;
    }
    .divbutton {
        margin-top: 15px;
    }
    .main2 {
        height: 2400px;
    }
}

@media (max-width: 380px) {
    .main3 {
        margin-top: 1690px;
    }
    .main2 {
        height: 2600px;
    }
}

@media (max-width: 330px) {
    .main3 {
        margin-top: 1750px;
    }
    footer img {
        margin-left: -1px;
    }
    .mainmediadiv {
        margin: auto;
    }
    .button1 {
        padding: 4px 6px;
    }
    .button2 {
        padding: 6px 12px;
    }
    nav {
        margin-top: 80px;
    }
        .main2 {
        height: 2500px;
    }
}
