/* reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* base styles */
body {
  font-family: "Roboto", sans-serif;
}

ul,
ol {
  list-style: none;
}

a {
  text-decoration: none;
  color: #55286f;
}

img {
  margin: 1rem 0;
}

/* table styles */
table {
  display: table;
  border-collapse: collapse;
  margin-top: 2rem;
}
table,
th,
td {
  border: 1px solid black;
}

td {
  padding: 0.5rem 0.25rem;
}

/* text styles */
h1,
h2,
h3,
h4,
h5,
h6 {
  color: #55286f;
  margin: 1rem 0;
  letter-spacing: 1.5px;
}

p {
  max-width: 100ch;
  line-height: 1.5;
  color: #605b56;
  letter-spacing: 0.75px;
}

/* */
.wrapper {
  width: 80%;
  margin: 0 auto;
}

/* header */
.main-header {
  display: flex;
  height: 70vh;
  background: url("./background.jpg") center/cover no-repeat #c0c0c0;
  margin-bottom: 1.5rem;
}

.main-nav {
  display: flex;
  justify-content: space-between;
  width: 80%;
  margin: 0 auto;
  height: 10vh;
  align-items: center;
}

.logo {
  display: flex;
  flex: 1;
}

.nav-links {
  display: flex;
  justify-content: space-between;
  flex: 2;
}

.nav-link > a {
  color: #55286f;
}

.nav-link > a:hover {
  color: #55286f;
  border-bottom: 1px solid #55286f;
}

/*  */
.main {
  display: flex;
  justify-content: space-between;
  flex-direction: row;
  flex-wrap: nowrap;
}

article,
aside {
  max-width: 80%;
  margin: 0 auto;
}

aside {
  flex: auto;
  max-width: 20rem;
}

/* media query for big screens */
@media screen and (min-width: 30rem) {
  body {
    display: flex;
    flex-direction: column;
    margin: 0 auto;
  }
  main {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
    width: 80%;
    margin: 0 auto;
  }
  nav,
  header {
    order: -1;
  }
  article {
    flex: 75%;
    padding-right: 2rem;
  }
  aside {
    flex: 25%;
  }
}

/* footer */
.main-footer {
  margin-top: 1rem;
  height: 10vh;
  width: 100%;
  background: #c0c0c0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  bottom: 0;
  top: auto;
}
