:root {
  --blue: #0f2d47;
  --red: #ff5a55;
  --turkis: #1ca5b8;
  --heading-color: rgb(236, 236, 236);
}

* {
  margin: 0;
  padding: 0;
}

*,
*:before,
*:after {
  box-sizing: inherit;
}

html {
  font-family: Lato, sans-serif;
  font-size: 24px;
  background-color: rgba(255, 255, 255, 0.959);
}

.card__text p {
  line-height: 1.5;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2rem;
}

h3 {
  font-size: 1.5rem;
}

header h2 {
  letter-spacing: 1.5px;
}

h1,
h2,
h3,
h4 {
  font-family: Roboto, sans-serif;
}

body {
  width: 100%;
}

.border {
  position: fixed;
  top: 0;
  left: 0;
  border: 2vw solid var(--blue);
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  z-index: 0;
}

@media (max-width: 1000px) {
  .border {
    border: none;
  }
}

.protection {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 10;

  background-color: rgba(255, 255, 255, 0.25);
}

header {
  position: relative;
  margin-bottom: 2rem;
  width: 100%;
  height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;

  color: var(--heading-color);
  font-family: Roboto, sans-serif;
  box-shadow: 0 3px 3px rgba(26, 26, 26, 0.568);
}

.header-title,
.header-subtitle {
  z-index: 100;
  text-shadow: 2px 2px #1f1f1f;
  margin: 0 1rem;
}

header > img {
  position: absolute;
  opacity: 0.8;
}

/*-------------------------------------
 * MAIN STUFF
-------------------------------------*/

main {
  display: flex;
  flex-direction: column;
  align-content: center;
  justify-content: center;
  align-items: center;
}

.card {
  display: flex;
  flex-direction: column;
  align-items: center;
  max-width: 100%;
  /* OPTIONAL */
  /* box-shadow: 0 0 10px rgb(26, 26, 26);
  border-radius: 2px;
  padding: 0 20px; */
}

.card > h2 {
  margin: 0 0.5rem 1rem;
}

.card__video {
  width: 100%;
}

.card__text {
  flex: 1;
}

.card__image {
  flex: 1;
}

.card__iframe {
  margin: 0 10px;
  position: relative;
  overflow: hidden;
  padding-top: 56.25%;
  width: 100%;
}

iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.larger {
  flex: 4;
}

img.blur {
  filter: blur(8px);
  -webkit-filter: blur(8px);
  -moz-filter: blur(8px);
  -ms-filter: blur(8px);
  -o-filter: blur(8px);
}

img {
  width: 100%;
  box-shadow: 0 0 10px rgb(26, 26, 26);
  border-radius: 2px;
  transition: filter 1.5s ease-in-out;
}

.full-width {
  opacity: 0.8;
}

.no-shadow {
  box-shadow: none;
}

.student-text {
  text-align: center;
}

.student-img {
  width: 80%;
  margin-bottom: 1rem;
}

.show-all {
  width: 100%;
}

.share {
  height: 100%;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
}

.share li {
  display: inline-block;
  margin: 1rem;
  width: 1.5rem;
  height: 1.5rem;
  background-size: 1.5rem 1.5rem;
  opacity: 0.5;
  /* fela texta */
  text-indent: 100%;
  white-space: nowrap;
  overflow: hidden;
}

.share .gmail {
  background-image: url(img/gmail.png);
}

.share .linkedin {
  background-image: url(img/linkedin.png);
}

.share li:hover {
  opacity: 1;
}

/*-------------------------------------
 * FOOTER
-------------------------------------*/

footer {
  background-color: var(--blue);
  padding: 8px 0;
  min-height: 70px;
  width: 100%;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-around;
  font-family: Roboto, sans-serif;
  margin-top: 100px;
}

.rights {
  font-size: 1.2rem;
  letter-spacing: 1.5px;
  color: var(--heading-color);
  font-weight: 700;
}

@media (max-width: 1025px) {
  main {
    padding: 2rem;
  }

  header {
    height: auto;
  }

  .card {
    flex-direction: column;
    align-items: stretch;
  }

  .card.verkefnid .card__image {
    order: 1;
  }

  .card.verkefnid .card__text {
    order: 2;
  }

  .card__text,
  .card__iframe {
    margin: 1rem 0.5rem;
  }

  .card__iframe {
    width: 95%;
    padding-top: 53.4375%;
    margin-left: auto;
    margin-right: auto;
  }

  hr {
    width: 90%;
    border-top: 1px solid grey;
    margin: 1rem 0;
  }

  .card__about {
    flex-direction: column;
    max-width: 100%;
    padding: 1rem;
  }

  .students {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-top: 0.5rem;
  }

  .student {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 1rem 0;
  }

  .student-img {
    width: 50%;
  }

  .student-sep {
    width: 20%;
    margin: 1rem auto;
  }

  header {
    height: 70vh;
    margin-bottom: 10vh;
  }

  header > img {
    object-fit: cover;
    height: 70vh;
  }
}

@media (max-width: 801px) {
  html {
    font-size: 18px;
  }

  main {
    padding: 0;
  }

  .student-img {
    width: 70%;
  }

  .card__image {
    text-align: center;
  }

  .no-shadow {
    width: 90%;
  }
}

@media (max-width: 401px) {
  html {
    font-size: 16px;
  }
}

@media (min-width: 1025px) {
  .card {
    margin: 3rem auto;
  }

  .card__image {
    margin: 1rem 0;
  }

  .card__image > img {
    object-fit: cover;
    max-height: 60vh;
    min-height: 50vh;
  }

  .card__image > img.small {
    min-height: 30vh;
  }

  .position {
    object-position: 50% 40%;
  }

  .card.info > .card__text {
    width: 70%;
  }

  .card > h2 {
    width: 70%;
  }

  .card__about > h2 {
    text-align: center;
  }

  .card.verkefnid {
    flex-direction: row;
  }

  .card__image {
    order: 1;
  }

  .show-all {
    width: auto;
  }

  .card__text {
    order: 2;
  }

  .card.verkefnid .card__image {
    order: 2;
    margin: 0 2rem;
  }

  .card.verkefnid .card__text {
    order: 1;
    margin: 0 2rem;
  }

  .card__about {
    flex-direction: column;
  }

  .students {
    display: flex;
    justify-content: space-between;
    margin-top: 3rem;
    align-content: stretch;
    padding-right: 2rem;
    padding-left: 2rem;
  }

  .student {
    width: 25%;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .student-text {
    margin-top: 1rem;
    text-align: left;
  }

  .student-sep {
    margin: 100px auto;
  }
}

@media (max-width: 1300px) {
  .card.info > .card__text {
    width: 80%;
  }

  .card > h2 {
    width: 80%;
  }
}

@media (max-width: 1100px) {
  .card.info > .card__text {
    width: 90%;
  }

  .card > h2 {
    width: 90%;
  }
}
