@media screen and (min-width: 320px) and (max-width: 767px) and (orientation: portrait) {
    html {
      transform: rotate(-90deg);
      transform-origin: left top;
      width: 100vh;
      height: 100vw;
      overflow-x: hidden;
      position: absolute;
      top: 100%;
      left: 0;
    }
  }

  body{
    position: sticky;
    top: 0;
    height: 100vh;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    margin: 0;
  }

#sideways-text1 {
    position: absolute;
    right: 1%;
    top: 25%;
    transform: rotate(90deg);
    color: #fff;
    font-size: 1vw;
    font-family: 'Andale Mono', monospace;
}

#sideways-text2 {
    position: absolute;
    right: 1%;
    top: 145%;
    transform: rotate(90deg);
    color: #fff;
    font-size: 1vw;
    font-family: 'Andale Mono', monospace;
}

#sideways-text3 {
    position: absolute;
    right: 1%;
    top: 380%;
    transform: rotate(90deg);
    color: #fff;
    font-size: 1vw;
    font-family: 'Andale Mono', monospace;
    z-index: 2;
}

#sideways-text4 {
    position: absolute;
    right: 1%;
    top: 490%;
    transform: rotate(90deg);
    color: black;
    font-size: 1vw;
    font-family: 'Andale Mono', monospace;
    z-index: 2;
}

#sideways-text5 {
    position: absolute;
    right: 1%;
    top: 630%;
    transform: rotate(90deg);
    color: black;
    font-size: 1vw;
    font-family: 'Andale Mono', monospace;
    z-index: 2;
}

#section-1::after {
    content: '';
    position: absolute;
    top: 35%;
    bottom: -30%;
    right: 2.23%;
    border-left: 0.4vh solid rgba(255, 255, 255, 0.5);
}

#dot-navigation {
    position: fixed;
    right: 2%;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
}

#dot-navigation a {
    display: block;
    width: 0.7vw;
    height: 1.2vh;
    background: #fff;
    border-radius: 50%;
    margin: 1.2vw 0;
    transition: border 0.3s;
    z-index: 2;
}

#dot-navigation a:hover {
    opacity: 1;
    z-index: 2;
}

#dot-navigation a.in-last-section {
    color: #000;
  }


#embeded-text1 {
    position: absolute;
    top: 75%; /* Adjust to move the text higher */
    left: 5%; /* Adjust to move the text more to the left */
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: left;
    z-index: 2;
}

#embeded-text2 {
    position: absolute;
    top: 80%; /* Adjust to move the text higher */
    left: 5%; /* Adjust to move the text more to the left */
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: left;
    z-index: 2;
}

#embeded-text3 {
    position: absolute;
    top: 85%; /* Adjust to move the text higher */
    left: 5%; /* Adjust to move the text more to the left */
    transform: translateY(-50%);
    color: #fff;
    font-size: 1.2vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: left;
    z-index: 2;
}

#particles-js {
    height: 120vh;
    background: url('resources/bg.jpg') center/cover;
    z-index: 0;
}

#header-text1 {
    position: absolute;
    top: 45%;
    left: 47%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 5vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
}

#header-text2 {
    position: absolute;
    top: 55%;
    left: 53%;
    transform: translate(-50%, -50%);
    color: #fff; 
    font-size: 5vw; 
    font-family: 'Andale Mono', monospace; 
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
}

#logo {
    position: absolute;
    top: 2%;
    left: 1%;
    width: 7vw; /* Adjust as needed */
    height: auto; /* Adjust as needed */
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

#logo.show {
    opacity: 1;
}

#section-1{
    background: url('resources/work1.jpg') center/cover;
    height: 200vh;
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 300px;
}

#section-1-header{
    left: 50%;
    color: #fff;
    font-size: 5vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-bottom: 15vh;
}

.template {
    transition: transform .3s ease;
    background-color: #f0f0f0;
    border-radius: 15px; /* Rounded edges */
    box-shadow: 0px 10px 20px rgba(72,72,72,72); 
    padding: 0.8vw;
    margin: 0.6vw;
}

.template:hover {
    transform: scale(1.05); /* Add this line */
}

.square {
    width: 30vw;
    height: 45vh;
    align-items: left;
    justify-content: space-between;
    flex-direction: column;
    display: flex;
    margin-left: 0.6vw;
    margin-right: 0.6vw;
    margin-bottom: 0.6vh;
}

.rectangle {
    align-items: left;
    display: flex;
    width: 30vw;
    height: 20vh;
}

.text-content { 
    display: flex;
    flex-direction: column;
    align-items: left;
    justify-content: center;
}

.square-image {
    border-radius: 10px;
    width: 100%;
    height: 50%;
    object-fit: cover;
    margin-bottom: 1.5vh;
}

.circle-image {
    width: 8vw;
    height: 15vh;
    border-radius: 50%;
    object-fit: cover;
    margin-left: 1.5vw;
    margin-top: 2vh;
}

#template-name{
    font-family: 'Andale Mono', monospace;
    font-weight: bold;
    font-size: 1.3vw;
    margin-bottom: 1vh;
    margin-left: 1.2vw;
    margin-top: 1vh;
}

#template-description{
    font-family: 'Andale Mono', monospace;
    font-size: 1vw;
    margin-bottom: 1vh;
    margin-left: 1.2vw;
}

.template-container {
    display: flex;
}

.column1, .column2, .column3 {
    display: flex;
    flex-direction: column;
    flex: 1; /* Add this line */
    justify-content: center;
}

.column1{
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

.column2{
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.column3{
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
}

#template-label {
    font-family: 'Andale Mono', monospace;
    font-size: 0.7vw;
    background-color: black; /* Add this line */
    color: white; /* Add this line */
    border-radius: 20px; /* Add this line */
    padding: 0.4vw 0.8vw; /* Add this line */
}

.header-container {
    display: flex;
    align-items: center;
    gap: 1.2vw; /* Add some space between the elements */
}

.template-link {
    text-decoration: none; /* Remove the underline */
    color: inherit; /* Inherit the color from the parent */
    display: block; /* Make the link block-level so it contains the entire template */
}

#planet-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin-top: 45vh;
}

#planet-image {
    position: absolute;
    width: 28%;
    height: 55%;
    object-fit: cover;
    border-radius: 70%;
    z-index: 2;
}

#line1 {
    content: "";
    position: absolute;
    width: 50%;
    margin-top: 2vh;
    left: 0;
    right: 0;
    height: 0.3vh;
    background-color: rgba(255, 255, 255, 0.5); /* Change this to the color you want for the line */
    z-index: 1;
    transform: rotate(-90deg);
    margin-left: 25vw;
    transform-origin: center;

}

#line2 {
    content: "";
    position: absolute;
    width: 50%;
    margin-top: 2vh;
    left: 0;
    right: 0;
    height: 0.3vh;
    background-color: rgba(255, 255, 255, 0.5); /* Change this to the color you want for the line */
    z-index: 1;
    transform: rotate(90deg);
    margin-left: 25vw;
    transform-origin: center;

}

#line1, #line2 {
    margin-top: 2vh;
    transition: transform 0.5s ease-in-out;
}

#line1.rotated {
    transform: rotate(-45deg);
}

#line2.rotated {
    transform: rotate(45deg);
}

#rectangle {
    position: absolute;
    width: 0;
    height: 0;
    background-color: #fff;
    background-color: transparent;
    border: 0.8vw solid #fff;
    transition: width 0.5s ease-in-out, height 0.5s ease-in-out;
    z-index: 2;
    margin-left: 1.7vw;
    margin-top: 2vh;
}

#rectangle.expanded {
    width: 14vw; /* Change this to the width you want for the rectangle */
    height: 55vh; /* Change this to the height you want for the rectangle */
}


#hidden {
    position: absolute;
    font-size: 3vw;
    font-family: 'Andale Mono', monospace;
    opacity: 0;
    transition: opacity 0.5s ease-in-out;
    z-index: 4;
    color: #fff;
    margin-bottom: 70vh;
    margin-left: 2vw;
}

#hidden.visible {
    opacity: 1;
}

#hidden2 {
    position: absolute;
    font-size: 1.5vw;
    font-family: 'Andale Mono', monospace;
    opacity: 0;
    transition: opacity 0.5s ease-in-out, color 0.5s ease-in-out; 
    z-index: 4;
    color: rgba(200, 200, 200, 0.5);
    margin-top: 32vh;
    margin-left: -3.8vw;
    text-decoration: underline;
}

#hidden2.visible {
    opacity: 1;
}

#hidden2:hover {
    color: #fff; 
}

#section-2{
    background: url('resources/quote1.png') center/cover;
    min-height: 80vh; 
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 30vh;
}

#section-2-header {
    position: absolute;
    margin-top: 2vh;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 5vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
}

#section-2-text {
    position: absolute;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 20vh;
    margin-left: 13vw;
    text-align: left;
}

#github-container {
    position: absolute;
    width: 5vw;
    height: 12vh; 
    background-color: transparent; 
    border: 0.3vw solid #fff;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 40vh;
    margin-left: 15%;
}

#github-icon {
    font-size: 3vw; /* Adjust as needed */
    color: #fff;
}

#github-container:hover {
    border: 0.3vw solid #8f6141; /* White background on mouse-over */
}

#github-container:hover #github-icon {
    color: #8f6141; /* White background on mouse-over */
}

#github-container:hover #github-text {
    color: #8f6141; /* Change the color of the text on hover */
}

#github-container:hover #github-text2 {
    color: #8f6141; /* Change the color of the text on hover */
}


#github-text {
    position: absolute;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 44vh;
    margin-left: -2vw;
    text-align: left;
    font-weight: bold;
}

#github-text2 {
    position: absolute;
    left: 30%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 49vh;
    margin-left: -3.8vw;
    text-align: left;
}


#mini-rectangle {
    position: absolute;
    margin-top: -10%;
    margin-left: 85%;
    transform: rotate(90deg);
    width: 1.5vw; /* Initial width */
    height: 0vw; /* Initial height */
    background-color: #f0f0f0; /* Change as needed */
    transition: height 0.5s ease-in-out;
    transform-origin: top right;
}

#mini-rectangle.expanded {
    height: 15vh; 
}

#section-3{
    background: url('resources/alps.png') center/cover;
    min-height: 100vh; 
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 35vh;
}

#profile-container {
    position: absolute;
    width: 20vw; /* Adjust as needed */
    height: 55vh; /* Adjust as needed */
    background-color: transparent; /* Semi-transparent white */
    border: 0.8vw solid #fff; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: -55vh;
    margin-left: 40%;
}

#profile-image {
    width: 18vw; /* Adjust this value as needed */
    height: 50vh; /* Adjust this value as needed */
    object-fit: cover;
}

#quote {
    position: absolute;
    margin-top: 65vh;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    font-size: 3vw;
    font-family: 'Satisfy', cursive;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    white-space: pre-line;
    font-weight: bold;
    z-index: 2;
}

#abt-me-text {
    position: absolute;
    margin-top: 15vh;
    left: 53%;
    margin-right: 15%;
    transform: translate(-50%, -50%);
    color: #2d2d2f;
    font-size: 1.5vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-left: -2vw;
    text-align: center;
    font-weight: bold;
    text-shadow: -1px 0 #989898, 0 1px #989898, 1px 0 #989898, 0 -1px #989898; /* Add this line */
}

#section-4{
    background: url('resources/connect.jpg') center/cover;
    min-height: 80vh; 
    background-position: center;
    background-repeat: no-repeat;
    padding-top: 35vh;
}

#section-4-header {
    position: absolute;
    margin-top: -5vh;
    left: 30%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 5vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
}

#linkedin-container{
    position: absolute;
    width: 4.5vw; /* Adjust as needed */
    height: 11vh; /* Adjust as needed */
    background-color: transparent; /* Semi-transparent white */
    border: 0.3vw solid black; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 11vh;
    margin-left: 5%;

}

#linkedin-icon {
    font-size: 3vw; /* Adjust this value as needed */
    filter: grayscale(100%);
}

#linkedin-text {
    position: absolute;
    left: 20%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 14vh;
    margin-left: -2.2vw;
    text-align: left;
    font-weight: bold;
}

#linkedin-text2 {
    position: absolute;
    left: 21%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 18vh;
    margin-left: -3.9vw;
    text-align: left;
}

#linkedin-container:hover {
    border: 0.3vw solid #0E4C92; /* White background on mouse-over */
}

#linkedin-container:hover #linkedin-icon{
    filter: grayscale(0%);
    color: #0E4C92; /* White background on mouse-over */
}


#email-container{
    position: absolute;
    width: 4.5vw; /* Adjust as needed */
    height: 11vh; /* Adjust as needed */
    background-color: transparent; /* Semi-transparent white */
    border: 0.3vw solid black; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 11vh;
    margin-left: 25%;

}

#email-icon {
    font-size: 3vw; /* Adjust this value as needed */
    filter: grayscale(100%);
}

#email-text {
    position: absolute;
    left: 37%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 14vh;
    margin-left: -2.2vw;
    text-align: left;
    font-weight: bold;
}

#email-text2 {
    position: absolute;
    left: 40.5%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 18vh;
    margin-left: -3.9vw;
    text-align: left;
}

#email-container:hover {
    border: 0.3vw solid #0E4C92; /* White background on mouse-over */
}

#email-container:hover #email-icon{
    filter: grayscale(0%);
    color: #0E4C92; /* White background on mouse-over */
}

#spotify-feature{
    position: absolute;
    width: 4.5vw; /* Adjust as needed */
    height: 11vh; /* Adjust as needed */
    background-color: transparent; /* Semi-transparent white */
    border: 0.3vw solid black; /* White border */
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 11vh;
    margin-left: 43%;

}

#spotify-text {
    position: absolute;
    left: 57%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 14vh;
    margin-left: -2.2vw;
    text-align: left;
    font-weight: bold;
}

#spotify-text2 {
    position: absolute;
    left: 58%;
    transform: translate(-50%, -50%);
    color: black;
    font-size: 1.3vw;
    font-family: 'Andale Mono', monospace;
    transition: opacity 0.5s ease-in-out;
    opacity: 1;
    text-align: center;
    z-index: 2;
    margin-top: 18vh;
    margin-left: -3.9vw;
    text-align: left;
}

#spotify-icon {
    font-size: 3vw; /* Adjust this value as needed */
    color: #1DB954;
}

#song-container {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    border-radius: 15px; /* Make the rectangle curved */
    overflow: hidden; /* Hide the overflow content */
    width: 30vw; /* Adjust as needed */
    height: 12.3vh; /* Adjust as needed */
    background-color: #2d2d2f; /* Adjust as needed */
    margin-top: 10vh;
    margin-left: 63%;
  }

#song-info {
    display: flex;
    flex-direction: column;
    align-items: left;
    width: 90%; /* Adjust as needed */
    margin-left: 3.5vw;
}

#spotify-song-name {
  white-space: nowrap; /* Prevent the text from wrapping onto the next line */
  overflow: hidden; /* Hide the overflow text */
  text-overflow: ellipsis; /* Add an ellipsis to the overflow text */
  width: 90%; /* Adjust as needed */
  color: #fff;
  font-family: 'Andale Mono', monospace;
  font-weight: bold;
  margin-top: 1vh;
}

#spotify-artist-name {
    white-space: nowrap; /* Prevent the text from wrapping onto the next line */
    overflow: hidden; /* Hide the overflow text */
    text-overflow: ellipsis; /* Add an ellipsis to the overflow text */
    width: 90%; /* Adjust as needed */
    color: #fff;
    font-family: 'Andale Mono', monospace;
    margin-top: 2vh;
  }

#spotify-song-image {
    position: relative;
    width: 7.5vw; /* Adjust as needed */
    height: 12vh; /* Adjust as needed */
    background-color: transparent; /* Semi-transparent white */
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-top: 30vh;*/
    /*margin-left: 52%; */
}

#play-button {
    font-size: 1.5vw;
    background-color: transparent;
    border:none;
    color:#f0f0f0;
    margin-left: -4.5vw;
    cursor: pointer;
    z-index: 2;
}

#spotify-feature:hover {
    border: 0.3vw solid #1DB954; /* White background on mouse-over */
}

@keyframes beat {
    0%, 100% { transform: scaleY(1); }
    50% { transform: scaleY(0.5); }
}
  
.dancing-rectangle:nth-child(1) {
    animation: beat 1s infinite;
    margin-top: 1vh;
    margin-left: 4vw;
}
  
.dancing-rectangle:nth-child(2) {
    animation: beat 1s infinite 0.4s; /* 0.2s delay */
    margin-top: 1vh;
    margin-left: 5.5vw;
}
  
.dancing-rectangle:nth-child(3) {
    animation: beat 1s infinite 0.2s; /* 0.4s delay */
    margin-top: 1vh;
    margin-left: 7vw;
}

#animation-container {
    display: flex;
    justify-content: space-around; /* Adjust as needed */
    width: 3vw; /* Adjust as needed */
    height: 3vh;
    margin-top: -7vh;
  }
  
  .dancing-rectangle {
    position: absolute;
    width: 0.4vw;
    height: 3vh;
    background: linear-gradient(to bottom, #1DB954, #008000); /* Gradient from light green to dark green */
    animation: beat 1s infinite;
    transform-origin: bottom;
  }

#back-to-top {
    position: fixed;
    bottom: 2vh;
    right: 2vw;
    background-color: black;
    color: white;
    border-radius: 50%;
    width: 5vw;
    height: 5vw;
    border: none;
    align-items: center;
    justify-content: center;
    display: flex;
    display: none;
  }
  
  #back-to-top .fas {
    font-size: 3vw;
  }
  