body {
  background-image: linear-gradient(#0f2027,#203a43,#2c5364);
  background-size: cover;
  background-attachment: fixed;
  width: 100%;
  height: 100vh;
  scroll-behavior: smooth;
  min-width: 720px;
}

html {
  scroll-behavior: smooth;
}

div {
font-family: 'Chewy', cursive;
color:hsla(198, 38%, 28%, 1);
font-size: 1.2em;
}

#logo img {
  position: fixed;
  top: -1vh;
  margin-left: 2em;
  height: 13vh;
  width: 43vh;
  border-radius: 0;
  object-fit: contain;
  z-index: 3;
}

#logo img:hover {
cursor: pointer;
}

/* Navigation */
#nav-menu {
position: fixed;
top: 0;
left: 0;
width: 100vw;
height: 13vh;
background-color: hsl(199, 42%, 13%);
z-index: 2;
min-width: 720px;
}

li {
  position: relative;
  float: right;
  padding: 1em;
  margin-right: 2em;
}

li li {
  float: none;
}

ul ul {
  position: absolute;
  height: 0vh;
  margin: 1em 0 0 -4em;
  transition: height .5s ease-out;
  overflow: hidden;
  background-image: linear-gradient(#14272e,#213c45) ;
  border-radius: .5em;
  text-align: center;
}

ul {
  list-style: none;
}

li:hover ul {
  height: 15em;
}

li:hover {
  cursor: pointer;
}

/* Homepage */
#homepage {
  display: grid;
  grid-template:
  "image     . "
  "image welcome"
    /1fr  1fr 
  ;
  width: 90%;
  height: 500px;
  margin: 100px auto;
  scroll-margin: 130px 0 0 0; 
}

#welcome-message{
  grid-area: welcome;
  color: hsla(199, 40%, 28%, 1);
  height: 500px;
  margin: auto 5vw;
  margin-top: 8vh;
}

/* Image Carousel */
#slideshow{
 height: 300px;
 grid-area: image ;
 display: flex;
 margin: 10vh auto;
}

button {
  font-size: 2em;
  font-weight: bold;
  color: hsla(17, 80%, 55%, 1);
  height: 400px;
  background-color: hsla(17, 80%, 65%, 0);
  border-style: none;
}

#frame {
  width: 425px;
  height: 500px;
  overflow: hidden ;
}

#frieze {
  display: flex;
  height: 500px;
  width: 400%;
  transition: transform .75s ease-in; 
}

img {
  height: 400px;
  width: 400px;
  margin: .35em;
  border-radius: 50% 50% 50% 50%;
  object-fit: cover;
}

/*About*/
#about {
  display: grid;
  width: 90%;
  height: 500px;
  margin: 150px auto;
  scroll-margin: 100px 0 0 0; 
  grid-template:
    "title ."
    " about me "
    / 1fr  1fr
    ;
}

#about-title{
  margin-left: 5vw;
  grid-area: title;
}

#about-text {
 font-size: 1em;
 font-family: Verdana;
 grid-area: about;
 color: hsla(199, 40%, 28%, 1);
 margin-left: 5vw;
 margin-top: 8vh;
}

#me{
  grid-area: me;
  margin: auto 5vw;
}

/*Contact*/
#contact {
  display: grid;
  margin: 150px auto;
  width: 90%;
  grid-template:
    "contactme  .   ."
    "cf    cf     ."
    ;
  height: 500px;
  scroll-margin: 80px 0 0 0; 
} 

#contact-title {
    margin-left: 5vw;
    grid-area: contactme;
}

#contact-form {
  grid-area: cf;
  margin: auto 5vw;
}

input[type=text], select {
  width: 100%;
  padding: 12px 20px;
  margin: 8px 0;
  display: inline-block;
  border: 1px solid #ccc;
  border-radius: 4px;
  box-sizing: border-box;
}

input[type=submit] {
  width: 100%;
  background-color:hsla(17, 80%, 55%, 1);
  color: white;
  padding: 14px 20px;
  margin: 8px 0;
  border: none;
  border-radius: 4px;
  cursor: pointer;
}
input[type=submit]:hover {
  background-color: hsla(17, 80%, 65%, 1); ;
}

/*Portfolio*/
#portfolio {
  display: grid;
  height: 500px;
  width: 90%;
  grid-template:
    "title .       .       "
    "art design photography" 
     /1fr   1fr   1fr 
    ;
  text-align: center;
  align-items: center;
  margin: 150px auto;
  scroll-margin: 80px 0 0 0; 
}

.body-text {

  text-align: left;
  transition: all 1s linear ;
}

#port-title {
    margin-left: 5vw;
    grid-area: title;
}


#digital-art {
  scroll-margin: 240px 0 0 0; 
  text-align: center;
  position: relative;
  grid-area: art;
  margin-left: 5vw;
}
#graphic-design {
  scroll-margin: 240px 0 0 0; 
  text-align: center;
  position: relative;
  grid-area: design;
}
#photography {
  scroll-margin: 240px 0 0 0; 
  text-align: center;
  position: relative;
  grid-area: photography;
  margin-right: 5vw;
}

#portfolio img {
 width: 250px;
 height: 250px;
 transition: box-shadow .25s ease-out;
}
#art-text,
#graphic-text,
#photo-text {
  font-size: 1.5em;
  font-family: 'Chewy', cursive;
  color: hsla(17, 80%, 55%, 1);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transition: color .5s ease-in, text-shadow .25s ease-out;
}

.portfolio {
  position: absolute;
  display: none;
  background-color: hsla(17, 80%, 65%, 1);
  top: 200vh;
  height: 400px;
  width: 90%;
  border-radius: .5em;
  z-index: 1;
}

.close {
  position: absolute;
  top: -1em;
  left: 80vw;
  width: 10px;
  height: 10px;
  margin-right: 1em
}

/*Portfolio Image Carousel*/
.p-photos {
 height: 400px;
 display: flex;
 justify-content: center;
 align-items: center;
}

.portfolio button {
  font-size: 2em;
  font-weight: bold;
  color: white;
  height: 200px;
  border-style: none;
}

.p-frame {
  width: 700px;
  height: 400px;
  overflow: hidden;
}

.carousel {
  display: flex;
  align-items: center;
  height: 400px;
  width: 500%;
  transition: transform .75s ease-in; 
}

#portfolio .portfolio img {
  height: 200px;
  width: 200px;
  margin: .40em;
  object-fit: cover;
  transition: transform .2s;
}
#portfolio .portfolio img:hover {
  transform: scale(2);
  object-fit: contain;
  border-radius: 0;
}

/*Hover*/
#portfolio img:hover{
 cursor: pointer;
 text-shadow: 0px 8px 10px #000000;
}
#photography:hover, #graphic-design:hover, #digital-art:hover {
 text-shadow: 0px 8px 10px #000000;
 color: hsla(17, 80%, 65%, 1);
 cursor: pointer;
}

a {
  text-decoration: none;
  color: hsla(17, 80%, 55%, 1);
  transition: color 1.5s ease-in;
  transition: text-shadow .25s ease-out 0s;
}

ul a:hover, li a:hover {
 text-shadow: 0px 8px 10px #000000;
 color: hsla(17, 80%, 65%, 1);
}

button:hover {
 cursor: pointer;
 text-shadow: 0px 8px 10px #000000;
 color: hsla(17, 80%, 65%, 1);
}
footer {
background-color:hsl(199, 42%, 13%);
height: 20%;
width: 100%;
}