/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

 body {
    margin: 0;
    padding: 0;
    background-color: #0166B1;
    align-items: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow-x: hidden;
    scrollbar-width: 0;
}

.space {
    height: clamp(60px, 10vh, 120px);
}



footer{
    width: 100%;
    height: 300px;
    background: linear-gradient(180deg, rgba(9, 20, 60, 0) 0%, rgba(9, 20, 60, 0.5) 31.43%, rgba(9, 20, 60, 0.75) 51.78%, rgba(0, 0, 0, 0.72) 90.4%), #0166B1;
    color: white;
}

.link{
    text-decoration: none;
    color: white;
}


.page {
    width: 100%;
    text-align: center; 
    background-color: #0166B1;
    overflow: hidden;
    justify-items: center;
}


/* ------------------------------------------------------------------------------------------------- */
.section-header{
    margin: 20px;
    margin-top: 40px;
}

.section-header h1 {
    font-size: clamp(2.25rem, 5vw, 4.5rem);
    margin-bottom: 10px;
    padding-bottom: 0;
}


.section-header a{
    font-size: clamp(0.6rem, 5vw, 1.4rem);
    margin-top: 10px;
    padding-top: 0;
}

/* ------------------------------------------------------------------------------------------------- */

footer{
  height: auto;
  padding-top: 20px;
}
.top-footer-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 20px; /* optional: adds some padding left and right */
    margin: 40px;
}

.top-footer-section h2{
    font-size: 3rem;
    margin: 0;
    padding: 0;
    
  font-family: 'Bruno Ace', sans-serif;
}

.social-media {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 20px;
}

.social-media-icon {
    width: 50px;
    height: 50px;
    
    border-radius: 50%;
    display: flex;                     /* Add this */
    align-items: center;              /* Vertical centering */
    justify-content: center;          /* Horizontal centering */
    overflow: hidden;                 /* Prevents spillover */
}

.social-media-icon svg {
    width: 100%;
    height: 100%;
    display: block;
    color: white;
}

.social-media-icon:hover {
    transform: scale(1.5);
    transition: transform 0.3s ease;
}


.middle-footer-section{
    display: flex;
    flex-direction: row;
    gap: 100px;
    justify-content: center;
    font-size : 1.2rem;
    font-style: italic;
    margin: 10px;
    height: 30px;
}

.bottom-footer-section{
    margin: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;

}

/* ------------------------------------------------------------------------------------------------- */

.form-card{
    border-radius: 10px;
    width: auto;
    height: auto;
    padding: 30px;
    margin: 20px;
    background-color: #fff;
}
.form-card h2{
    font-size: 2.5rem;
    margin: 0;
    padding: 0;
    text-align: center;
}


form {
   
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
}

form div {
    margin-bottom: .2rem;
}

form label {
    margin-bottom: 0.5rem;
  font-weight: 600;
  color: black;
  font-size: 1.1rem;
}

form input[type="text"],
form input[type="number"],
form textarea,
form input[type="file"] {
   padding: 0.75rem;
  border: 1px solid #ccc;
  border-radius: 24px;
  font-size: 1rem;
  box-sizing: border-box;
  width: 100%;
}

form textarea {
resize: vertical;
}

form input[type="submit"] {
    background-color: #007BFF;
    color: white;
    font-weight: bold;
    border: none;
    cursor: pointer;
    padding: 0.75rem;
    transition: background-color 0.3s ease;
    
    border-radius: 24px;
}

form input[type="submit"]:hover {
    background: #0056b3;
}

.home-btn {
    width: 200px;
  background-color: #000;
  color: #fff;
  padding: 10px 20px;
  border: 1px solid #fff;
  border-radius: 25px;
  display: inline-block;
  font-size: 1.1rem;
  align-self: center;;
}


.home-btn:hover,
.home-btn:focus-visible {          
  background-color: rgba(255,255,255,0.12);    
  color: #fff;                                  
  text-decoration: none;                        
}



/* ------------------------------------------------------------------------------------------------- */
.flash-message {
  position: fixed;
  bottom: 50px;
  left: 50%;
  transform: translateX(-50%) scaleX(0); /* start as a 0-width line at center */
  transform-origin: center center;       /* grow/shrink from the middle */
  
  z-index: 1000;
  max-width: 80%;
  background-color: #f0f0f0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.2);
  border-radius: 24px;
  padding: 12px 16px;
  font-weight: bold;
  font-size: 1.2rem;
  
  /* 
    1) expand over 0.5s (ease-out), 
    2) stay open for 3s,
    3) collapse over 0.5s (ease-in)
  */
  animation:
    expand 0.5s ease-out forwards,
    collapse 0.5s ease-in forwards 2s;
}

@keyframes expand {
  from {
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
  }
  to {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
}

@keyframes collapse {
  from {
    transform: translateX(-50%) scaleX(1);
    opacity: 1;
  }
  to {
    transform: translateX(-50%) scaleX(0);
    opacity: 0;
  }
}

  
  .flash-message.notice {
    background-color: #d4edda;
    color: #155724;
  }
  
  .flash-message.alert {
    background-color: #f8d7da;
    color: #721c24;
  }
  
  .flash-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
  
  .flash-content span {
    flex: 1;
  }
  
  .close-flash {
    background: none;
    border: none;
    font-size: 20px;
    font-weight: bold;
    margin-left: 10px;
    cursor: pointer;
    color: inherit;
  }
  
  @media (max-width: 420px){
    .page{
        width: 100vw;
    }

    /***********/


    footer{
        height: auto; /* allow footer to grow with content */

      padding: auto;

    }
    .top-footer-section {
        
        flex-direction: column;
        align-items: center;
        justify-content: center;
        margin: 5px; /* smaller margin */
        padding: 0;
        gap: 5px; /* add some spacing between items */
    }

    .middle-footer-section {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 10px;
        text-align: center;
        margin: 0;
        padding: 0;
    }

    .bottom-footer-section {
        margin: 10px;
        text-align: center;
        
    }

    .top-footer-section h2{
        font-size: 3rem; /* slightly smaller heading if you want */
        
    }
    .middle-footer-section h3{
        margin: 0;
        padding: 5px;
    }
  }


  .dev-credit{
    font-weight: bold;
    background-color: #000;
    border: 1px solid #fff;
    border-radius: 25px;
    padding: 5px 10px;
  }

  .dev-credit-text {
    color: #fff;
    text-decoration: none;
  }

  .dev-credit:hover{
    background-color: rgba(255,255,255,0.12);
    color: #fff;
    text-decoration: none;
  }

  /* your existing link wrapper styles */
.dev-credit {
  font-weight: bold;
  background-color: #000;
  border: 1px solid #fff;
  border-radius: 25px;
  padding: 5px 10px;
}

.dev-credit-text {
  color: #fff;
  text-decoration: none;
}

.dev-credit:hover {
  background-color: rgba(255,255,255,0.12);
  color: #fff;
  text-decoration: none;
}

/* ROTATOR + STATIC SUFFIX */
.frame {
  display: inline-block;        /* shrink‐wrap to content */
}

.carousel {
  display: inline-flex;         /* rotator + post on one line */
  align-items: center;
  font-size: clamp(1rem, 3vmin, 1.5rem);
  line-height: 1.5em;           /* matches the translate distances */
}

.change_outer {
  position: relative;
  overflow: hidden;             /* hide off‐frame words */
  height: 1.5em;                /* exactly one line tall */
  margin-right: .6ch;            /* gap before “by Stilyan” */
}


.element {
  display: block;               /* stack vertically */
  font-weight: 100;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.2);

  text-align: right;
}

/* static “by Stilyan” */
.post {
  font-weight: 100;
  text-shadow: 2px 2px 2px rgba(0,0,0,0.2);
}

.change_inner {
  animation: rotate 8s ease-in-out infinite;
}

@keyframes rotate {
  /* First word (“Designed”): hold 0→30% */
  0%,   30%   { transform: translateY(0); }
  /* Second word (“Implemented”): 33%→63% */
  33%,  63%   { transform: translateY(-1.5em); }
  /* Third word (“Delivered”): 66%→96% */
  66%,  96%   { transform: translateY(-3em); }
  /* Snap back to start at 100% */
  100%        { transform: translateY(0); }
}
