* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  margin: 5px;
  padding: 10px;
}

nav.navbar {
  background: #fff;
  box-shadow: 12px 6px 8px rgba(0, 0, 0, 0.2);
  padding: 10px;
  text-align: right;
}

a {
  text-decoration: none;
  font-size: 12px;
  font-family: sans-serif;
  padding: 5px;
}

ul {
  display: flex;
  flex-direction: row;
  justify-content: flex-end;
}

li {
  list-style: none;
  display: inline;
}

li a {
  color: #000;
}

li a:hover {
  background: #333;
  color: #fff;
  border-radius: 4px;
}

/* Section */
section {
  background: #fff;
  box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  padding: 10px;
  display: flex;
  align-items: center;
}

img {
  width: 150px;
  height: 150px;
  margin-right: 20px;
  margin: 10px;
  border-radius: 4px;
  cursor: pointer;
}

@keyframes pulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.1);
  }
  100% {
    transform: scale(1);
  }
}

img:hover {
  animation-name: pulse;
  animation-duration: 1s;
  animation-iteration-count: 1;
}

div.profil {
  flex: 1;
  order: 1;
  text-align: left;
  padding: 10px;
}

div.detail {
  flex: 2;
  order: 2;
  text-align: left;
  padding: 10px;
}

.profil p,
h3 {
  margin-bottom: 10px;
}

a.primary-link,
h3,
p {
  margin: 5px;
}

.primary-link {
  background-color: #007bff;
  color: white;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 4px;
  cursor: pointer;
}

.primary-link:hover {
  background-color: #fff;
  border: 1px solid black;
  color: black;
  cursor: pointer;
}

.secondary-link {
  background-color: #fff;
  color: black;
  padding: 5px 10px;
  border-radius: 4px;
  text-decoration: none;
  border: 1px solid black;
  cursor: pointer;
}

.secondary-link:hover {
  background-color: #007bff;
  color: white;
  border: none;
  cursor: pointer;
}

/* form */
.form {
  background: #fff;
  box-shadow: 0px 2px 16px rgba(0, 0, 0, 0.2);
  padding: 20px;
}

input {
  width: 100%;
  padding: 10px;
}

button.submit {
  width: 100%;
  color: white;
  background-color: forestgreen;
  padding: 10px;
  cursor: pointer;
}

button.submit:hover {
  background-color: darkslategray;
}

/* Menu toogle */
/* Hamburger Menu */
.menu-toggle {
  display: none;
  flex-direction: column;
  height: 20px;
  justify-content: space-between;
  position: relative;
}

.menu-toggle input {
  position: absolute;
  width: 40px;
  height: 28px;
  left: -5px;
  top: -3px;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}

.menu-toggle span {
  display: block;
  width: 28px;
  height: 3px;
  background-color: #333;
  border-radius: 3px;
  transition: all 0.5s;
}

/* Hamburger Menu Animation */
.menu-toggle span:nth-child(2) {
  transform-origin: 0 0;
}

.menu-toggle span:nth-child(4) {
  transform-origin: 0 100%;
}

.menu-toggle input:checked ~ span:nth-child(2) {
  background-color: white;
  transform: rotate(45deg) translate(-1px, -1px);
}

.menu-toggle input:checked ~ span:nth-child(4) {
  background-color: white;
  transform: rotate(-45deg) translate(-1px, 0);
}

.menu-toggle input:checked ~ span:nth-child(3) {
  opacity: 0;
  transform: scale(0);
}

/* Responsive web design */
@media (min-width: 321px) and (max-width: 400px) {
  nav.navbar {
    text-align: center;
    max-width: 100%;
    padding: 10px;
  }

  .menu-toggle {
    display: flex;
  }

  nav.navbar ul {
    position: absolute;
    right: 0;
    top: 0;
    width: 25%;
    height: 1050px;
    position: fixed;
    justify-content: flex-start;
    flex-direction: column;
    align-items: center;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 2;
    transform: translateX(100%);
    transition: all 1s;
    opacity: 0;
  }

  nav.navbar ul.slide {
    opacity: 1;
    transform: translateX(0);
  }

  body {
    overflow-x: hidden;
  }

  ul {
    display: flex;
    flex-direction: row;
    text-align: center;
    justify-content: center;
  }

  li a:hover {
    background: #333;
    color: #fff;
    border-radius: 4px;
  }

  a {
    font-size: 9px;
    color: #fff;
    font-weight: normal;
  }

  li {
    margin-bottom: 20px;
  }

  section {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  img {
    margin-right: 0;
    margin-bottom: 10px;
  }

  div.profil,
  div.detail {
    text-align: center;
    padding: 10px 0;
  }
}
