* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-user-select: none; /* Safari */
  -ms-user-select: none; /* IE 10 and IE 11 */
  user-select: none; /* Standard syntax *//* CSS user-select Property */
  outline: none;
  outline-color: transparent;
  border: none;
  border-color: transparent;
}

/* Global scope */
:root {
  --Black:  hsl(0, 0%, 20%);
  --Maroon: maroon;
  --startColor1: whitesmoke;
  --White: white;
}

html {
  font-size: 16px;
  height: auto; /* It will automatically adjust the height to allow the content to be displayed correctly. */
  text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
  -webkit-text-size-adjust: 100%; /* -webkit- vendor prefix for Safari*/
  -moz-text-size-adjust: 100%;  /* -moz- vendor prefix for Firefox */
  scroll-behavior: smooth; /* To add a smooth scrolling effect to the page. */
  overscroll-behavior: none;
  overflow-x: hidden;
  overflow-y: scroll; /* Add vertical scrollbar */
}

/* Overlay Image | Prevent the image from being downloaded or copied.| Placed over the image */
.overlayImg {/* All photos have an image saver */
  position: relative;
  background-color: transparent;
  z-index: 5; /* z-index only works on positioned elements (position: absolute, position: relative, position: fixed, or position: sticky) and flex items. */
  pointer-events: none; /* The pointer-events property defines whether or not an element reacts to pointer events. | Do not allow copying or downloading an image. */
}

.flexBox {
  display: flex;
  display: -webkit-flex;
  align-items: center; /* Position the flex items in the center, inside the same container.*/
  justify-content: center;
  flex-flow: column nowrap; /* The "flex-direction: column;" stacks the flex items vertically (from top to bottom) */
}

.rowGap {
  row-gap: 2rem;
}

[class*="paragraph"] {
  font: 400 1.2rem/1.5 "Helvetica Neue", sans-serif;
  text-indent: 20px;
  text-align: left;
  letter-spacing: -0.022em;
}

code {
  font-family: Consolas,"courier new";
  color: var(--DarkBlue);
  background-color: #f1f1f1; /* special effect */
  padding: 2px 4px;
  font-size: 105%;
}

/*  To define text with strong importance. */
strong {
  font: 500 1.125rem/1.5 "Helvetica Neue", Helvetica, Arial, sans-serif;
}

/* parenthesis */
.math-left-flattened-parenthesis,
.math-right-flattened-parenthesis {
  font-size: 1.2rem
}

/* div container | flex box 
===========================
===========================*/
#about-positioned-items {
  padding: 32px 16px 128px 16px;
  text-align: center;
  position: relative;
  color: black;
}

/*  Design logo 
===============*/
.container-logo {
  width: 150px;
  height: 150px;
  position: fixed;
  z-index: 1;
  top:50px;
  left:16px;
  color: black;
}

[id="design"]{ 
  display: flex;
  display: -webkit-flex;
  flex-flow: row wrap;
  position: relative;
  width: 116px;
  padding: .6rem;
  background-color: white;
  background-origin: border-box;
  -webkit-background-origin: border-box;
  box-shadow: 5px 5px gray, 10px 10px darkgray, 15px 15px gainsboro;
}

/*  Arial is the most widely used font for both online and printed media; 
  with Helvetic fallback. it covers Windows machines and all Apple machines. */
[class*="keywords"]:nth-of-type(1) {
  font: 400 1.5rem Arial, Helvetica, sans-serif;
  writing-mode: vertical-lr;
}

/*  offsetdiv#design */
/*  The following elements are positioned so that the design looks correct on iPads and iPhones.*/
/*  Georgia is an elegant serif font. */
[class*="keywords"]:nth-of-type(2) {
  font: 500 3rem Georgia, serif;
  height: 4.125rem;
  border-bottom: 10px solid var(--Black);
  position: absolute;
  right: 0.7rem;
}

/*  offsetdiv#design */
[class*="keywords"]:nth-of-type(3) {
  font: 400 1.1rem Georgia, serif;
  letter-spacing: -0.022em;
  position: absolute;
  bottom: 0.7rem;
  right: 0.8rem;
  width: 68px; 
}

/*  heather */
header {/* flex-item */
  width: 100%;
}

.title-section { /* section flexBox */
  font: 900 55px "Brush Script MT", cursive;
  text-transform: capitalize;
  padding: 36px 0 20px 0;
}

.subtitle {
  font: small-caps 400 1.6rem/1.5 "Helvetica Neue", sans-serif;
}

/* main | flex-box */
.main-container {
  position: relative;
  width: 100%;
  max-width: 960px
}

/* figure */
#canvas-with-positionedItems {
  margin: 64px 0;
  position: relative;
  width: 500px;
  height: 400px;
  border: 6px groove CadetBlue;
  outline: 15px solid rgb(239, 250, 235);
  outline-offset: 10px; /*The space between an element and its outline is transparent.*/
  border-radius: 5px;
  background-color: white;
  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
  box-shadow: 0 0 20px 0 hsl(103, 59%, 25%);
}

/* items offset#canvas-with-positionedItems */
#sky {
  position: absolute;
  top: 0;
  width: 100%;
  height: 80%;
  background-color: dodgerblue;
  background-image: radial-gradient(circle at 50% 100%, dodgerblue, dodgerblue 1%, white 3%, white 4%, white 5%, white 10%, #347B98);
}

/* group of clouds */
.move-clouds {
  width: 120px;
  height: 50px;
  position: relative;
}

/* animation: animation-name | animation-durarion | animation-timing-functio | animation-iteration-count */
.group-cloud1 {/* The animation has both a slow start and a slow end.*/
  animation: move-clouds1 30s  ease-in-out infinite;
}

.group-cloud2 {
  animation: move-clouds1 25s  ease-in-out infinite;
}

/* This group without moving. */
.group-cloud3 {
  position: absolute;
  top: 20px;
  left: 20px;
}

@keyframes move-clouds1 {
  0%   {left: 240px; opacity: 0.1;}
  50% { opacity: 1;}
  100% {left: 420px; opacity: 0;}
}

/* clouds */
.first-cloud {
  position: relative;
  top: 5px;
  left: 10px;
  width: 60px;
  height: 20px;
  padding: 10px;
  border-radius: 65% 10%;
  background-color: whitesmoke;
}

.second-cloud {
  position: absolute;
  top: 7px;
  left: 50px;
  width: 50px;
  height: 30px;
  padding: 10px;
  border-radius: 50px 20px;
  background-color: whitesmoke;
}

#earth {
  position: absolute;
  bottom: 0;
  width: 100%;
  height: 21%;
  background-color: #66b032; /* Colors of RYB */
  background-image: radial-gradient(circle at 44% 100%, #F0F7D4,#B2D732 3%,#66b032);
  z-index: 1; /* So that the foot of the mountain is behind. */
}

#mountain {
  position: absolute;
  bottom: 21%;
  left: 15%;
  width: 0;
  height: 0;
  border-bottom: 300px solid SaddleBrown;
  border-left: 175px solid transparent;
  border-right: 175px solid transparent;	
}

#house-elements {
  position: absolute;
  top:38%;
  left: 35%;
  width: 150px;
  height: 160px;
  background-color: white;
  border-radius: 5px 0;
  z-index: 1;
}

#smoke,
#chimney,
#roof,
.offset-house {
  position: absolute;
}

[id*="window"]:not(#window-center){
  width: 15px;
  height: 15px;
  background-color: LightSkyBlue;
  border-radius: 3px;
}

#window-center{
  width: 20px;
  height: 15px;
  background-color: rgba(135, 206, 235,0.5); /*LightBlue*/
  top: 55px;
  left: 65px;
  border-radius: 3px;
}

#window-left-top {
  top: 20px;
  left: 20px;
  transform: rotate(-5deg);
  -webkit-transform: rotate(-5deg);
  border: 1px solid navy;
}

#window-left-bottom {
  top: 70px;
  left: 20px;
}

#window-right-top {
  top: 35px;
  right: 20px;
  border: 1px solid navy;
}

#window-right-bottom {
  top: 70px;
  right: 20px;
  transform: rotate(5deg);
  -webkit-transform: rotate(5deg);
  border-right: 2px solid navy;
}

#door {
  width: 50px;
  height: 85px;
  bottom: 0;
  left: 53px;
  background-color: brown;
  border-radius: 5px 5px 0 0;
}

/* door planks position static */
#one {
  height: 20%;
  background-color: maroon;
  border-radius: 3px 5px 0 0;
}

#two {
  height: 50%;
  background-color: snow;
}

#three {
  height: 30%;
  background-color: peru;
}

#roof {
  top: 24%;
  left: 39.5%;
  width: calc(154px * 0.7071);
  height: calc(154px * 0.7071);
  background-color: #fe2712; /* Colors of RYB */
  transform: rotate(45deg);
  -webkit-transform: rotate(45deg);
  border: 2px solid maroon;
}

#chimney {
  width: 20px;
  height: 40px;
  background-color: darkslategray;
  z-index: 0;
  top: 30%;
  left: 60%;
}

#smoke {
  width: 20px;
  height: 50px;
  top: 19%;
  left: 61%;
  transform: rotate(30deg);
  -webkit-transform: rotate(30deg);
  border-radius: 7px 15px;
}

.smoky-appearance {
  position: relative;
  background-image: linear-gradient(var(--startColor1), transparent);
  animation: gradient 15s ease-in-out infinite;
}

@keyframes gradient {
  0%,
  100% {
    background-image: linear-gradient(var(--startColor1), transparent);
  }

  50% {
    background-image: linear-gradient(transparent, var(--startColor1));
  }
}

#road {
  position: absolute;
  bottom: 0;
  left: 43%;
  width: 30px;
  height: 21%;
  /* The skew() function skews an element along the X and Y-axis by the given angles. */
  transform: skew(-20deg); /* Parallelogram CSS*/
  -webkit-transform: skew(-20deg);
  background-color: maroon;
  background-image: linear-gradient(to right, rgb(128,0,0), rgb(200,0,0), rgb(162, 27, 27));
  z-index: 1;
}

/* an image */
.original-house-design-container {
  width: 104px; /* image width + border */
  position: absolute;
  bottom: 20px;
  right: 20px;
  transform: rotate(-20deg);
  -webkit-transform: rotate(-20deg);
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* This value belongs to w3Schools | to create paper-like cards */
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  border: 2px groove darkorange;
}

#original-house-design {
  display: block;
  width: 100px;
  height: calc(100px * (225/300));
}

/* An alternative for very small screens is to replace the design with an image. */
#fig3,
#fig2 {
  display: none;
}

#fig2{
  border: 10px solid darkkhaki;
}

/* image */
#original-design {
  padding: 10px;
  border: 10px groove antiquewhite;
  background-color: darkkhaki;
  background-origin: border-box;
  -webkit-background-origin: border-box;
  background-clip: padding-box;
  -webkit-background-clip: padding-box;
}

.boxMultipleShadows {
  box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19); /* This value belongs to w3Schools | to create paper-like cards */
  -webkit-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
  -moz-box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2), 0 6px 20px 0 rgba(0, 0, 0, 0.19);
}

/*  For specific use on certain pages. */
/*  blockquote tag 
============================*/
/*  blocquote | with author */
#quote-author {
  font: 600 2rem  "Helvetica Neue", sans-serif;
  text-align: left;
  padding: 1rem;
  margin: 2rem 0 0 0;
}

#quote-author h2 {
  font: 400 1.4rem/1.5  "Helvetica Neue", sans-serif;
  text-align: right;
  padding: 0.5rem 0 0 0;
}

/*  empty span */
.whiteSpace {
  display: inline-block;
  width: .5rem;
  height: .5rem;
  font-size: 1rem;
}

/*  footer 
=======*/
#information {grid-area: info;}
#signature {grid-area: signature;}

[class="authorship"] {
  font: 400 16px/1.5 Helvetica, Arial, sans-serif; /* Web Safe Fonts. */
  display: grid;
  column-gap: 1.7rem;
  grid-template-areas:'info   signature';
  grid-template-columns:  1fr auto;
  grid-template-rows: auto;
  padding: 2rem 1rem;
  color: white;
  background-color: hsl(209, 12%, 35%);
  text-align: right;
  position: relative;
}

#information {
  font-style: normal;
}

#information time {
  color: white;
}

#signature {
  max-width: 100px;
  align-self: center;
  margin: 0 0.7rem 0 0;
}

/*  image */
.responsive {
  display: block;
  width: 100%;
  height: auto;
  margin-inline: auto;
  background-color: white;
  pointer-events: none; /* The pointer-events property defines whether or not an element reacts to pointer events. | Do not allow copying or downloading an image. */
  object-fit: cover;
}

/* button tag to open tab preview */
#open-tab-preview {
  font-size: 16px;
  padding: 6px;
  border-radius: 10px;
  text-indent: 0;
  text-align: center;
  color: black;
  background-color: aliceblue;
  background-image: linear-gradient(180deg, aliceblue, hsl(209, 12%, 35%));
  cursor: pointer;
}

#open-tab-preview:hover {
  background-color: hsl(209, 12%, 20%);
  background-image: linear-gradient(180deg, hsl(209, 12%, 45%), hsl(209, 12%, 20%));
  color: white;
}

@media screen and (max-width: 1084px) {
  .container-logo {
    width: 100%;
    position: relative;
    top: 0;
    left: 0;
    z-index: 0;
  }

  .title-section { /* section flexBox */
    padding: 0 0 20px 0;
  }
}

/*  Responsive layout - when the viewport is between 576px  and 450px.*/
@media (min-width: 450px) and (max-width: 576px) {
  #canvas-with-positionedItems {
    background-color: white;
    width: 400px;
    height: 320px;
    outline: none;
    outline-offset: 0;
    border-radius: 0;
    box-shadow: 0 5px 8px gray;
    margin: 64px 0 0 0;
  }

  #mountain {
    left: 5%;
    bottom: 1%;
  }

  #house-elements {
    top:44.5%;
    left: 32%;
    width: 150px;
    height: 107px;
  }

  #door {
    width: 35px;
    height: 35px;
  }

  #roof {
    top: 27%;
    left: 37.5%;
    width: calc(150px * 0.7071);
    height: calc(150px * 0.7071);
  }

  #smoke {
    top: 20%;
    left: 66%;
    transform: rotate(30deg);
    -webkit-transform: rotate(10deg);
    border-radius: 50% 65%;
  }

  #chimney {
    top: 35%;
    left: 65%;
  }

  #road {
    width: 20px;
  }

  /* an image */
  #fig1 {
    display: none;
  }

  #fig2 {
    display: block;
    max-width: 400px;

  }
  /* group of clouds */
  .group-cloud1 {
    animation: move-clouds 30s  ease-in-out infinite;
  }

  .group-cloud2 {
    animation: move-clouds 25s  ease-in-out infinite;
  }

  @keyframes move-clouds {
    0%   {left: 180px; opacity: 0.1;}
    50% { opacity: 1;color: white;}
    100% {left: 320px; opacity: 0}
  }
}

/*  Responsive layout - when the viewport is between 449px  and 300px.*/
@media (min-width: 300px) and (max-width: 449px) {
  /* figure */
  #canvas-with-positionedItems {
    display: none;
  }

  /* images */
  #fig1 {
    display: none;
  }

  /* An alternative for very small screens is to replace the design with an image. */
  #fig3,
  #fig2 {
    display: block;
  }

  .paragraph {
    text-indent: 0;
  }

  #quote-author {
    padding: 0;
  }

  /*  footer 
    =========*/
  [class="authorship"] {
    column-gap: 1rem;
  }
    
  #signature {
    margin: 0;
  }
}
