body {
  /* background-color: rgba(245, 245, 220, 1); */
  text-align: center;
  min-width: 430px;
}

#frame {
  max-width: 1054px;
  margin: 0 auto;
}

#app {
  height: 100%;
}

/*
/////////////////////////////////
BANNER
/////////////////////////////////
*/


#titlebox {
  max-width: 100%;
  clear: both;
  overflow: auto;
  width: 100%;
}

#title {
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 700;
  font-size: 5em;
  margin: 0 20px 0 0;
  float: right;
  color: rgba(0, 0, 0, .7);
}





/*
/////////////////////////////////
BIO
/////////////////////////////////
*/

#hellobox {
  display: flex;
  justify-content: space-between;
}

#hello {
  display: inline-block;
  font-family: 'Chakra Petch', sans-serif;
  font-weight: 300;
  font-size: 2em;
  color: rgba(0, 0, 0, .9);
  width: 400px;
  margin: 5% 0 0 1%;
}

#self_img {
  width: 150px;
  height: 190px;
  margin: 40px 40px 0 0;
}


/*
/////////////////////////////////
Look Down
/////////////////////////////////
*/


#lookDown {
  display: flex;
  align-content: space-between;
  flex-direction: column;
  gap: 10%;
  width: 20%;
  height: 200px;
  margin: 1% 0 1% 25%;
}

.arrow {
  display: inline-block;
  max-width: 90%;
  max-height: 90%;
  object-fit: contain;
  margin-top: 10px;
}

@keyframes fade1 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

@-webkit-keyframes fade1 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

#arrow1 {
animation:fade1 3000ms infinite;
-webkit-animation:fade1 3000ms infinite;
}

@keyframes fade2 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

@-webkit-keyframes fade2 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

#arrow2 {
animation:fade2 1500ms infinite;
-webkit-animation:fade2 1500ms infinite;
}

@keyframes fade3 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

@-webkit-keyframes fade3 {
  from { opacity: 1.0; }
  50% { opacity: 0.5; }
  to { opacity: 1.0; }
}

@keyframes point {
  50% {transform: rotate(-60deg);}
}

#arrow3 {
animation:point 3500ms infinite;
-webkit-animation:point 3500ms infinite;
}


/*
/////////////////////////////////
PORTHOLES
/////////////////////////////////
*/

#applicationsPanel {
  background-color: white;
  position: relative;
  z-index: 1;
  margin-bottom: 100px;
}

#projects {
  float: right;
  width: 100%;
  margin: 400px 40px 0 0;
  /* position: absolute; */
  background-color: rgba(255, 255, 255, 1);
  z-index: 2;
}


.portHoleTitle {
  font-family: 'Montserrat', sans-serif;
  /* font-weight: bold; */
  font-size: 2em;
}

.fullStackPort {
  float: right;
  clear: left;
  width: 250px;
  height: 250px;
  border: 10px solid rgba(0, 0, 0, .9);
  border-radius: 250px;
  /* background-image: url('./assets/FullStackBackground.jpg'); */
  background-size: 300%;
  background-repeat: no-repeat;
  background-position: 40% 40%;
}

.noPort {
  float: right;
  visibility: hidden;
  clear: left;
  width: 250px;
  height: 250px;
  /* border-right: 1px solid rgba(0, 0, 0, .9); */
  border-radius: 250px;
}

#frontEndPort {
  float: right;
  clear: left;
  width: 250px;
  height: 250px;
  border: 10px solid rgba(0, 0, 0, .9);
  border-radius: 250px;
  /* background-image: url('./assets/FrontEndbackground.jpg'); */
}

#backEndPort {
  float: right;
  clear: left;
  width: 250px;
  height: 250px;
  border: 10px solid rgba(0, 0, 0, .9);
  border-radius: 250px;
  /* background-image: url('./assets/BackendBackground.jpg'); */
  background-size: 100%;
  background-position: 40% 80%;
}

#writingPort {
  float: right;
  clear: left;
  width: 250px;
  height: 250px;
  border: 10px solid rgba(0, 0, 0, .9);
  border-radius: 250px;
  /* background-image: url('./assets/WritingBackground.jpg'); */
  background-position: 80% 25%;
}


.porthole:hover {
  cursor: pointer;
}

.portholeBox {
  display: inline-block;
  position: relative;
  z-index: 1;
  vertical-align: center;
  width: 90%;
  margin-top: 30px;
}

#fullStackImg {
  margin: 100px 20px 20px 20px;
}

#writingImg {
  margin: 100px 20px 20px 20px;
}

#frontEndImg {
  margin: 100px 20px 20px 20px;
}

#backEndImg {
  margin: 100px 20px 20px 20px;
}

/*
/////////////////////////////////
TALK TO NATHAN
/////////////////////////////////
*/

.talkBox {
  position: absolute;
  top: 0;              /* adjust for vertical position */
  right: 0;            /* adjust for horizontal alignment */
  width: 280px;
  max-height: 460px;   /* ✅ this is the limit */
  overflow: auto;      /* ✅ expands naturally until max */

  background-color: rgba(255, 255, 255, 0.95);
  border: 1px solid #ccc;
  border-radius: 8px;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 0.9em;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  padding: 12px;
  box-sizing: border-box;
}



.talkTitle {
  font-weight: 600;
  font-size: 1.1em;
  margin-bottom: 6px;
  color: #333;
  text-align: right;
}

.talkBox textarea {
  width: 100%;
  resize: none;
  font-family: inherit;
  padding: 4px;
  font-size: 0.85em;
  border-radius: 4px;
  border: 1px solid #bbb;
  box-sizing: border-box;
  height: 28px;
  line-height: 1.1em;
  overflow-y: hidden;
}


.talkBox button {
  margin-top: 6px;
  padding: 4px 12px;
  font-size: 0.85em;
  border-radius: 4px;
  background-color: #333;
  color: #fff;
  border: none;
  cursor: pointer;
  float: right;
}

.talkBox button:disabled {
  background-color: #aaa;
  cursor: not-allowed;
}

.talkResponse {
  margin-top: 20px;
  font-size: 0.85em;
  white-space: pre-wrap;
  color: #222;
  text-align: right;

  overflow-y: auto;
  max-height: 350px;  /* optional — scrolls if long */
}



.talkInputGroup {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-bottom: 20px;
}

.talkInputGroup textarea {
  flex: 1;
  height: 34px;
  font-size: 0.85em;
  padding: 4px;
  font-family: inherit;
  resize: none;
  border-radius: 4px;
  border: 1px solid #bbb;
}


/*
/////////////////////////////////
CERTIFICATIONS
/////////////////////////////////
*/



#certifications {
  text-align: center;
  margin: 60px auto 20px;
}

.certTitle {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 2em;
  margin-bottom: 20px;
  text-decoration: underline;
}

.certRow {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.cert {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1em;
  max-width: 120px;
}

.cert img {
  width: 60px;
  height: auto;
  margin-bottom: 10px;
}




/*
/////////////////////////////////
PANELS
/////////////////////////////////
*/


div.panel {
  position: absolute;
  right: 5%;
  border-left: 5px solid rgba(0, 0, 0, .3);
  border-bottom: 5px solid rgba(0, 0, 0, .3);
  border-top: 5px solid rgba(0, 0, 0, .3);
  border-right: 5px solid rgba(0, 0, 0, .3);
  border-radius: 250px 250px 250px 250px;
  height: 250px;
  max-width: 770px;
  margin-top: 0px;
  display: none;
  margin: 0 auto;
}

.closeBox {
  display: none;
  position: relative;
  width: 30px;
  height: 30px;
  top: 0;
  right: -40px;
  font-family: 'Palette Mosaic', cursive;
  font-size: 2em;
  z-index: 1;
  float: right;
}

.closeBox:hover {
  cursor: pointer;
}

.bullets {
  text-align: left;
  margin-left: 50px;
}


/*
/////////////////////////////////
PROJECT DESCRIPTIONS
/////////////////////////////////
*/

.projectDescription {
  margin: 5% 0 0 0;
  display: inline-block;
  font-family: 'Montserrat', sans-serif;
  max-height: 200px;
  overflow: scroll;
  max-width: 80%;
}

.titleLine {
  font-weight: bold;
}

.techLine {
  font-weight: medium;
}


/*
/////////////////////////////////
FOOTER
/////////////////////////////////
*/

#footerbox {
  position: relative; /* 🔄 allow it to live in the page flow */
  margin-top: 80px;
  text-align: left;
}

#footer {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 3em;
  text-decoration: underline;
  margin: 10px;
  z-index: -1;
}

#email {
  font-family: 'Chakra Petch', sans-serif;
  font-size: 1.5em;
  color: black;
  margin-left: 20px;
}



/*
/////////////////////////////////
RESPONSIVENESS
/////////////////////////////////
*/


@media only screen and (max-width: 800px) {
  div.panel {
    /* position: absolute; */
    min-width: 330px;
    margin-right: 10%;
  }
  .projectDescription {
    max-width: 80%;
    margin: 8% 0 0 0;
  }
  @keyframes point {
    50% {transform: rotate(-50deg);}
  }
}

@media only screen and (max-width: 750px) {
  #footerbox {
    top: 400px;
    left: 50%;
  }
  #footer {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 2em;
    text-decoration: underline;
    margin: 10px;
    z-index: -1;
  }
  #email {
    font-family: 'Chakra Petch', sans-serif;
    font-size: 1em;
    color: black;
    margin-left: 20px;
  }
}

  @media only screen and (max-width: 575px) {
    #title {
      font-size: 4em;
    }
    #hello {
      font-size: 1.7em;
    }
    #hellobox {
      display: block;
    }
    #projects {
      margin: 330px 40px 0 0;
    }
    #hellobox {
      text-align: left;
    }
    @keyframes point {
      50% {transform: rotate(-40deg);}
    }
}

@media only screen and (max-width: 500px) {
  #title {
    font-size: 3em;
  }
  #hello {
    font-size: 1.5em;
  }
  #projects {
    margin: 270px 40px 0 0;
  }
}

@media only screen and (max-width: 400px) {
  @keyframes point {
    50% {transform: rotate(-20deg);}
  }
}