header {
  position: absolute;
  height: 53px;
  left: 0;
  right: 0;
  background-color: #562b81;
}

body {
  background-color: #f0f0f0;
  font-family: "Proza Libre", sans-serif;
}

.navbar {
  width: 772px;
  margin: 0 auto;
}

nav ul li {
  display: inline-block;
  margin-right: 15px;
}

a {
  text-decoration: none;
  color: white;
}

.navbar-unordered-list {
  padding: 0;
  position: relative;
}

.nav-code-journal {
  font-size: 20px;
}

.nav-new-button {
  position: absolute;
  right: 0;
  top: 50px;
  background-color: #562b81;
  padding: 5px 13px 4px;
  border: none;
  border-radius: 4px;
}

form {
  color: #292929;
}

.new-entry {
  font-size: 25px;
  line-height: 0;
  margin: 0;
  padding-top: 53px;
}

.entries {
  font-size: 25px;
  line-height: 0;
  margin: 0;
  padding-top: 15px;
}

img {
  width: 100%;
  height: 330px;
  object-fit: cover;
  border-radius: 4px;
  margin-bottom: 30px;
}

.text-in-form {
  margin-bottom: 10px;
}

#title,
#photo-url,
#notes {
  width: 100%;
  border: 1px solid #b6b6b6;
  border-radius: 4px;
  margin-bottom: 25px;
}

input:focus,
textarea:focus {
  outline: #562b81 2px solid;
}

#title,
#photo-url {
  height: 35px;
}

.save-button {
  text-align: right;
  position: relative;
}

.save-button-detail {
  color: white;
  background-color: #562b81;
  padding: 7px 15px;
  border: none;
  border-radius: 4px;
  margin-bottom: 30px;
}

.delete-entry-button {
  position: absolute;
  left: 0;
  color: #df4141;
  border: none;
  text-decoration: underline;
}

.entries-unordered-list {
  list-style-type: none;
  padding: 0;
  margin: 0;
  margin-bottom: 50px;
}

.h3-and-newbutton-unordered-list {
  list-style-type: none;
  padding: 0;
  padding-top: 15px;
  margin: 0;
  margin-top: 15px;
}

.no-entries {
  text-align: center;
  margin-top: 60px;
}

.placing-icon {
  position: relative;
}

.edit-icon {
  position: absolute;
  right: 3px;
  top: 15px;
  color: #562b81;
}

h2 {
  margin-top: 0;
}


.hidden {
  display: none;
}

.popup {
  background-color: rgb(0 0 0 / 50%);
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.popup-wrapper {
  text-align: center;
  background: white;
  border-radius: 4px;
  width: 340px;
  height: 120px;
  margin: 30% auto;
}

.confirm-text {
  margin-top: 30px;
  font-size: 15px;
}

.buttons-wrapper {
  display: flex;
  justify-content: space-between;
  margin: 30px 5px 0;
}

.cancel-button {
  border: none;
  border-radius: 4px;
  background-color: #b6b6b6;
  padding: 5px 8px;
}

.confirm-button {
  border: none;
  border-radius: 4px;
  color: white;
  background-color: #dc2626;
  padding: 5px 8px;
}


/* ----- media query -----  */

@media screen and (min-width: 768px) {
  .container {
    max-width: 820px;
  }

  .new-entry {
    padding: 53px 13px;
    padding-bottom: 0;
  }

  .container2 {
    max-width: 820px;
    padding: 45px 35px;
    padding-bottom: 5px;
  }

  .container3 {
    max-width: 820px;
  }

  .column-full,
  .column-half {
    padding: 0 0.75rem;
  }

  .column-half {
    width: 50%;
  }

  .nav-code-journal {
    padding: 0 0.75rem;
  }

  .h3-and-newbutton-unordered-list {
    padding: 15px 12px 0 0;
  }
}

@media screen and (max-width: 768px) {
  .navbar {
    width: 527px;
  }

  .container2 {
    padding: 45px 24px;
    padding-bottom: 5px;

  }

  .buttons-wrapper {
    margin: 25px 18px 0;

  }
}

/* mobile screen */
@media screen and (max-width: 420px) {
  body {
    width: 100%;
  }

  .navbar {
    width: 327px;
  }

  img {
    height: 300px;
  }

  .popup-wrapper {
    margin: 60% auto;
  }
}
