@import url('https://fonts.googleapis.com/css2?family=Roboto&display=swap');

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  background: #333;
  color: #fff;
  font-family: 'Roboto', sans-serif;
  overflow-x: hidden;
}

a {
  color: #fff;
  text-decoration: none;
}

/* Navbar */

#navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100px;
}

#navbar h1 {
  padding-left: 2rem;
  font-size: 2em;
}

#navbar h1 span {
  color: #D73C4C;
}

/* Tracker Grid */

.grid-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.25rem;
  background-color: #333;
}

.grid-item {
  height: 200px;
  background: url('./img/red-heart-blue-background.jpg') no-repeat center center/cover;
  background-attachment: fixed;
  transition: 0.3s;
}

.grid-item-inner {
  position: relative;
  width: 100%;
  height: 100%;
  text-align: center;
  transition: transform 1s;
  transform-style: preserve-3d;
}

.grid-item:hover .grid-item-inner {
  transform: rotateY(180deg);
}

.grid-item-front, .grid-item-back {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: absolute;
  width: 100%;
  height: 100%;
  -webkit-backface-visibility: hidden; /* Safari */
  backface-visibility: hidden;
}

.grid-item-back {
  color: white;
  transform: rotateY(180deg);
}

.grid-item h2 {
  padding-bottom: 1rem;
}

i {
  font-size: 1.5em;
}

.img-container {
  background-color: #f4f4f4;
  width: 100%;
  display: grid;
  grid-template-columns: 100px;

}

/* Update Form */
body {
  width: 100vw;
}

#profile h1 {
  text-align: center;
  font-size: 48px;
  margin-top: 4rem;
}

#profile .form-div {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  margin-top: 4rem;
}

#profile .form-div form {
  width: 400px;
  margin-bottom: 4rem;
}

#profile .form-div form .input-div {
  margin-bottom: 1rem;
}

#profile .form-div form label {
  font-size: 26px;
}

#profile .form-div form input {
  width: 100%;
  height: 30px;
  font-size: 20px;
}

#update-btn {
  font-size: 20px;
  padding: 15px;
  cursor: pointer;
  background-color: #D73C4C;
  color: #fff;
  border: none;
  transition: 0.3s;
}

#update-btn:hover {
  background-color: #d42b3c;
}

/* Media Queries */

@media (max-width: 700px) {
  .grid-container {
    grid-template-columns: 1fr;
    gap: 0.25rem;
  }
  .grid-item {
    transition: 0.3s;
  }
  .grid-item:hover {
    cursor: pointer;
    background-color: #333;
  }
}