#home-title {
    position: absolute;
    top: 53px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    letter-spacing: 3px;
    color: #888;
    z-index: 100;
    text-align: center;
    white-space: nowrap; 
    display: none;
}

#home-video {
    width: 415px;
    height: 400px;
    object-fit: cover;
    object-position: center;
    margin: auto;
    display: block;
    margin-bottom: 50px;
}

.textanim {
    text-align: center;
    font-family: Roboto;
    font-style: italic;
    font-weight: 300;
    font-size: 22px;
    letter-spacing: 1px;
    color:  #fff;
    /*text-transform: uppercase;*/
    position: absolute;
    /*white-space: nowrap;*/
    width: max-content; 
    transform: translate(-50%, -50%);
    left: 50%;
    top: 50%;
}


@media (max-width: 970px) {
    .pledge-grid {
        display: flex !important;
        flex-direction: column !important;
        gap: 30px !important;
        align-items: center !important;
    }
}
        
@media (max-width: 1220px) { /* Compensate for title dropping down at 1220px by a few px */
    #home-title {
        margin-top: -12px;
    }
}

@media (max-width: 768px) {
    #home-title {
        margin-top: 20px;
    }
    
    #home-video {
        width: 60vw;
        height: 60vw;
        max-width: 350px;
        max-height: 350px;
        margin-top: 10px;
    }
    
    #close-popup {
        top: 20px !important;
    }
}

@media (max-width: 480px) {
    #home-title {
        font-size: 9px;
        margin-top: 33px;
    }
    
    #home-video {
        width: 70vw;
        height: 70vw;
        max-width: 300px;
        max-height: 300px;
    }
    
    .textanim {
        font-size: 22px;
    }
}

@media (max-width: 420px) {
    .textanim {
        font-size: 17px;
    }
}        

@media (max-width: 340px) {
    .textanim {
        font-size: 15px;
    }
}       



.textanim span {
  display: inline-block;
  animation: slideLeft 1.5s forwards;
  opacity: 0;
  transition-timing-function: cubic-bezier(0.075, 0.82, 0.165, 1);
}

@keyframes slideLeft {
  from {
    opacity: 0;
    transform: translateX(-150px);
  } 
  to {
    opacity: 1;
    transform: translateX(0%);
  }
}
.textanim.second {
    margin-bottom: -60px !important;
}




.pulse {
  animation-duration: 1s;
  animation-fill-mode: both;
}

.pulse:hover {
  animation-name: pulse;
  animation-iteration-count: 1;
}

@keyframes pulse {
    from { transform: scale3d(1, 1, 1); }
    50% { transform: scale3d(1.05, 1.05, 1.05); }
    to { transform: scale3d(1, 1, 1); }
}

  /* Tune In */
.tune-in {
    color: #ff4444;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    transition: all 1s ease;
    padding: 8px 16px;
    border: 1px solid transparent;
  	border-radius: 8px;
    position: relative;
}

.tune-in:hover {
    background-color: #3366cc; 
    color: #fff;
    /*border-color: #ff4444;*/
    transform: translateY(-2px);
}

.ripple-button {
    overflow: hidden;
    position: relative;
}
.ripple-button > span:not(.ripple-circle) {
    position: relative;
}
.ripple-circle {
    border-radius: 50%;
    position: absolute;
    width: 0;
    height: 0;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: -1;
    transition: width 0.5s, height 0.5s, background-color 0.5s;
}
.ripple-explode {
    width: 600px;
    height: 600px;
    background-color: rgb(51, 102, 204);
}
.ripple-desplode {
    width: 0;
    height: 0;
    background-color: rgba(51, 102, 204, 0.3);
}


.pledge {
    position:relative;
    text-align:center;
    max-width:300px;
    display:flex;
    flex-direction:column;
    margin:0 auto;
}

.pledge > p {
    font-size: 16px;
    line-height:1.6;
    margin:0 0 30px 0;
    color:#ccc;
    flex-grow:1;
    font-family: merriweather;
}

#explore-btn {
    text-align: center;
    cursor: pointer;
    margin-bottom: 40px;
    color: #666;
    font-size: 18px;
    letter-spacing: 3px;
    margin-bottom: 15px;
    transition: 0.3s ease;
}

#explore-btn svg {
    stroke: #666666;
    stroke-width: 2;
    transition: 0.3s ease;
}

#explore-btn:hover,
#explore-btn:hover svg {    
    color: #fff;
    stroke: #fff;
}


#pledge-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    pointer-events: all;
    opacity: 0;
    transition: opacity 0.3s ease;
}

#pledge-popup.show {
    opacity: 1;
}

#popup-content {
    background: #1a1a1a;
    border: none;
    border-radius: 10px;
    padding: 20px;
    max-width: 510px;
    width: 95%;
    position: relative;
    transform: scale(0.7);
    transition: transform 0.3s ease;
    max-height: 98vh;
    overflow-y: auto;
}

#pledge-popup.show #popup-content {
    transform: scale(1);
}

/* Form field styling */
.field {
    background: #2a2a2a !important;
    border: 1px solid #444 !important;
    border-radius: 5px !important;
    padding: 20px 20px !important;
    color: #fff !important;
    font-size: 14px !important;
    font-family: Arial, sans-serif;
    outline: none;
    transition: border-color 0.3s ease !important;
    width: 100%;
    box-sizing: border-box;
}

.field:focus {
    border-color: #3366cc !important;
}

#state {
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease !important;
}

#state.show {
    opacity: 1;
    max-height: 100px;
}

input:focus:invalid:focus, 
textarea:focus:invalid:focus, 
select:focus:invalid:focus {
  box-shadow: unset;
}

.submit-btn {
    background: #3366cc;
    color: #fff;
    border: none;
    padding: 15px;
    border-radius: 5px;
    font-size: 14px;
    letter-spacing: 2px;
    cursor: pointer;
    margin-top: 10px;
    transition: background 0.3s;
    position: relative;
}

.submit-btn:hover {
    background: #2855b3;
}

.submit-btn:disabled {
    background: #666;
    cursor: not-allowed;
}

.loading {
    opacity: 0.7;
}

.error {
    color: #ff4444;
    font-size: 12px;
    margin-top: 5px;
}

.success {
    color: #00ff00;
    font-size: 12px;
    margin-top: 5px;
}

select {
    background-color: #2d2d2d;
    color: #ffffff;
    border: 1px solid #404040;
    padding: 8px 12px;
    font-size: 14px;
    border-radius: 4px;
    width: unset;
}

select:focus {
    background-color: #2d2d2d;
    outline: none;
    border-color: #555555;
}




