@font-face {
  font-family: "Catamaran-Black";
  src: url("../fonts/Catamaran-Black.ttf");
  font-weight: 900;
}
@font-face {
  font-family: "Catamaran-Extra";
  src: url("../fonts/Catamaran-ExtraBold.ttf");
  font-weight: 800;
}
@font-face {
  font-family: "Catamaran-Bold";
  src: url("../fonts/Catamaran-Bold.ttf");
  font-weight: 600;
}

*{
  margin: 0;
  padding: 0;
}

body{
  background: #F0F0F0;
}

.container{
  max-width: 1140px;
  min-height: 100vh;
  margin: 0 auto;
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.section-devonian{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 170px;
}
.section-devonian > img{
  padding: 10px 0;
}
.section-devonian > h1{
  padding: 10px 0;
  font-family: "Catamaran-Black", sans-serif;
  font-size: 6.3em;
  text-transform: uppercase;
  line-height: 1.1em;
  letter-spacing: 0.4px;
  color: #28303d;
}
.section-devonian > h2{
  padding: 10px 0;
  font-family: "Catamaran-Extra", sans-serif;
  font-size: 2.5em;
  font-weight: 800;
  line-height: 1.1em;
  letter-spacing: 0.4px;
  color: #28303d;
}
.section-devonian > h3{
  padding: 10px 0;
  font-family: "Catamaran-Bold", sans-serif;
  font-size: 1.8em;
  font-weight: 600;
  line-height: 1.1em;
  letter-spacing: 0.4px;
  text-transform: capitalize;
  color: #28303d;
}

.section-devonian > .gammascript-img{
  max-width: 100%;
  padding: 10px 0;
}
.section-devonian > .gammascript-img > a > img {
  width: 100%; /* Add this */
  height: auto; /* Add this */
  object-fit: contain; /* Add this */
  max-height: 480px;
}

/* section-total */

.section-total{
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 56px;
}
.total-title{
  padding: 10px 0;
  font-family: "Catamaran-Extra", sans-serif;
  font-weight: 700;
  font-size: 2.5em;
  letter-spacing: 0.4px;
  line-height: 1.1em;
  color: #28303d;
}
.total-sum{
  padding: 10px 0;
  color: #15A631;
  font-family: "Catamaran-Bold", sans-serif;
  font-size: 12.5em;
  font-weight: bold;
  line-height: 1.2em;
}

/* section-completed */

.section-complete {
  width: 100%;
  margin-top: 70px;
}
.section-complete > h2 {
  font-family: "Catamaran-Bold", sans-serif;
  font-weight: 600;
  font-size: 2.5em;
  text-transform: capitalize;
  letter-spacing: 0.4px;
  line-height: 1.1em;
  text-align: center;
  color: #28303d;
}
.complete-gallery{
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 10px;
  box-sizing: border-box;
}
.gallery-item{
  width: 33%;
  padding: 10px;
  box-sizing: border-box;
}
.gallery-item > a > img{
  width: 100%;
}

/* footer */
footer{
  padding: 10px;
  text-align: center; /* Add this line */
}

footer > h4, a {
  font-family: "Catamaran-Bold", sans-serif;
  font-size: 1.3em;
  font-weight: 600;
  line-height: 1.1em;
  letter-spacing: 0.4px;
  color: #28303d;
  text-decoration: none;
}

@media screen and (max-width: 840px){
  .section-devonian > h1{
    font-size: 5.1em;
  }
  .complete-gallery{
    flex-direction: column;
    align-items: center;
  }
  .gallery-item{
    width: 100%;
  }
}
@media screen and (max-width: 720px){
  .section-devonian > h1{
    font-size: 4em;
  }
}
@media screen and (max-width: 580px){
  .section-devonian > h1{
    font-size: 3.8em;
  }
  .total-sum{
    font-size: 10em;
  }
}
@media screen and (max-width: 512px){
  .section-devonian > h1{
    font-size: 2.8em;
  }
  .total-sum{
    font-size: 7.5em;
  }
  .total-title{
    font-size: 1.8em;
  }
}
@media screen and (max-width: 395px){
  .section-devonian > h1{
    font-size: 2.5em;
  }
  .section-devonian > h2 {
    font-size: 2em;
  }
  .section-devonian > h3 {
    font-size: 1.4em;
  }
  .total-sum{
    font-size: 7em;
  }
  .total-title{
    font-size: 1.7em;
  }
  footer > h4, a{
    font-size: 1.1em;
  }
}
@media screen and (max-width: 360px){
  .section-complete > h2{
    font-size: 2em;
  }
}
@media screen and (max-width: 340px){
  .section-devonian > h1{
    font-size: 2em;
  }
  .section-devonian > h2 {
    font-size: 1.8em;
  }
  .section-devonian > h3 {
    font-size: 1.2em;
  }
  .total-sum{
    font-size: 5.5em;
  }
  .total-title{
    font-size: 1.4em;
  }
  .section-complete > h2{
    font-size: 1.7em;
  }
  footer > h4, a{
    font-size: 1em;
  }
}