@import url("_fonts.css");

:root {
  --black: rgb(37, 31, 31);
  --background: rgb(255, 244, 215);
}

/* Body */
body {
  font-family: "VioletSans";
  line-height: 1.3;
  font-size: 1.2rem;
  color: var(--black);
  background-color: var(--background);
  margin: 0;
  
}

/* Titles */
h1,
h2,
h3,
h4,
h5 {
  font-family: "Glacier";
  font-size: 3em;
  margin-block: 0.4em;
  text-align: center;
  line-height: 0.8;
}

h1 {
  font-size: 10rem;
  letter-spacing: -0.07ch;
  line-height: unset;
  margin-top: 0;
}
h2 {
  font-size: 6rem;
  letter-spacing: -0.07ch;
  line-height: unset;
  margin-top: 0;
  margin-top: 0;
}
/* Links */
a {
  color: unset;
}

article > section:not(:last-child) {
  border-bottom: 3px ;
}

article > section > * {
  max-width: 600px;
  margin-inline: auto;
  padding-inline: 1.4rem;
}

/* Header */
header {
  text-align: center;
  margin-bottom: 3rem;
}

header h1 {
  margin-bottom: -3rem;
}

header .subtitle {
  font-size: small;
  display: block;
  margin-inline: auto;
  max-width: 30ch;
}

/* Img reset */
img {
  display: block;
  max-width: 100%;
  width: 100%;
  height: auto;
}

/* Continents */
section.continent {
  max-width: 1000px;
}
section.greek {
  max-width: 200px;
  margin-inline: auto;
}
/* Columns */
div.columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
}

.columns > * {
  outline: 1px ;
}

/* Image container */
.image-container {
  /* display: flex;
  align-items: center;
  justify-content: center; */
}

.image-container > img {
  position: sticky;
  top: 0;
}

.image-swap {
  position: relative;
  display: inline-block;
  overflow: hidden;
  cursor: pointer;
}

.image-swap img {
  width: 100%;
  display: block;
  height: auto;
}

.image-swap .hover-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 180ms ease-in-out, trasnform 180ms ease-in-out;
  z-index: 2;
}
.image-swap:hover .hover-image,
.image-swap:focus .hover-image {
  opacity: 1;
}