:root {
  --main-body-color: #F3E2DB;
  --header-bar-color: #2D282C;
  --logo-color-1: #E76F51;
  --logo-color-2: #E97C61;
  --logo-color-3: #2A9D8F;
  --logo-color-4: #264653;
  --logo-color-5: #F4A261;
  --logo-color-6: #E9C46A;
  --font-karla: "Karla", sans-serif;
  --font-inco: "Inconsolata", monospace;
}

.karla {
  font-family: "Karla", sans-serif;
  font-weight: 600;
  font-style: normal;
}

.inco {
  font-family: "Inconsolata", monospace;
  font-weight: 550;
  font-style: normal;
  font-variation-settings:
    "wdth" 100;
}

body {
  background-color: var(--main-body-color);
}

h1 {
  font-family: var(--font-karla);
  font-weight: 660;
  font-style: normal;
  font-size: 30px;
  color: var(--logo-color-4);
}

h2 {
  font-family: var(--font-karla);
}

td {
  font-family: var(--font-inco);
}

th {
  font-family: var(--font-karla);
}

li {
  font-family: var(--font-inco);
}

a {
  font-family: var(--font-inco);
  color: var(--logo-color-4);
  text-decoration: underline;
  transition: text-decoration 0.3s;
}

a.clicked {
  text-decoration: line-through;
}

a:hover, a:focus {
  text-decoration: none;
}

p {
  font-family: var(--font-inco);
  font-weight: 400;
  font-style: normal;
  }

.navigation-list {
  list-style-type: none;
  font-family: var(--font-karla);
  display: flex;
  align-items: center;
  margin: 0;
  padding: 0;
  height: 100%;
  justify-content: flex-end;
}

.navigation-list li {
  margin-left: 15px;
  font-family: inherit;
}

.navigation-list a {
  font-family: var(--font-karla);
  text-decoration: underline; 
  color: var(--main-body-color); 
  transition: text-decoration 0.3s ease;
}

.navigation-list a:hover,
.navigation-list a:focus {
  text-decoration: none;
}

.navigation-list__item--active a {
  text-decoration: none;  
}

.navigation-list__item--active {
  text-decoration: none;
  font-family: inherit;
  font-style: normal;
}

.margin {
  margin-left: 35px;
  margin-right: 35px;
}

.profile_portrait {
  float: left;
  width: 270px;
  margin-right: 30px;
  margin-bottom: 20px;
  border-radius: 50%;
}

.profile {
  max-width: 700px;
  margin: 0 auto;
}

* {
  box-sizing: border-box;
}

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  background-color: var(--header-bar-color);
  margin-bottom: 50px;
}

.page-header__item {
  flex: 0 1 150px;
}

.page-header__item:last-child {
  flex-grow: 1;
  text-align: right;
}

.page-footer {
  clear: both;
  display: flex;
  flex-direction: column;
  text-align: center;
  text-decoration: none;
}

.page-footer a {
  text-decoration: none;
}

ul {
  columns: 2;
}

div.pullUp a:before {
    position: absolute;
    width: 100%;
    height: 2px;
    left: 0px;
    bottom: 0px;
    content: '';
    background: #FFF;
    opacity: 0.3;
    transition: all 0.3s;
}

div.pullUp a:hover:before {
    height: 100%;
}

/* start grid fallback */
.grid__item {
  display: block;
  width: 100%;
 }
 /* end grid fallback */
 
 @supports (display: grid) {
  .grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-gap: 20px;
    margin: 0;
 
  }

  .grid__item {
    background-color: var(--logo-color-6);
    width: 100%;
    margin: 0;
    padding: 20px;
    text-align: center;
    border-radius: 5px;
    transition: transform 0.3s ease; 
    display: block;
  }

  .grid__item:nth-child(5) {
    grid-column: span 1;
    grid-row: 1 / 3;
 }

.grid__item:hover {
  transform: scale(1.05); 
  z-index: 1; 
}

.grid__item:nth-child(2) {
  background-color: var(--logo-color-5);
}

.grid__item:nth-child(3) {
  background-color: var(--logo-color-2);
}

.grid__item:nth-child(4) {
  background-color: var(--logo-color-1);
}

.grid__item:nth-child(5) {
  background-color: var(--logo-color-3);
}

.grid__item:nth-child(6) {
  background-color: #264653;
  color: white;
}

.grid__item:nth-child(6) a {
  color: #E9C46A;
}

.grid__item:nth-child(6) h2 {
  color: white;
}

.grid__item:nth-child(6) p {
  color: white;
}

@keyframes color-change {
  from {
    fill: #edc655;
  }
  to {
    fill: #f76414;
  }
}

@keyframes color-change2 {
  from {
    fill: #a7420b;
  }
  to {
    fill: #4169e0;
  }
}

@keyframes size-change {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.05);
  }
}

.sun {
  animation: 4s color-change infinite alternate linear;
}

.heart {
  animation: 
    color-change2 2s infinite alternate linear,
    size-change 2s infinite alternate linear;
}

@keyframes cloud-move {
  from {
    transform: translate(0, 50px);
  }
  to {
    transform: translate(200px, 50px);
  }
}

.cloud-front {
  animation: 30s cloud-move infinite alternate linear;
}

.cloud-back {
  animation: 34s cloud-move-reverse infinite alternate linear;
}

.button, a.button, button {
  border: none;
  display: inline-block;
  font-family: var(--font-karla);
  background-color: var(--logo-color-3);
  color: white;
  text-decoration: none;
  padding: 10px;
  border-radius: 3px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
  }
  
.button:hover, button:hover,
.button:focus, button:focus {
  cursor: pointer;
  opacity: 0.8;
  }
  
.button__secondary {
  border: none;
  display: inline-block;
  font-family: var(--font-karla);
  background-color: var(--logo-color-5);
  color: #2b2b2b;
  text-decoration: none;
  padding: 10px;
  border-radius: 3px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.3);
  transition: opacity 0.2s;
  }

form-text {
  font-family: var(--font-inco);
}
 }

input, textarea, label {
  font-family: var(--font-karla);
}

/* Below is media query defining multiple screen sizes, leave at bottom of CSS! */
@media all and (max-width: 500px) {
  .grid {
    grid-template-columns: 1fr;
  }
}

@media all and (min-width: 500px) and (max-width: 750px){
  .grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media all and (min-width: 750px) {
  .grid {
    grid-gap: 10px;
    grid-template-columns: 1fr 1fr 1fr;
  }
}
/* End of media query defining multiple screen sizes. */ 