

*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: monospace;
    scrollbar-width: 5px;
}

body {
    background: linear-gradient(0deg, rgba(250,230,220,1) 0%, rgba(242,219,231,1) 50%, rgba(255,207,241,1) 100%);
background-position: static;
user-select: none;
}


.container {
    scroll-snap-type: y mandatory;
    overflow-y: scroll;
    height: 100vh;
}

#canvas {
    cursor:pointer;
}


/*Used MS Copilot to show me what to change here

I changed the .text and if you want to change its length, 
you'll want to change 
- width (currently 20) (both under keyframes and .text)
- steps (23) to be whatever works best (steps = number of characters).


-E
  */
  .text {
    align-items: center;
    font-size: 3em;
    letter-spacing: 5px;
    font-family: monospace;
    border-right: 5px solid;
    white-space: nowrap;
    overflow: hidden;
    width: 19ch;               /* Set a fixed width for the typing effect */
    animation:
        typing 1.5s steps(15),
        cursor 0.4s step-end infinite alternate;
}

/* this is for responsiveness at wider screen ratios. 

Note: I haven't worked on screen ratios taller then 1:1 (like a smartphone) 
so that will be a little awk  

-E

I had to stop this, since the placement of the phrase was ugly. Can do this another time.

@media screen and (min-aspect-ratio: 544/433) {
    .text {
        margin-top: 30vh;
    }
}

@media screen and (min-aspect-ratio: 928/464) {
    .text {
        margin-top: 25vh;
    }
}
*/

@keyframes typing {
  from { width: 0; }
}
@keyframes cursor {
  50% { border-color: transparent}
}

/*  commented out some code I haven't gotten to work and don't need anymore. 
    Feel free to apply this to anything or delete it
    -E
.specs {
    animation-delay: 3s;
    animation: fadeInFromAbove 2s ease-out forwards;
    font-size: 5em;
    white-space: normal;
    float: left;
    
}
.specs-div {
    margin: auto 20px;
}
@keyframes fadeInFromAbove {
  from {
    opacity: 0;
    transform: translateY(-20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  
  }}*/


  /*text used for website.*/ 
h1{
    font-size: 3em;
    letter-spacing: 10px;
    font-family: monospace;
}

h3{
    font-size: 3em;
    letter-spacing: 10px;
    font-family: monospace;
}

.two {
    display: flex; /* Use Flexbox for centering */
    flex-direction: column; /* Stack children vertically */
    align-items: center; /* Horizontally center items */
    justify-content: center; /* Vertically center items */
    height: 100vh; /* Full viewport height (optional, adjust as needed) */
    text-align: center; /* Ensure text is centered */
    width: 900px;
    margin: auto;
}


/* Styling for p */
p {
    font-size: 2em;
    letter-spacing: 3px;
    font-family: monospace;
    margin-top: 0;
}

/*This is the code for the section*/
section{
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start; 
    height: 100vh;
}

/* This is for the navbar at the top. 
I haven't figured out how to make it opaque. 
When you're scrolling the text just goes right through it */
.texttop {
    position: fixed;
    top: 20px;
    left: 20px;
}

.icons {
    height:75px;
    position: fixed; /* Allows positioning relative to the nearest positioned ancestor */
    right: 20px; /* Moves the icon to the right */
    top: 20px;
}

.icons2 {
    height:75px;
    position: fixed; /* Allows positioning relative to the nearest positioned ancestor */
    right: 13px; /* Moves the icon to the right */
    top: 0;
}


/* Footer box.*/
.footer {
    white-space: normal;
    font-size: 1em;
    height: 120px;
    scroll-snap-align: start; 
    background-color: rgba(255,215,238,1);
    border: black 3px solid;
    margin: 0 10px;
    border-radius: 5px;

}

/* This styles the text inside the footer box */ 

.footertxt {
    padding: 20px;
    text-align: center;
}



/* This is the background the floating footer box is on top of */

.footercont {
    background-color: rgba(250,230,220,0);
    margin: 0;
    padding: 10px 0px;
}

/* Signup form styles */
.signup-section {
    display: flex;
    justify-content: center;
    align-items: center;
    scroll-snap-align: start;
    height: 100vh;
    flex-direction: column;
}

.signup-container {
    background-color: rgba(255,215,238,0.8);
    border: black 3px solid;
    border-radius: 10px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
}

.signup-container h1 {
    font-size: 2.5em;
    margin-bottom: 10px;
    letter-spacing: 5px;
}

.signup-container p {
    font-size: 1.2em;
    margin-bottom: 30px;
    letter-spacing: 2px;
}

.signup-form {
    text-align: left;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 1.1em;
    font-weight: bold;
    margin-bottom: 5px;
    letter-spacing: 1px;
}

.form-group input,
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 10px;
    font-size: 1em;
    font-family: monospace;
    border: 2px solid black;
    border-radius: 5px;
    background-color: rgba(255,255,255,0.9);
    box-sizing: border-box;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: rgba(71, 196, 255, 1);
    background-color: rgba(255,255,255,1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

.submit-btn {
    width: 100%;
    padding: 15px;
    font-size: 1.2em;
    font-family: monospace;
    font-weight: bold;
    background-color: rgba(71, 196, 255, 1);
    color: white;
    border: 3px solid black;
    border-radius: 5px;
    cursor: pointer;
    letter-spacing: 2px;
    transition: background-color 0.3s ease;
}

.submit-btn:hover {
    background-color: rgba(0, 110, 239, 1);
}

.submit-btn:active {
    transform: translateY(2px);
}

.signup-link {
    display: inline-block;
    text-decoration: none;
    text-align: center;
    min-width: 200px;
}

.signup-link:hover {
    background-color: rgba(0, 110, 239, 1);
    color: white;
}

/* Success message styles */
.success-message {
    background-color: rgba(144, 238, 144, 0.9);
    border: 3px solid #4CAF50;
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 20px;
    text-align: center;
}

.success-message h3 {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #2E7D2E;
    letter-spacing: 3px;
}

.success-message p {
    font-size: 1.1em;
    color: #2E7D2E;
    margin: 0 0 20px 0;
}

.success-actions {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 20px;
}

.secondary-btn {
    background-color: rgba(255, 165, 0, 1);
    color: white;
    border: 3px solid black;
}

.secondary-btn:hover {
    background-color: rgba(255, 140, 0, 1);
}

.back-home-btn {
    display: inline-block;
    padding: 15px 20px;
    font-size: 1.2em;
    font-family: monospace;
    font-weight: bold;
    background-color: rgba(128, 128, 128, 1);
    color: white;
    border: 3px solid black;
    border-radius: 5px;
    text-decoration: none;
    letter-spacing: 2px;
    transition: background-color 0.3s ease;
    cursor: pointer;
}

.back-home-btn:hover {
    background-color: rgba(100, 100, 100, 1);
}

/* Dedicated signup page styles */
.signup-page {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 20px;
    background: linear-gradient(0deg, rgba(250,230,220,1) 0%, rgba(242,219,231,1) 50%, rgba(255,207,241,1) 100%);
}

.signup-nav {
    position: fixed;
    top: 20px;
    left: 20px;
    z-index: 100;
}

.back-link {
    font-family: monospace;
    font-size: 1.1em;
    color: black;
    text-decoration: none;
    padding: 10px 15px;
    background-color: rgba(255,255,255,0.8);
    border: 2px solid black;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}

.back-link:hover {
    background-color: rgba(255,255,255,1);
}

/* Mobile responsiveness improvements */
@media screen and (max-width: 768px) {
    .signup-container {
        padding: 20px;
        width: 95%;
        max-width: none;
        margin: 60px 0 20px 0;
    }
    
    .signup-container h1 {
        font-size: 2em;
        letter-spacing: 3px;
        margin-bottom: 15px;
    }
    
    .signup-container p {
        font-size: 1em;
        letter-spacing: 1px;
        margin-bottom: 25px;
    }
    
    .form-group {
        margin-bottom: 15px;
    }
    
    .form-group label {
        font-size: 1em;
        letter-spacing: 0.5px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 12px;
        font-size: 16px; /* Prevents zoom on iOS */
    }
    
    .submit-btn {
        padding: 15px;
        font-size: 1.1em;
        letter-spacing: 1px;
    }
    
    .success-message {
        padding: 20px;
    }
    
    .success-message h3 {
        font-size: 1.5em;
        letter-spacing: 2px;
    }
    
    .success-actions {
        flex-direction: column;
        gap: 10px;
    }
    
    .secondary-btn,
    .back-home-btn {
        width: 100%;
        padding: 12px;
        font-size: 1em;
    }
    
    .signup-nav {
        position: static;
        margin-bottom: 20px;
        align-self: flex-start;
    }
    
    .back-link {
        font-size: 1em;
        padding: 8px 12px;
    }
}

@media screen and (max-width: 480px) {
    .signup-page {
        padding: 10px;
    }
    
    .signup-container {
        padding: 15px;
        width: 100%;
    }
    
    .signup-container h1 {
        font-size: 1.8em;
        letter-spacing: 2px;
    }
    
    .form-group input,
    .form-group select,
    .form-group textarea {
        padding: 10px;
    }
}
