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

html {
  font-size: 16px;
  font-family: Arial, Helvetica, sans-serif;
  text-align: center;
  color: #000;
}

body {
  width: 100%;
  min-height: 100vh;
  background-color: #da915e;
  color: #2c1914;
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: space-around;

  background-image: url("horizontal-03-M-1920x1280.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

h1 {
  font-size: 48px;
  font-weight: 600;
  margin-bottom: 0em;
  text-shadow: -2px -2px 1px rgba(256, 256, 256, 0.6),
    1px 1px 0px rgba(64, 64, 64, 0.6), 2px 2px 1px rgba(128, 128, 128, 0.6);
}

h2 {
  line-height: 48px;
  font-size: 32px;
  font-weight: 600;
  padding-bottom: 0.5em;
  text-shadow: -2px -2px 1px rgba(256, 256, 256, 0.6),
    1px 1px 0px rgba(64, 64, 64, 0.6), 2px 2px 1px rgba(128, 128, 128, 0.6);
}

h1,
h2,
p,
div {
  z-index: 3;
  color: #000;
}

p {
  margin: 0em;
  padding: 0.5em;
  font-size: 36px;
  font-weight: 600;
  text-shadow: -2px -2px 1px rgba(256, 256, 256, 0.6),
    1px 1px 0px rgba(64, 64, 64, 0.6), 2px 2px 1px rgba(128, 128, 128, 0.6);
}

.header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100vw;
  flex-basis: 100%;
}

.content {
  border: solid 1px rgba(64, 64, 64, 0.7);
  background-color: rgba(128, 128, 128, 0.9);
  padding: 1em;
  box-shadow: 1px 1px 0px rgba(0, 0, 0, 0.7),
    inset 1px 1px 0px rgba(192, 192, 192, 0.7);
  width: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: stretch;
}

#details {
  width: 100%;
  height: 100%;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px rgba(48, 48, 48, 0.7);
  background-color: rgba(96, 96, 96, 0.7);
  box-shadow: 2px 2px 0px rgba(32, 32, 32, 0.5),
    inset 2px 2px 0px rgba(192, 192, 192, 0.5);
}

.row {
  width: 100%;
  height: 100%;
  flex-basis: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: solid 1px rgba(32, 32, 32, 0.4);
  padding: 0.5em;
  box-shadow: 2px 2px 0px rgba(64, 64, 64, 0.6),
    inset 2px 2px 0px rgba(256, 256, 256, 0.6);
  background-color: rgba(192, 192, 192, 0.7);
}

.title {
  position: relative;
  display: block;
  font-weight: 700;
  font-size: 24px;
  padding: 0.5em;
  text-shadow: 1px 1px rgba(48, 48, 48, 0.4);
}

#x,
#y {
  padding: 0.5em;
  font-size: 36px;
  font-weight: 500;
  text-shadow: 1px 1px 1px rgba(128, 128, 128, 0.5);
  color: rgba(16, 16, 16, 0.8);
}

.fullscreen-image {
  display: block;
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
}

/* Jos laite on pystyssä (esim. kännykän pystytila) */
@media (orientation: portrait) {
  body {
    background-image: url("vertical-03-M-1920x2880.jpg");
  }

  .header {
    flex-direction: column;
  }

  #details {
    flex-direction: column;
  }

  .row {
    flex-direction: row;
    justify-content: space-around;
    padding: 0;
  }
}

/* Jos laite on vaakasuunnassa (esim. tabletti tai kännykkä vaakatasossa) */
@media (orientation: landscape) {
  body {
    background-image: url("horizontal-03-M-1920x1280.jpg");
  }

  .header {
    flex-direction: row;
  }

  #details {
    flex-direction: row;
    height: 30vh;
  }

  .row {
    flex-direction: column;
    justify-content: space-between;
  }
}

@media screen and (min-height: 1000px) and (orientation: landscape) {
  .content {
    padding: 1em;
  }

  #details {
    flex-direction: row;
    max-height: 35vh;
  }

  .row {
    flex-direction: column;
    justify-content: space-between;
    padding: 1em;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 42px;
  }

  p {
    font-size: 48px;
  }

  #x,
  #y {
    font-size: 64px;
  }
}

@media screen and (min-height: 601px) and (max-height: 999px) and (orientation: landscape) {
  .content {
    padding: 0.5em;
  }

  #details {
    flex-direction: row;
    max-height: 40vh;
  }

  .row {
    flex-direction: column;
    justify-content: space-between;
    padding: 0.25em;
  }

  .title {
    font-size: 32px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  p {
    font-size: 32px;
  }

  #x,
  #y {
    font-size: 56px;
  }
}

@media screen and (max-height: 600px) and (orientation: landscape) {
  .content {
    padding: 0.25em;
  }

  #details {
    flex-direction: row;
    max-height: 35vh;
  }

  .row {
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 20px;
  }

  p {
    font-size: 24px;
  }

  #x,
  #y {
    font-size: 36px;
  }
}

@media screen and (max-height: 400px) and (orientation: landscape) {
  #details {
    max-height: 30vh;
  }

  .header {
    justify-content: space-around;
  }

  .title {
    padding: 0;
    font-size: 20px;
    line-height: 30px;
  }

  h1 {
    font-size: 28px;
  }

  h2 {
    font-size: 16px;
    padding-bottom: none;
  }

  p {
    font-size: 24px;
    font-weight: 600;
  }

  #x,
  #y {
    font-size: 28px;
  }
}

/* Jos laite on pystyssä (esim. kännykän pystytila) */
@media screen and (min-width: 1000px) and (orientation: portrait) {
  body {
    background-image: url("vertical-02-L-2400x3600.jpg");
  }

  .title {
    font-size: 36px;
  }

  #x,
  #y {
    padding: 5em;
    font-size: 32px;
  }

  h1 {
    font-size: 56px;
  }

  h2 {
    font-size: 52px;
    padding-bottom: 0.25em;
  }

  p {
    font-size: 42px;
    font-weight: 600;
  }
}

@media screen and (min-width: 601px) and (max-width: 999px) and (orientation: portrait) {
  body {
    background-image: url("vertical-02-L-2400x3600.jpg");
  }

  .title {
    font-size: 32px;
  }

  #x,
  #y {
    padding: 5em;
    font-size: 30px;
  }

  h1 {
    font-size: 54px;
  }

  h2 {
    font-size: 50px;
    padding-bottom: 0.5em;
  }

  p {
    font-size: 36px;
    font-weight: 600;
  }
}

/* Jos laite on pystyssä (esim. kännykän pystytila) */
@media screen and (max-width: 600px) and (orientation: portrait) {
  body {
    background-image: url("vertical-04-S-640x960.jpg");
  }

  .header {
    flex-direction: column;
  }

  .content {
    padding: 0.2em 0.5em 0.5em 0.5em;
    width: 60%;
  }

  #details {
    flex-direction: column;
  }

  .row {
    flex-direction: row;
    flex-basis: 100%;
    width: 100%;
  }

  .title {
    font-size: 26px;
  }

  #x,
  #y {
    padding: 0.25em;
    font-size: 32px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 26px;
    padding-bottom: 0.15em;
  }

  p {
    font-size: 28px;
    font-weight: 600;
  }
}

/* Jos laite on pystyssä (esim. kännykän pystytila) */
@media screen and (max-width: 370px) and (orientation: portrait) {
  body {
    background-image: url("vertical-04-S-640x960.jpg");
  }

  .header {
    flex-direction: column;
  }

  .content {
    padding: 0.1em 0.25em 0.25em 0.25em;
    width: 60%;
  }

  #details {
    flex-direction: column;
  }

  .row {
    flex-direction: row;
    flex-basis: 100%;
    width: 100%;
  }

  #x,
  #y {
    padding: 0.1em;
    font-size: 24px;
  }

  h1 {
    font-size: 32px;
  }

  h2 {
    font-size: 22px;
    padding-bottom: 0;
  }

  p {
    font-size: 20px;
    font-weight: 600;
  }
}

/* <600px, 601px, 768px, 992px, 1200px */
