@import url("https://fonts.googleapis.com/css2?family=Acme&display=swap");
* {
  margin: 0px;
  padding: 0px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}
:root {
  --purple: rgb(118, 104, 243);
}
nav {
  background: var(--purple);
  height: 10vh;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
#logo {
  margin-left: 15px;
}
#search {
  margin-right: 30px;
}
#search input {
  padding: 10px;
  width: 250px;
  border: 2px solid black;
  border-radius: 15px;
}
#container {
  /* background-color: red; */
  width: 80vw;
  margin: auto;
}
#latestnote {
  margin-top: 20px;
  font-family: Cambria, Cochin, Georgia, Times, "Times New Roman", serif;
  display: flex;
  /* border: 1px solid black; */
  flex-direction: column;
}
#latestnote h1 {
  font-family: "Acme", sans-serif;
  font-size: 40px;
}
#latestnote .topic {
  display: flex;
  margin: 10px;
}
.topic label {
  font-size: 20px;
}
.topic input {
  padding: 3px;
  width: 15%;
  margin-left: 15px;
}
#latestnote textarea {
  max-width: 75vw;
  padding: 20px;
  margin: 15px 2px;
  border-radius: 10px;
  min-height: 8vh;
  border: 0.5px solid black;
  transition: 0.3s;
}
#latestnote textarea:hover {
  border: 2px solid var(--purple);
}
#latestnote button {
  width: 70px;
  background: transparent;
  font-weight: bold;
  border: 2px solid black;
  font-size: 20px;
  margin: 0px 0px 10px 20px;
  border-radius: 8px;
  padding: 1px;
  cursor: pointer;
  transition: 0.8s;
}
#latestnote button:hover {
  background-color: var(--purple);
}
#allnotes {
  margin-top: 10px;
}
#allnotes h1{
  margin: 10px;
}
#notes-grid {
  display: flex;
  flex-wrap: wrap;
  flex-basis: 4;
  /* justify-content: space-between; */

}
.notecard {
  border: 1px solid black;
  /* max-width: 40%; */
  margin:auto 5px;
  margin-bottom: 8px;
  border-radius: 5px;
  padding: 6px;
  overflow: hidden;
  /* float: left; */
}
.notecard .cardtopic {
  font-size: 20px;
}
.notecard .notecardcontent {
  font-size: 18px;
  margin: 10px 2px;
  text-align: justify;
}
.notecard .createdtime {
  font-weight: lighter;
  margin: 20px;
  font-size: 16px;
}
.notecard button {
  float: right;
  margin: 8px 10px 0px;
  padding: 5px;
  width: 60px;
  background: transparent;
  border: 1px solid black;
  border-radius: 8px;
  font-size: 15px;
  width: 70px;
  cursor: pointer;
  transition: 0.5s;
}
.notecard button:hover{
  background-color: var(--purple);
}
