
@import url("./font-face.css");

html{
  font-size: 16px;
}

body {
  margin: 0;
  background: #f4ebe4;
  color: #706860; /* text color */
  font-family: 'Rubik Variable';
  font-style: italic;
  display: flex;
  flex-direction: column;
  height: auto;
  /* justify-content: center;*/
  align-items: center;
}

.wrapper {
  display: flex;
  min-height: 100vh;
  min-width: 100vw;
}

.a_title {
  font-size: 3.5rem;
  max-width: 50vw;
  margin: auto;
  margin-top: 3vh;
  margin-bottom: 3vh;
  text-align: center;
  font-weight: 450;
}

.a_img {
  width: 60vw;
}

.a_author {
  font-size: 2rem;
  margin-left: 33vw;
  text-align: left;
}
.a_body {
  width: 100vw;
}
.a_body p {
  margin: auto;
  margin-bottom: 1em;
  font-style: normal;
  font-size: 2rem;
  font-weight: 300;
  max-width: 35%;
}

.a_body li {
  margin: auto;
  margin-bottom: 1em;
  font-style: normal;
  font-size: 2rem;
  font-weight: 300;
  max-width: 35%;
}



.content {
  display:flex;
  flex-direction: column;
  align-items: center;
  margin-top: calc(1vh + 3px + 5em);
  font-style: normal;
}

.intro-text{
    text-align: center;
    font-size: 10rem;
    font-weight: 400;
    overflow: visible;
    margin: auto;
    white-space: nowrap;
    justify-content: center;
    align-items: center;
    user-select: none;
    opacity: 0;
}
.intro-text.active{
    animation: fadeIn 20s;
    opacity: 1;
}
@keyframes fadeIn {
    0% {opacity: 0;}
    100% {opacity: 1;}
}


.navbar {
  display: flex;
  position: fixed;
  background: #f4ebe4;
  justify-content: space-around;
  list-style: none;
  padding: 0;
  border: 3px solid #706860;
  border-radius: 10px;
  margin: 1vh 0% 0% 0%;
  max-width: 70%;
  min-width: 30%;
  opacity: 0;
  z-index: 1000;
}

.navitem {
  text-decoration: none;
  display: block;
  padding: 1em;
  color: #706860;
  font-style: normal;
  font-size: 1.5em;
  user-select: none;
}

.navitem.current {
  font-weight: bolder;
}

.navbar a:hover {
  font-style: italic;
}


a.navitem.current:hover{
  font-style: normal;
}

.navbar.active{
  animation: fadeIn 5s;
  opacity:1;
}

.navbar.noanim{
  opacity:1;
}

.spacer {
  opacity: 0;
  user-select: none;
}

.notfound {
  margin-top: 20%;
}

.blurb {
  font-style: normal;
  font-size: 2rem;
  font-weight: 300;
  width: 50%;
}


.card-container {
  display: grid;
  margin: auto;
  margin-top: calc(2vh + 3px + 5em);
  grid-template-columns: repeat(auto-fill, minmax(330px, 1fr));
  grid-gap: 20px;
  justify-content: center;
  width: min(95%, 1100px);
}

.card {
  border: 3px solid #706860;
  border-radius: 10px;
  display: block;
  /* grid-template-rows: max-content auto 1fr; */
  /* make sure this works: */
  position: relative;
}

.card img {
  object-fit: cover;
  width: 100%;
  height: 460px;
  margin:auto;
  overflow: hidden;
  border-radius: 5px 5px 0px 0px;
  margin-bottom: 10px;
}

.card h2 {
  margin: auto;
  padding: 0.5rem;
  text-align: center;
}

.card .content {
  margin: 1rem 1rem 1rem 1rem;
}

.card footer {
  color: #706860; /*text color of icons*/ 
  display: flex; 
  align-items: center;
}
.card span {
  margin-right: 0.5rem;
}

.card-link {
  position:absolute;
  width:100%;
  height:100%;
  top:0;
  left:0;
  z-index: 1;
}

/* Two columns on desktop */
@media (min-width: 768px) {
  .card-container {
    grid-template-columns: repeat(2, minmax(330px, 1fr));
  }

}

@media (max-width: 1000px) {
  .a_body p {
    width: 80vw;
    max-width: 80vw;
  }
  .a_title {
    max-width: 90vw;
  }
  .a_img {
    min-width: 80vw;
    max-width: 100vw;
  }
  .blurb {
    width: 80vw;
  }
  html{
    font-size:24px;
  }
}


/* mobile specific styles  BUG: not working in the mobile view in firefox but it does work when resizing the window to be smaller...?: this is a problem with how firefox gives info on the width of things. you just have to test on a real device.*/

/*@media all and (max-width: 600px) {
  .navbar a {
      color: red;
  } 
}*/



