/* Global Styles */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
     /* Claude gave me this code to ensure there isn't a weird margin around navbar. */
}

body{
    background-color:antiquewhite;
}

header {
    display: none;
}


.mobile-nav{
    background-color: #d3ebff;
    height:50px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 25px;
    text-decoration: none;
}

.desktop-nav{
    display:none;
}
   
/* Fonts */

/* the font I used for the book spines */
.caudex-bold {
  font-family: "Caudex", serif;
  font-weight: 700;
  font-style: normal;
}

.elsie-swash-caps-regular {
  font-family: "Elsie Swash Caps", serif;
  font-weight: 400;
  font-style: normal;
}

.domine-cute {
  font-family: "Domine", serif;
  font-optical-sizing: auto;
  font-weight: 400;
  font-style: normal;
}


/*THE HAMBURGER MENU*/
/* using the exact same one from project 2, just changed the colors */

.sidenav {
    height: 100%;
    width: 0;
    position: fixed;
    z-index: 1;
    top: 0;
    left: 0;
    background-color: #d3ebff;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidenav a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-family: "Domine", serif;
    ;
    font-size: 25px;
    color: #ff07b5; 
    display: block;
    transition: 0.3s;
}

.sidenav a:hover {
    color: #f1f1f1;
}

.sidenav .closebtn {
    position: absolute;
    top: 0;
    right: 25px;
    font-size: 36px;
    margin-left: 50px;
}



/* This is where you write the mobile styles */

    #homepage-image{
    max-width: 100%;
    position: center;
    display: flex;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    }

    .book-spine-text{
    font-size: 22px;
    position: absolute;
    top: 3%;
    left: 10%;
    transform: translate(-15%, -15%);  
    color: #b20c0c; 
    z-index: 1;
    background-color: antiquewhite;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    }

    #human-skills{
    font-size: 22px;
    position: absolute;
    top: 4%;
    left: 45%; 
    transform: translate(-43%, -43%);
    z-index: 1;
    background-color: antiquewhite;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    }

    #ai-skills{
    font-size: 20px;
    position: absolute;
    top: 7%;
    left: 85%;
    transform: translate(-80%, -80%);
    color: #2aaebd; 
    z-index: 1;
    background-color: antiquewhite;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    text-align: center;
    }

    #name{
    font-family: "Elsie Swash Caps", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 28px;
    position: absolute;
    top: 50%;
    text-align: center;
    color: #ff07b5; 
    max-width: 100%;
    z-index: 1;
    }

    #tagline{
    font-family: "Elsie Swash Caps", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    position: absolute;
    text-align: center; 
    top: 65%;
    color:#ff16c5; 
    z-index: 1;
    }

    #rectangle{
    height: 200px;
    width: 640px;
    max-width: 100%;
    border: 5px solid #48aeb2; 
    position: absolute;
    top: 48%;
    left: 0%;
    background-color: #4e1616; 
    display: flex;
    justify-content: center;
}
    

    #rect-text{
    display:block;
    font-size: 20px;
    position: absolute;
    top: 80%;
    color:#ff16c5; 
    text-align: center;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal;
    }
    
    /* Human Skills Page Styles */
    .page-title{
    font-size: 48px;
    text-align: center;
    font-family: "Elsie Swash Caps", serif;
    font-weight: 400;
    font-style: normal;
    color: black;
    padding: 10px;
    }

    .soft-skill{
    font-size: 28px;
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    margin-left: 20px;
    }

    #writing{
    font-size: 18px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    max-width: 100%;
    }

    #detail{
    font-size: 18px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    max-width: 100%;
    }

    #learn{
    font-size: 18px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    max-width: 100%;
    }

    #dth{
    margin-left: 70px;
    margin-right: 70px;
    }

    .book{
        max-width: 100%;
        width: 400px;
        height: 400px;
        object-fit: cover;

    }

    #caption{
    font-size: 12px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    }

    /* AI Skills Styles */

    /* This code is taken from Claude, and modified to fit mobile. */
     .webpage-container {
        max-width: 100%;         /* How wide the embedded page is */
        margin: 40px auto;    /* Center it on the page */
        padding: 15px; 
        /* I decided to add padding so it wouldn't be completely left aligned.  */
      }

      .webpage-container iframe {
        max-width: 100%;          /* Fill the container */
        height: 600px;        /* How tall the embedded page is */
        border: 2px solid #3498db;   /* A nice border around it */
        border-radius: 8px;          /* Rounded corners */
        
      }

        .book-bans {
        width: 450px;
        height: 300px;
        display: flex;
        padding: 20px;
      }

      .nestaway{
        width: 450px;
        height: 300px;
        display: flex; 
        padding: 20px;
      }


      .descrip{
    font-size: 18px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    max-width: 100%;

      }
      /* About Page Styles */


      #about-page{
        width: 330px;
        height: 400px;
        object-fit: cover;
       align-items: center;
      margin-left: 20px;
      }

      #bio{
    font-size: 18px;
    font-family: "Caudex", serif;
    font-style: normal;
    color: black;
    padding: 10px;
    margin-top: 10px;
    border: 2px solid #48aeb2; 
    border-radius: 8px;
    max-width: 100%;
    }

      /* This is the js typewriter animation that was provided to us */

      .hero {
      text-align: center;
      color: #b92c2c;
    }

    .hero__label {
      font-size: 0.85rem;
      letter-spacing: 0.2em;
      text-transform: uppercase;
      color: #888;
      margin-bottom: 1.2rem;
    }

    .hero__static {
      font-size: clamp(2rem, 5vw, 4rem);
      font-weight: 400;
      color: #b92c2c;
      margin-bottom: 0.4rem;
    }

    /* The line that types and deletes */
    .hero__dynamic {
      font-size: clamp(2rem, 5vw, 4rem);
      font-weight: 400;
      color: #a855f7;
      min-height: 1.2em;
      display: inline-block;
    }

    /* Blinking cursor */
    .cursor {
      display: inline-block;
      width: 3px;
      height: 0.9em;
      background: #a855f7;
      margin-left: 4px;
      vertical-align: middle;
      animation: blink 0.7s step-end infinite;
    }

    @keyframes blink {
      0%, 100% { opacity: 1; }
      50%       { opacity: 0; }
    }









    /* Adjustments for desktop */
@media screen and (min-width:1080px) {
    /* all of the CSS for desktop goes in here in a second set of braces. */

    /* this is the styling of the custom cursor, that I created with the help of Claude */


    .desktop-nav{
    background-color: #d3ebff;
    height:50px;
    padding: 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 24px;
    text-decoration: none;
    color: #ff07b5; 
    font-family: "Domine", serif;
    font-weight: 400;
    font-style: normal;

}

    .mobile-nav{
        display: none;
    }




    /* I made the homepage on desktop version before mobile. I just copypasted everything down into the media query section which is why there is so much code here. */
/* Homepage Styles */

    #homepage-image{
    max-width: 100%;
    height: auto;
    display: block;
    
}

#name{
    font-family: "Elsie Swash Caps", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 30px;
    position: absolute;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #ff07b5; 
    z-index: 1; 
    /* the z-index is to make the text stand on top of the brown */
}

#tagline{
    font-family: "Elsie Swash Caps", serif;
    font-weight: 400;
    font-style: normal;
    font-size: 24px;
    position: absolute;
    top: 55%;
    left: 50%;
    /* The Claude conversation gave me this code. */
    transform: translate(-50%, -50%);
    color:#ff16c5; 
    z-index: 1;


}

#rectangle{
    height: 170px;
    width: 645px;
    border: 5px solid blanchedalmond; 
    /* I picked that color because it sounded cute */
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4e1616; 
    display: flex;
}

#rect{
    height: 150px; 
    width: 550px; 
    border: 5px solid blanchedalmond;
    position: absolute;
    top: 75%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: #4e1616; 
    display: flex;
}

#rect-text{
    font-size: 20px;
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    color:#ff16c5; 
    z-index: 1;
    display: block;
}

.book-spine-text{
    font-size: 30px;
    position: absolute;
    top: 19%;
    left: 9%;
    transform: translate(-15%, -15%);  
    color: #b20c0c; 
    z-index: 1;
    transform: rotate(-90deg);
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    cursor: pointer; 
    transition: transform 0.3s;
    background-color: none;
    /* Claude gave me a nice way to make the text transition from horizontal to vertical.  */
}

    .book-spine-text:hover {
        background-color: antiquewhite;  
        transform: scale(1.05);     /* Increases by 5% when hovered */
        padding: 10px;
      }

      /* This is what happens when you actually click it */
      .book-spine-text:active {
        transform: scale(0.95);     /* Shrink slightly when clicked */
    

      }

    #human-skills{
    font-size: 26px;
    position: absolute;
    top: 18%;
    left: 45%; 
    transform: translate(-43%, -43%);
    color: #000000; 
    z-index: 1;
    transform: rotate(-90deg);
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    cursor: pointer; 
    transition: transform 0.5s;
    background-color: none;
    }

    #human-skills:hover{
    background-color: antiquewhite;  
    transform: scale(1.05);  
    color: black; 
    /* i changed the color so it can be legible when hovered over */
    padding: 10px;
    /* decided to add padding to make the text easier to read inside the box. */
    }

    #human-skills:active {
          transform: scale(0.95);
          color: black;
          
    }

    #ai-skills{
    font-size: 26px;
    position: absolute;
    top: 17%;
    left: 80.5%;
    transform: translate(-80%, -80%);
    color: #2aaebd; 
    z-index: 1;
    transform: rotate(-90deg);
    font-family: "Caudex", serif;
    font-weight: 700;
    font-style: normal; 
    cursor: pointer; 
    transition: transform 0.5s;
    background-color: none;
    }

    #ai-skills:hover{
    background-color: antiquewhite;  
    transform: scale(1.05); 
    padding: 10px;
    }

    #ai-skills:active{
        transform: scale(0.95);
    }


/* About Page */

    #bio{
        float: left; 
        position: center; 
        width: 650px;
        margin-left: 100px;
        height: auto; 
        background-color: white;

        
    }

    #about-page{
        float: right; 
        margin-right: 100px;
        display: flex;
        width: 500px;
        height: auto; 
        object-fit: cover;
        border-radius: 8px;
    }

    .hero{
        position: fixed;
        bottom: 0; 
        margin-left: 400px;
        margin-bottom: 220px;
    }


    /* Human Skills */

    .book{
        float: right; 
        margin-right: 40px;
        border-radius: 8px;
    }

    .soft-skill{
        font-size: 36px;
    }

    #writing{
        /* float: left;  */
        position: relative; 
        width: 400px;
        margin-left: 100px;
        height: auto; 
        background-color: white;
        border-radius: 8px;
        border: 2px solid #48aeb2;
        display: inline-block;
    }

    #detail{
        position: relative; 
        width: 400px;
        margin-left: 100px;
        height: auto; 
        background-color: white;
        border-radius: 8px;
        border: 2px solid #48aeb2;
        display: inline-block;
    }
    

    #dth{
        float: right;  
        display: block; 
        border-radius: 8px;
    }

    .book{
        width: 300px;
        height: 300px;
    }

    #learn{
       position: relative; 
        width: 400px;
        height: 100px;
        margin-left: 100px;
        height: auto; 
        background-color: white;
        border-radius: 8px;
        border: 2px solid #48aeb2;
        display: inline-block; 
        margin-right: 40px;
    }

    /* AI Skills Page */

    .descrip{
     position: relative; 
        margin-left: 40px;
        margin-right: 40px;
        height: auto; 
        background-color: white;
        border-radius: 8px;
        border: 2px solid #48aeb2;
    }

    .webpage-container{
        width: 600px;
        height: auto;
    }

    .webpage-container iframe{
        width: 800px;
    }

    .book-bans{
        width: 800px;
        height: 600px;
        margin-left: 50px; 
        display: flex;   
    }

    .book-bans iframe{
    width: 800px;
    }

    .nestaway{
    width: 650px;
    height: 500px;
    display: flex; 
    margin-left: 40px;
    }


    .nestaway iframe{
    width: 650px;

    }
}


