/* Custom properties/variables  */
:root {
  --main-white: #D6D5A8;
  --main-red: #816797;
  --main-blue: #51557E;
  --main-gray: #1B2430;
  --main-ligntgray: #393e46;
}

/* Base reset */
* {
  margin: 0;
  padding: 0;

}

/* box-sizing and font sizing */
*,
*::before,
*::after {
  box-sizing: inherit;
}

html {
  min-width: 380px;
  box-sizing: border-box;

  /* Set font size for easy rem calculations
   * default document font size = 16px, 1rem = 16px, 100% = 16px
   * (100% / 16px) * 10 = 62.5%, 1rem = 10px, 62.5% = 10px
  */
  font-size: 62.5%;
  scroll-behavior: smooth;
}

/* A few media query to set some font sizes at different screen sizes.
 * This helps automate a bit of responsiveness.
 * The trick is to use the rem unit for size values, margin and padding.
 * Because rem is relative to the document font size
 * when we scale up or down the font size on the document
 * it will affect all properties using rem units for the values.
*/

/* I am using the em unit for breakpoints
 * The calculation is the following
 * screen size divided by browser base font size
 * As an example: a breakpoint at 980px
 * 980px / 16px = 61.25em
*/



/* Base styles */

body {
  font-family: Tahoma, sans-serif;
  font-size: 1.8rem; /* 18px */
  font-weight: 400;
  line-height: 1.4;
  color: var(--main-white);
  min-width: 280px;
}

h1,
h2 {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  font-weight: 700;
  text-align: center;
}

h1 {
  font-size: 6rem;
}

h2 {
  font-size: 4.2rem;
}

ul {
  list-style: none;
}

a {
  text-decoration: none;
  color: var(--main-white);
}

img {
  display: block;
  width: 100%;
}

/* nav */

.nav {
  display: flex;
  justify-content: flex-end;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: var(--main-red);
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.4);
  z-index: 10;
}

.nav-list {
  display: flex;
  margin-right: 2rem;
}



.nav-list a {
  display: block;
  font-size: 2.2rem;
  padding: 1.5rem;
}

.nav-list a:hover {
  background: var(--main-blue);
}

/* Welcome section */

.welcome-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
  /* height: 100vh; */
  background-color: #000;
  background-image: linear-gradient(62deg, #3a3d40 0%, #181719 100%);

}

.welcome-section > p {
  font-size: 3rem;
  font-weight: 200;
  font-style: italic;
  color: var(--main-red);
  padding: 5% 10%;
}

.resume-title-image {
  /* border: 1px solid lightgrey; */
  height: 400px;
  width: 400px;
  background-image: url(img/jeff2_50.png);
  background-size: 350px;
  background-repeat: no-repeat;
  /* border-radius: 50%; */
  background-position: 50%;
  margin-top: 10%;
}

/* Projects section */

.projects-section {
  text-align: center;
  padding: 2rem 2rem;
  background: var(--main-blue);
}

.projects-section-header {
  max-width: 640px;
  margin: 0 auto 6rem auto;
  border-bottom: 0.2rem solid var(--main-white);
}


.projects-grid {
  display: flex;
  /* flex-wrap: wrap; */
  flex-direction: column;
  justify-content:space-around;
  width: 100%;
  max-width: 1280px;
  max-width: 800px;
  margin: 0 auto;
}

.main-panel{
  width: 100%;
  margin-bottom: 20px;
  padding-top: 20px;
  display:flex;
  justify-content:space-around;
  align-items: center;

}

.main-panel:nth-child(odd) {

}

.main-panel:nth-child(even) {
  flex-direction: row-reverse;
}

.front-panel{
  width: 49%;
  margin-top: 10px;
}

.back-panel{
  width: 40%;
  background: var(--main-ligntgray);
  padding: 15px;
  margin-bottom: 20px;
}
.project {
  background: var(--main-gray);
  box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
  border-radius: 2px;

}

.code {
  color: var(--main-lightgray);
  transition: color 0.3s ease-out;
}

.project:hover .code {
  color: #ff7f50;
}

.project-image {
  height: calc(100% - 6.8rem);
  width: 100%;
  object-fit: cover;
}

.project-title {
  font-size: 2rem;
  padding: 2rem 0.5rem;
}

.btn {
  display: inline-block;
  padding: 1rem 2rem;
  border-radius: 2px;
}

.btn-show-all {
  font-size: 2rem;
  background: var(--main-gray);
  transition: background 0.3s ease-out;
}

.btn-show-all:hover {
  background: var(--main-red);
}

.btn-show-all:hover > i {
  transform: translateX(2px);
}

.btn-show-all > i {
  margin-left: 10px;
  transform: translateX(0);
  transition: transform 0.3s ease-out;
}

/*  about section */ 

.faq-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  padding: 38px 10%;
  background: var(--main-gray);
}

.faq-content{
  width: 100%;
  max-width: 800px;
  position: relative;

}
.faq-section-header{
  margin-bottom: 2rem;
}
/* Style the buttons that are used to open and close the accordion panel */
.accordion {
  background-color: var(--main-ligntgray);
  cursor: pointer;
  padding: 18px;
  width: 100%;
  text-align: left;
  border: none;
  outline: none;
  transition: 0.4s;
  color: var(--main-white);
  border-bottom:rgba(0, 0, 0, 0.4) 1px solid;
  border-bottom: var(--main-white) 1px solid;

}

/* Add a background color to the button if it is clicked on (add the .active class with JS), and when you move the mouse over it (hover) */
.active, .accordion:hover {
  background-color: var(--main-ligntgray);
}
.accordion:hover {
  cursor: hand;
}
.accordion-down{
  position: absolute;
  right: 10px;
}
/* Style the accordion panel. Note: hidden by default */
.panel {
  padding: 18px 18px;
  background-color: var(--main-white);
  display: none;
  /* overflow: hidden; */
  width: 100%;
  color: var(--main-blue);
  text-align: left;
  
}

/* Contact section */

.contact-section {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  width: 100%;
  height: 30vh;
  padding: 0 2rem;
  background: var(--main-gray);
}

.contact-section-header > h2 {
  font-size: 6rem;
}


.contact-section-header > p {
  font-style: italic;
}

.contact-links {
  display: flex;
  justify-content: center;
  width: 100%;
  max-width: 980px;
  margin-top: 4rem;
  flex-wrap: wrap;
}

.contact-details {
  font-size: 2.4rem;
  text-shadow: 2px 2px 1px #1f1f1f;
  transition: transform 0.3s ease-out;
}

.contact-details:hover {
  transform: translateY(8px);
}

/* Footer */

footer {
  font-weight: 300;
  display: flex;
  justify-content: space-evenly;
  padding: 2rem;
  background: var(--main-gray);
  border-top: 4px solid var(--main-red);
}

footer > p {
  margin: 2rem;
}

footer i {
  vertical-align: middle;
}

/* 1200px / 16px = 75em */
@media (max-width: 75em) {
  html {
    font-size: 60%;
  }
  .main-panel{
    /* width: 45%; */
  }  
}

/* 980px / 16px = 61.25em */
@media (max-width: 61.25em) {
  html {
    font-size: 58%;
  }
  h1 {
    font-size: 4rem;
  }
  .projects-section-header {
    font-size: 3rem;
  }
  .main-panel:nth-child(even) {
    flex-direction: column-reverse;
  }
  .main-panel:nth-child(odd) {
    flex-direction: column-reverse;
  }

  .back-panel {
    width: 90%;
    background: var(--main-ligntgray);
    padding: 15px;
    margin-bottom: 20px;
  }
  .front-panel {
    width: 85%;
    margin-top: 10px;
  }
  .welcome-section > p{
    font-size: 2.2rem;
  }
}
/* 770px / 16px = 61.25em */
@media (max-width: 48.12em) {
  .main-panel{
    /* width: 90%; */
  }  
}


@media (max-width: 31.625em) {
  h1 {
    font-size: 3.2rem;
  }
  .projects-section-header {
    font-size: 3rem;
  } 
  .projects-section {
    padding: 6rem 1rem;
  }
}

/* 460px / 16px = 28.75em */
@media (max-width: 28.75em) {
  html {
    font-size: 55%;
  }
  footer {
    flex-direction: column;
    text-align: center;
  } 

  .nav {
    justify-content: center;
  }
  .nav-list {
    margin: 0 1rem;
  }  
  .projects-section-header {
    font-size: 4rem;
  }
  .contact-section-header > h2 {
    font-size: 4rem;
  }    
}
