@import url('https://fonts.googleapis.com/css2?family=Itim&family=Roboto:wght@300;500&display=swap');

:root {
  --heading-font: 'Itim', cursive;
  --primary-color: #f1962e;
  --secondary-color: #5e8497;
  --error-msg-background: #ffd2d2;
  --error-msg-color: #d8000c;
  --success-msg-background: #dff2bf;
  --succes-msg-color: #4f8a10;
  --info-msg-background: #bde5f8;
  --info-msg-color: #00529b;
}
* {
  margin: 0;
  box-sizing: border-box;
  padding: 0;
  font-family: 'Roboto', sans-serif;
}
body {
  background: #0f2027; /* fallback for old browsers */
  background: -webkit-linear-gradient(
    to right,
    #2c5364,
    #203a43,
    #0f2027
  ); /* Chrome 10-25, Safari 5.1-6 */
  background: linear-gradient(
    to right,
    #2c5364,
    #203a43,
    #0f2027
  ); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */

  color: var(--primary-color);
}footer {
  margin: 0 auto;
  justify-content: center;
  display: flex;
  align-items: center;
  position: absolute;
  bottom: 20px;
  left: 40%;
}
footer a {
  color: var(--primary-color);
  text-decoration: none;
}
.logo {
  font-family: var(--heading-font);
  letter-spacing: -3px;
  margin: 30px;
  font-size: 3.5em;
}
.header {
  display: flex;
}
.header p {
  font-size: 1.5em;
  margin-left: 35px;
  font-weight: 500;
  width: 65%;
}

#messageBanner {
  width: 75%;
  justify-content: center;
  align-items: center;
  margin-left: 30px;
  margin-top: 10px;
  border-radius: 15px;
  padding: 10px;
  font-weight: bold;
}
.error {
  background: var(--error-msg-background);
  color: var(--error-msg-color);
  display: block;
  transition: 0.2s;
}
.success {
  background: var(--success-msg-background);
  color: var(--succes-msg-color);
  display: block;
  transition: 0.2s;
}
.info {
  background: var(--info-msg-background);
  color: var(--info-msg-color);
  display: block;
  transition: 0.2s;
}
.searchArea {
  position: relative;
  width: 30%;
  height: 35px;
  margin: 25px auto 0;
}

.searchArea input {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  font-size: 20px;
  padding-right: 67px;
  padding-left: 15px;
  background: transparent;
  line-height: 1.2em;
}
input:focus {
  outline: none;
}

.fa-times {
  font-size: 1.5em;
}
.clearSearchBtn {
  position: absolute;
  width: 20px;
  height: 20px;
  top: 6px;
  right: 32px;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  cursor: pointer;
  z-index: 2;
  border: none;
  border-right: 1px dashed var(--primary-color);
  padding-right: 25px;
  transition: 0.5s;
  color: red;
}
.display {
  display: none;
}

.fa-search {
  font-size: 1.3em;
}

.searchBtn {
  position: absolute;
  width: 30px;
  height: 30px;
  top: 1.5px;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
  z-index: 2;
  border: none;
  transition: 0.5s;
}
.searchBtn:hover {
  transform: translateY(-5px);
}

.nominationWrapper h2 {
  margin: 30px;
  font-size: 2em;
  font-family: var(--heading-font);
}

.liText {
  width: 70%;
  padding-right: 5px;
}
.isNominated {
  cursor: not-allowed;
  pointer-events: none;
  background: lightgrey;
  float: right;
  border-radius: 10px;
  border: none;
  width: 100px;
  height: 25px;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.nominateBtn {
  background: gold;
  float: right;
  border-radius: 10px;
  border: none;
  width: 100px;
  height: 25px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-weight: bold;
}

.nominateBtn:hover {
  box-shadow: 0 8px 16px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  transform: translateY(-5px);
}
.nominateBtn:focus {
  outline: none;
}
.nominateBtn:disabled {
  cursor: not-allowed;
  pointer-events: none;
  background: lightgray;
}
.resultsWrapper {
  width: 30%;
  margin: 10px auto;
}

li {
  border-bottom: 1px dotted var(--primary-color);
  border-radius: 3px;
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.3);
  display: flex;
  align-items: center;
  width: 100%;
  padding: 15px 10px;
  margin: 5px 0;
  z-index: 100;
}
ul {
  background: rgba(0, 0, 0, 0.5);
  margin: auto;
  position: absolute;
  height: 225px;
  width: 30%;
  list-style: none;
  padding: 0;
  overflow: auto;
  overflow-y: scroll;
  z-index: 100;
}
ul::-webkit-scrollbar {
  width: 0.25rem;
}
ul::-webkit-scrollbar-track {
  background: var(--secondary-color);
}
ul::-webkit-scrollbar-thumb {
  background: var(--primary-color);
}
.nominationRow {
  width: 95%;
  margin: 20px auto 10px auto;
  display: flex;
  flex-wrap: wrap;
  padding-right: 20px;
}
.card {
  width: 15%;
  height: 250px;
  margin: 0 20px 20px 15px;
  box-shadow: 4px 4px 4px 4px rgba(0, 0, 0, 0.6); /* this adds the "card" effect */
  border-radius: 15px;
  border-width: 2px;
  border-color: var(--primary-color);
  border-style: solid;
  text-align: center;
  transition: 0.25s;
  z-index: 1;
}
.card:hover {
  transform: translateY(-20px);
}

.card button {
  float: left;
  border: none;
  width: 100%;
  transition: 0.3s;
  justify-content: center;
  align-items: flex-end;
  background: red;
  color: white;
  padding: 5px 10px;
  border-top-left-radius: 15px;
  border-top-right-radius: 15px;
  text-transform: uppercase;
}
.card button:hover {
  letter-spacing: 1.5px;
}
.card button:focus {
  outline: none;
}
.card img {
  margin: 10px;
  width: 85%;
  height: 110px;
  border-radius: 8px;
}
.card p {
  padding: 0 2px;
}

.createCard {
  -webkit-animation: fadein 2s; /* Safari, Chrome and Opera > 12.1 */
  -moz-animation: fadein 2s; /* Firefox < 16 */
  -ms-animation: fadein 2s; /* Internet Explorer */
  -o-animation: fadein 2s; /* Opera < 12.1 */
  animation: fadein 2s;
}

@keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Firefox < 16 */
@-moz-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Safari, Chrome and Opera > 12.1 */
@-webkit-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Internet Explorer */
@-ms-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* Opera < 12.1 */
@-o-keyframes fadein {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@media (max-width: 768px) {
  .logo {
    font-size: 3em;
  }

  .header p {
    font-size: 1.2em;
  }
  #messageBanner {
    width: 90%;
  }
  .searchArea {
    width: 40%;
  }
  .searchArea input {
    font-size: 17px;
    line-height: 1.1em;
  }

  .nominationWrapper h2 {
    font-size: 1.75em;
  }

  .resultsWrapper {
    width: 40%;
  }
  ul {
    width: 40%;
  }
  .nominationRow {
    width: 90%;
  }
  .card {
    width: 30%;
  }
  .card button {
    height: 35px;
  }
}
@media (max-width: 480px) {
  .logo {
    font-size: 2.5em;
  }

  .header p {
    font-size: 0.85em;
  }
  #messageBanner {
    font-size: 0.65em;
  }
  .searchArea {
    width: 55%;
  }
  .searchArea input {
    font-size: 15px;
  }
  .fa-search {
    font-size: 1.1em;
  }

  .nominationWrapper h2 {
    font-size: 1.5em;
  }
  .resultsWrapper {
    width: 55%;
  }
  ul {
    width: 55%;
  }
  .nominationRow {
    width: 95%;
  }
  .card {
    width: 40%;
  }
}
