/*
=============== 
FONTS/COLOURS/ADDITIONAL
===============
*/

@import url('https://fonts.googleapis.com/css2?family=Permanent+Marker&family=Oswald:wght@200;300;400&family=Rampart+One&display=swap');

:root {
  --green: rgb(11, 48, 0);
}

main {
  display: flex;
  flex-direction: column;
  padding: 0 10%;
}

.pencil {
  width: 12vw;
  position: absolute;
}

/*
=============== 
LIST TITLE
===============
*/

.app-title{
  font-family: 'rampart one', display;
  font-size: 5vw;
  text-align: center;
}

.blinking-cursor {
  font-size: 5vw;
  font-family: sans-serif;
  -webkit-animation: 1s blink step-end infinite;
  -moz-animation: 1s blink step-end infinite;
  -ms-animation: 1s blink step-end infinite;
  -o-animation: 1s blink step-end infinite;
  animation: 1s blink step-end infinite;
}

@keyframes blink{
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-moz-keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-webkit-keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-ms-keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}

@-o-keyframes blink {
  from, to {
    color: transparent;
  }
  50% {
    color: black;
  }
}



/*
=============== 
BUTTONS
===============
*/

button.edit-btn {
  width: 1.5vw;
  margin-top: 0.5vw;
}

.delete-img {
  width: 2.5vw;
  margin-left: 0.8vw;
}

div.btn-container button {
    border: none;
    background: none;
    padding: 0;
}

div.btn-container {
  display: flex;
  align-items: flex-start;
}

div.btn-container button:hover {
    cursor: pointer;
}

.btn {
  text-transform: uppercase;
  background: transparent;
  padding: 0.375rem 0.75rem;
  display: inline-block;
  font-size: 0.875rem;
  border: 2px solid black;
  cursor: pointer;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}
.btn:hover {
  color: white;
  background: black;
}


.edit-btn,
.delete-btn {
  background: transparent;
  border-color: transparent;
  cursor: pointer;
  font-size: 0.7rem;
  margin: 0 0.15rem;
}

.clear-btn {
  text-transform: capitalize;
  width: 10rem;
  height: 1.5rem;
  display: grid;
  align-items: center;
  background: transparent;
  border-color: transparent;
  color: rgb(255, 130, 130);
  margin: 0 auto;
  font-size: 0.85rem;
  font-family: 'oswald', sans-serif;
  cursor: pointer;
  margin-top: 1.25rem;
}
.clear-btn:hover {
  color: rgb(255, 65, 65);
}

.submit-btn {
  background: rgb(0, 0, 82);
  color: white;
  border-color: transparent;
  flex: 0 0 5rem;
  display: grid;
  align-items: center;
  padding: 0.25rem;
  text-transform: capitalize;
  letter-spacing: 3px;
  cursor: pointer;
  font-size: 0.95rem;
  font-family: 'oswald', sans-serif;
}


.submit-btn:hover {
  background-color: rgb(100, 100, 218);
}


/*
=============== 
 LIST
===============
*/

/* Items */

.list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.5rem;
  padding: 0.75rem 1rem;
  text-transform: capitalize;
}
.list-item:hover {
  color: grey;
  background: rgb(53, 53, 53);
}
.list-item:hover .title {
  color: grey;
}
.title {
  margin-bottom: 0;
  color: white;
  font-family: 'Permanent marker', cursive;
  letter-spacing: 2px;
}

/* List */

.list-container {
  margin-top: 2rem;
  visibility: hidden;
  background-color: var(--green);
  padding: 3vw 1vw 3vw 2vw;
}
.show-container {
  visibility: visible;
}

/*
=============== 
ALERTS
===============
*/

.alert {
  margin-bottom: 1rem;
  height: 1.25rem;
  display: grid;
  align-items: center;
  text-align: center;
  font-size: 0.7rem;
  font-family: 'oswald', sans-serif;
  border-radius: 0.25rem;
  text-transform: capitalize;
}
.alert-danger {
  color: #721c24;
  background: #f8d7da;
}
.alert-success {
  color: #155724;
  background: #d4edda;
}

/* Form */
.list-form h3 {
  margin-bottom: 1.5rem;
  text-align: center;
}
.form-control {
  display: flex;
  justify-content: center;
  margin-top: 30px;
}
#list-input {
  padding: 0.25rem;
  padding-left: 1rem;
  border-color: black 0.5px solid;
  font-size: 1rem;
  flex: 1 0 auto;
  color: grey;
  font-family: 'oswald', sans-serif;
}
#list-input::placeholder {
  color: grey;
}

/*
=============== 
Media Queries
===============
*/
@media screen and (min-width: 800px) {
  h1 {
    font-size: 4rem;
  }
  h2 {
    font-size: 2.5rem;
  }
  h3 {
    font-size: 1.75rem;
  }
  h4 {
    font-size: 1rem;
  }
  body {
    font-size: 1rem;
  }
  h1,
  h2,
  h3,
  h4 {
    line-height: 1;
  }
}

@media screen and (min-width: 992px) {
  .section-center {
    width: 95vw;
  }
}
