*, 
*:before, 
*:after{
    box-sizing: border-box;
}
html{
    font-size: 16px;
}
body{
    margin: 0;
    padding:0;
    background-color: rgb(97, 97, 97);
    font-family: 'Roboto', sans-serif;
    text-align: center;
}

body > header {
    width: 100%;
    height: 4.0rem;
    background-color: rgb(34, 29, 29);
    position: fixed;
    color: white;
}

.header-container {
    width: 60.0rem;
    display: flex;
    justify-content: space-between;
    margin: 0 auto;
    /* padding-top: 1.2rem; */
}

.header-container > div {
    height: 4.0rem;
    line-height: 4.0rem;
}

main {
    padding-top: 7.0rem;
}

.main-background {
    height: 8rem;
    align-items: center;
}

.home-page{
     background-color: rgb(171, 162, 162);
     height: auto;
     width: 60.0rem;
     margin: 0 auto;
     padding: 2.0rem;
}

.project-page{
     background-color: white;
     height: 30.0rem;
     width: 60.0rem;
     margin: 0 auto;
     /* height: auto; */ /* for boxsite*/
}

/* .project-container{
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
} */

.project-card{
    background-color: rgb(81, 72, 72);
    padding: 1.0rem;
    height: 16.0rem;
    margin-top: 2.0rem;
    width: 99.5%;
    border-radius: 5px;
    justify-items: center;
}

.hideAll{
    display: none;
}

.pointer{
    cursor: pointer;
}

.project-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  justify-content: center;   /* centers grid horizontally */
  align-content: center;     /* centers grid vertically */
}

/*  Skills PAGE */
.skills {
    height: 8rem;
    background-color:  rgb(81, 72, 72);
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 25px;
}

/* Contact ME PAGE */
.contact-me {
    height: 8rem;
    background-color:  rgb(81, 72, 72);
    width: 100%;
    margin: 0 auto;
    padding: 2rem;
    margin-top: 25px;

}

/* Footer */
.footer {
    width: 100%;
    height: 4rem;
    background-color: #282c34;
    color: gray;
    line-height: 4rem;
    text-align: center;
    margin-top: 55px;
    /* position: fixed; */
}

.response-container{
    display: none;
} 

/* Container */
.form-container {
    max-width: 420px;
    margin: 0 auto;
    padding: 20px;
}

/* Headings */
h1 {
    text-align: center;
    font-weight: 500;
    margin-bottom: 20px;
}

/* Form */
form p {
    margin: 0 0 15px;
}

label {
    font-size: 14px;
    margin-bottom: 5px;
    display: block;
}

input,
textarea {
    width: 100%;
    padding: 10px;
    border: 1px solid #ddd;
    outline: none;
    border-radius: 4px;
    font-size: 14px;
    background: #fafafa;
}

input:focus,
textarea:focus {
    border-color: #000;
}

/* Button */
#send-form {
    background: #000;
    color: #fff;
    border: none;
    cursor: pointer;
    transition: 0.2s;
    border-radius: 4px;
}

#send-form:hover {
    background: #333;
}





/* .project-card {
  padding: 24px;
  background: #f4f4f4;
  border: 1px solid #ddd;
  border-radius: 10px;
  text-align: center;
  font-family: 'Roboto', sans-serif;
} */



@media (max-width: 1024px) {
    .header-container,
    .home-page,
    .project-page {
        width: 90%;
    }


    .project-container {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 768px) {
    body > header {
        height: auto;
        padding: 1rem;
        text-align: center;
    }


    .header-container {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: auto;
    }


    .header-container > div {
        height: auto;
        line-height: normal;
        padding: 0.5rem 0;
    }


    .project-container {
        grid-template-columns: 1fr;
    }


    .Skills,
    .Contact,
    .About-me {
        padding: 1rem;
        height: auto;
    }


    .footer {
        height: auto;
        line-height: normal;
        padding: 1rem;
    }
}


@media (max-width: 480px) {
    html {
        font-size: 14px;
    }


    .header-container {
        width: 100%;
        padding: 0 1rem;
    }


    .header-container > div {
        font-size: 0.9rem;
    }


    .project-card {
        height: auto;
    }
}
