@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');

/* http5222 Assignment 1 - Peter Slempers */

/* Table of Contents */
/* 1. Header */
/* 2. Body */
/* 3. Forms */
/* 4. Footer */


html{
  scroll-behavior: smooth;
  scroll-padding-top: 6em;
}

/* 1 Header */
header {
  display:grid;
  grid: auto / 1fr 1fr;
  align-items: center;
  background-color: #111;
  border-bottom:solid 1px #000;
  box-shadow:
    0 5px 5px purple,
    inset 0 0 10px 5px #222;
  top:0;
  margin:0;
  padding:5px;
  position:sticky;
  z-index: 1000;
}

h2 {
  padding-left: 10px;
}

ul {
  display:flex;
  flex-flow: row wrap;
  justify-content: space-evenly;
  align-items: center;
  margin:0;
  padding:0;
}

a {
  color:magenta;
  text-decoration: none;
  height:100%;
  width:100%;
  padding:0;
  margin:0;
}
a:hover {
  color: purple;
}

li {
  list-style: none;
  margin:0;
}

/* 2. Body */
body {
  font-family:Montserrat, sans-serif;
  color:#fff;
  background-color:#222;
  margin:0;
  padding:0;
}

.page-title {
  text-align: center;
}
.anchorLinks {
  display:flex;
  flex-flow: row wrap;
  justify-content: center;
  text-align: center;
}

.dashboardGrid {
  display:grid;
  grid: auto / 1fr 1fr;
  justify-items: center;
  align-items: center;
  gap:10px;
  margin: 10px;
}

.Card {
  text-align: center;
  border: solid 1px #000;
  border-radius: 5px;
  box-shadow: 5px 5px 5px #111;
  padding-bottom:10px;
  width:100%;
  transition: 0.5s;
}
.Card:hover {
  transform: translatey(5px);
  box-shadow: 5px 1px 5px #111;
}
#addNew {
  display:flex;
  justify-content: center;
  align-items: center;
  /* box-shadow: 5px 5px 5px #111; */
  font-size:x-large;
  font-weight: 700;
  height:100%;
  width:100%;
  padding:0;
  margin:0;
  transition:0.5s;
}
#addNew:hover {
  color: purple;
  box-shadow: 
    5px 1px 5px #111,
    inset 0 0 10px 5px purple;
}


/* 3. Forms */
input {
  width:100%;
  height: 2em;
  color:#fff;
  background-color: #444;
  font-size:large;
  font-family: Montserrat, sans-serif;
}

.form-content {
  padding: 2em;
}

#createNew {
  display:flex;
  flex-flow: column wrap;
  flex: 0 0 1;
  justify-content: center;
  align-items: left;
  width: 60%;
}
.old-and-new {
  display:grid;
  grid: 1fr / 1fr 1fr;
}

#updateExsiting {
  display:flex;
  flex-flow: column wrap;
  flex: 0 0 1;
  justify-content: center;
  align-items: right;
  width: 60%;
}

.form-group {
  padding: 10px;
}

button {
  all:unset;
  display:flex;
  justify-content: center;
  align-items: center;
  padding: 10px;
  width: 100%;
  border: solid 1px #000;
  box-shadow: 0 5px 5px #111;
  border-radius: 5px;
  transition:0.5s;
}
button:hover {
  transform: translateY(3px);
  box-shadow: 
  0 1px 5px #111;
}

/* 4. Footer */
footer {
  padding: 50px;
}