
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: rgba(67, 67, 67, 0.36);
    font-family: Arial, sans-serif;
    color: #000;
}

/* -------------------------------------------------- */
/* HEADER */
header {
    text-align: center;
    background-color: rgba(129, 129, 129, 0.28);
    border-bottom: 1px solid dimgray;
    padding: 10px 0;
}

/* -------------------------------------------------- */
/* MAIN */
main {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px;
}

/* Titels */
h2 {
    display: flex;
    justify-content: center;
    margin-bottom: 15px;
}

/* Links */
a { 
    text-decoration: none;
    color: rgba(255, 255, 255, 0.69);
    background-color: rgb(0, 110, 46);
    padding: 5px 10px;
    transition: background-color 0.3s ease;
}

a:hover {
    background-color: rgb(0, 153, 0);
}

/* -------------------------------------------------- */
/* PROJECTS */
.projects,
.hobbies {
    background-color: gray;
    color: green;
    border: 1px solid black;
    width: 30%;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;  
    text-align: center;
    border-radius: 8px;
}

.hobbies {
    flex-direction: column;
}

/* Hobby items */
.hobbie {
    display: flex;
    flex-direction: column;
}

/* -------------------------------------------------- */
/* BUTTONS */
.buttonclass {
    display: flex;
    flex-direction: column-reverse;
    justify-content: center;
}

button {
    border: 1px solid black;
    background-color: white;
    color: black;
    width: auto;
    margin: auto;
    padding: 5px 10px;
    cursor: pointer;
    transition: all 0.45s ease;
}

button:hover {
    background-color: green;
    color: white;
    box-shadow: 5px 5px 4px #6f6f6f;
}

/* -------------------------------------------------- */
/* IMAGES */
img {
    display: block;
    margin: 10px auto;
    border-radius: 50%;
}

/* -------------------------------------------------- */
/* LISTS */
ul li {
    padding: 10px;
    margin: 10px;
}


/* -------------------------------------------------- */
/* CONTACT PHP */

.contactall {
    background-color: darkgray;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    width: 320px;
}


.contacts {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.2rem;
}


label {
    font-weight: bold;
    color: #333;
    margin-bottom: 0.4rem;
}


input[type="text"],
input[type="email"] {
    padding: 0.6rem;
    font-size: 1rem;
    border: 1px solid #ccc;
    border-radius: 4px;
    outline: none;
    transition: border-color 0.2s ease;
}


input[type="text"]:focus,
input[type="email"]:focus {
    border-color: darkgreen;
}


input[type="submit"] {
    background-color: darkgreen;
    color: white;
    border: none;
    padding: 0.7rem;
    border-radius: 4px;
    cursor: pointer;
    font-weight: bold;
    width: 100%;
    transition: background-color 0.3s ease;
}

input[type="submit"]:hover {
    background-color: green;
}


@media (max-width: 480px) {
    .contactall {
        width: 90%;
        padding: 1.5rem;
    }
}



/* -------------------------------------------------- */
/* FOOTER */
footer { 
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    text-align: center;
    background-color: rgba(129, 129, 129, 0.28);
    border-top: 1px solid dimgray;
    padding: 20px 0;
    position: absolute;
    bottom: 0;
    width: 100%;
}


/* ######################## */

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
}

.topnav {
  overflow: hidden;
  background-color: #333;
}

.topnav a {
  float: left;
  display: block;
  color: #f2f2f2;
  text-align: center;
  padding: 14px 16px;
  text-decoration: none;
  font-size: 17px;
}

.topnav a:hover {
  background-color: #04aa6dd9;
  color: black;
}

.topnav a.active {
  background-color: #04AA6D;
  color: #04aa6d93;
}

.topnav .icon {
  display: none;
}

@media screen and (max-width: 600px) {
  .topnav a:not(:first-child) {display: none;}
  .topnav a.icon {
    float: right;
    display: block;
  }
}

@media screen and (max-width: 600px) {
  .topnav.responsive {position: relative;}
  .topnav.responsive .icon {
    position: absolute;
    right: 0;
    top: 0;
  }
  .topnav.responsive a {
    float: none;
    display: block;
    text-align: left;
  }
}
