/* General */
@import url('https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,100..900;1,100..900&display=swap');

* {
    margin: 0;
    padding: 0;
}

   
body {
  font-family: "Raleway", sans-serif;
  font-optical-sizing: auto;
  font-weight: 500;
  font-style: normal;
}

html {
    scroll-behavior: smooth;
}

p {
    color: black;
}

/* TRANSITION */

a, .btn {
    transition: all 300ms ease;
}

/* DESKTOP NAV */
nav, .nav-links {
    display: flex;
}

nav {
    justify-content: space-between;
    align-items: center;
    height: 15vh;
    padding: 10px 30px;
}
.nav-links {
    gap: 4rem;
    list-style: none;
    font-size: 1.5rem;
}

a {
    color: #2c2a2a;
    text-decoration: none;
    text-decoration-color: white;
}

a:hover {
    color: #6a6a6a;
    text-decoration: underline;
    text-underline-offset: 1rem;
    text-decoration-color: rgb(182, 181, 182);
}
.logo {
    font-size: 2rem;
    display: flex;
    align-items: center;
}
.logo:hover {
    cursor: default;
}
.logo-img {
    width: 60px;
    height: 60px;
    border-radius: 100%;
    margin-right: 10px;
}

/* HAMBURGER MENU */
#hamburger-nav {
    display: none;
}

.hamburger-menu {
    position: relative;
    display: inline-block;
}

.hamburger-icon {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 24px;
    width: 30px;
    cursor: pointer;
}

.hamburger-icon span {
    width: 100%;
    height: 2px;
    background-color: black;
    transition: all 0.3 ease-in-out;
}

.menu-links {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: white;
    width: fit-content;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3 ease-in-out;
}

.menu-links a {
    display: block;
    padding: 10px;
    text-align: center;
    font-size: 1.5rem;
    color: black;
    text-decoration: none;
    transition: all 0.3 ease-in-out;

    
}

.menu-links li {
        list-style: none;
}

.menu-links.open {
    max-height: 300px;
}

.hamburger-icon.open span:first-child {
    transform: rotate(45deg) translate(10px, 5px);
}
.hamburger-icon.open span:nth-child(2) {
    opacity: 0;
}
.hamburger-icon.open span:last-child {
    transform: rotate(-45deg) translate(10px, -5px);
}

.hamburger-icon span:first-child {
    transform: none;
}
.hamburger-icon span:first-child {
    opacity: 1;
}
.hamburger-icon span:first-child {
    transform: none;
}

#contact {
    display: flex;
    flex-direction: row;
    gap: 30px;
    padding: 100px 200px;
    margin-bottom: 70px;
}

#about-me {
    width: 60%;
}

hr {
    border: 1px solid;
}
.mail {
    text-decoration: underline;
    color: red;
}
.mail:hover {
    color: #6a6a6a;
    text-decoration: underline;
    text-underline-offset: 0.3rem;
    text-decoration-color: rgb(182, 181, 182);
}

/* Style inputs with type="text", select elements and textareas */
input[type=text], select, textarea {
  width: 300px; /* Full width */
  padding: 12px; /* Some padding */ 
  border: 1px solid #ccc; /* Gray border */
  border-radius: 4px; /* Rounded borders */
  box-sizing: border-box; /* Make sure that padding and width stays in place */
  margin-top: 6px; /* Add a top margin */
  margin-bottom: 16px; /* Bottom margin */
  resize: vertical /* Allow the user to vertically resize the textarea (not horizontally) */
}

/* Style the submit button with a specific background color etc */
input[type=submit] {
  background-color: #04AA6D;
  color: white;
  padding: 12px 20px;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}

/* When moving the mouse over the submit button, add a darker green color */
input[type=submit]:hover {
  background-color: #45a049;
}


.form {
    display: flex;
    flex-direction: column;
}
/** FOOTER **/
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 20px;
    margin-top: 90px;
}

/*
#portfolio {
    display: flex;
    width: 80%;
    flex-wrap: wrap;
    padding: 40px 50px;
    border: 1px solid red;
    margin: auto;
    gap: 5px;
    justify-content: space-between;
}
.portfolio-img {
    width: 400px;
}
.portfolio-img-wide {
    height: 400px;
}*/
#portfolio {
    display: flex;
    width: 100%;
    margin: auto;


}
.row {
  display: flex;
  flex-wrap: wrap;
  margin: auto;
  justify-content: center;
}

/* Create four equal columns that sits next to each other */
.column {
  flex: 25%;
  max-width: 25%;
  padding: 0 4px;
}

.column img {
  margin-top: 8px;
  vertical-align: middle;
  width: 100%;
}

/* Responsive layout - makes a two column-layout instead of four columns */
@media screen and (max-width: 800px) {
  .column {
    flex: 50%;
    max-width: 50%;
  }
}

/* Responsive layout - makes the two columns stack on top of each other instead of next to each other */
@media screen and (max-width: 600px) {
  .column {
    flex: 100%;
    max-width: 100%;
  }
}