@font-face {
    font-family: 'SpaceGrotesk-VariableFont_wght', sans-serif;
    src: url('../fonts/SpaceGrotesk-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
  }
  
@font-face {
    font-family: 'WorkSans', sans-serif;
    src: url('../fonts/WorkSans-VariableFont_wght.ttf') format('ttf');
    font-weight: normal;
    font-style: normal;
}

body{
    padding: 0px;
    font-weight: 400;
    font-family: "Work Sans", sans-serif;;
    font-size: 18px;
    width: 100%;
    height: 100%;
    margin: 0;
    /* was curious and googled if it was hard to change the cursor but ended up beign so simple so wanted to try it out for fun */
    cursor: url('../images/cursor.svg'), auto;
  } 

.navbar {
    background-color: #D32F7E;
    overflow: auto;
    align-items: center;
    padding-left: 80px;
    padding-top: 20px;
  }


.logo {
    display: flex;
    min-height: 5%;
    min-width: 10%;
}
  
nav a {
    float: left;
    text-align: center;
    padding: 12px;
    color: white;
    text-decoration: none;
    font-size: 17px;
}
.dropdown {
    float: left;
    overflow: hidden;
  }
i {
    color: white;
    position: relative;
}
  
  /* Dropdown hovering button */
.dropdown .dropdown-button {
    font-size: 16px;
    border: none;
    outline: none;
    color: white;
    padding: 14px 16px;
    /* used a tutorial which explained the inherit function which allows what chosen to take the same value from the parent instead having to code it again */ 
    background-color: inherit;
    font-family: inherit;
    margin: 0;
}
  
  /* hide the items inside the drop down item in the navbar */
.dropdown-item {
    display: none;
    position: absolute;
    background-color:  #D32F7E;;
    min-width: 160px;
    box-shadow: 0px 8px 16px 0px rgba(0,0,0,0.2);
    z-index: 1;
}
  
  /* pages inside the dropdown button */
.dropdown-item a {
    float: none;
    color: rgb(255, 255, 255);
    padding: 12px 16px;
    text-decoration: none;
    display: block;
    text-align: left;
}

.dropdown-item a:hover {
    background-color: white;
    color: #D32F7E;
}
  
  /* menu items pop up when hovering on "projects" */
  .dropdown:hover .dropdown-item {
    display: block;
}

.pageHeading {
    flex-direction:column;
    align-items: left;
    color: white;
    font-family: "Space Grotesk", sans-serif;
    font-weight: bold;
    font-size: 64px;
    padding-left: 40px;
}


/* this about me section is supposed to let you open just one text bubble per time but the tutorial says it needs java script for it */
.about-me {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: start;
  gap: 30px;
  max-width: 1000px;
  margin: auto;
  margin-top: 40px;
  margin-bottom: 40px;
}

h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 52px;
  margin: 0;
}

h3 {
  font-family: 'Work Sans', sans-serif;
  font-size: 24px;
}


.profile-img img {
  width: 100%;
  max-height: 90%;
  display: block;
}

.about {
  display: flex;
  flex-direction: column;
  gap: 20px;
}


/* Accordion with bubbles pink and black */
.about-faq {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

details {
  width: 100%;
  cursor: url;
}

/* had to give a different size to all of them as the text was going out the text bubble */
summary {
  background: url("../images/pink-bubble-question.svg");  background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  font-weight: bold;
  font-size: 1rem;
  padding: 20px 40px;
  border-radius: 10px;
  list-style: none;
  cursor: pointer;
  display: inline-block;
  max-width: 80%;
  text-align: left;
  padding-left: 30%;
  padding-right: 20%;
  word-wrap: break-word;
  font-family: 'Space Grotesk', sans-serif;
}

details .answerOne {
  background: url("../images/black-bubble-answer.svg"); background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  padding: 20px 40px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 80%;
  text-align: left;
  display: none;
  word-wrap: break-word;
  padding-left: 20%;
  padding-right: 25%;
  font-family: 'Work Sans', sans-serif;
}

details .answerTwo {
  background: url("../images/black-bubble-answer.svg"); background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  padding: 20px 40px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 80%;
  text-align: left;
  display: none;
  word-wrap: break-word;
  padding-left: 13%;
  padding-right: 20%;
  font-family: 'Work Sans', sans-serif;
}

details .answerThree {
  background: url("../images/black-bubble-answer.svg"); background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  padding: 20px 40px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 80%;
  text-align: left;
  display: none;
  word-wrap: break-word;
  padding-left: 12%;
  padding-right: 20%;
  font-family: 'Work Sans', sans-serif;
}

details .answerFour {
  background: url("../images/black-bubble-answer.svg"); background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  padding: 20px 40px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 80%;
  text-align: left;
  display: none;
  word-wrap: break-word;
  padding-left: 15%;
  padding-right: 20%;
  font-family: 'Work Sans', sans-serif;
}

details .answerFive {
  background: url("../images/black-bubble-answer.svg"); background-size: contain;
  background-position: center center;
  background-repeat: no-repeat; 
  color: white;
  padding: 20px 40px;
  font-size: 1rem;
  margin-top: 10px;
  border-radius: 10px;
  width: fit-content;
  max-width: 80%;
  text-align: left;
  display: none;
  word-wrap: break-word;
  padding-left: 10%;
  padding-right: 20%;
  font-family: 'Work Sans', sans-serif;
}

details[open] p {
  display: block;
}

footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background-color: #D32F7E;
  padding: 10px 80px;
  color: white;
}

.social-icons {
  display: flex;
  gap: 10px;
}

.social-icons a {
  display: inline-block;
  width: 24px;
  height: 24px;
}

.social-icons img {
  width: 100%;
  height: auto;
  display: block;
}