html {
      font-family: "Poppins", sans-serif;
}
body {
    padding-top:100px;
    margin: 0;
    font-family: "Poppins", sans-serif;
    background-color: #f9f9f9;
    color: #333;
    line-height: 1.6;
  }
  
  h1 {
    color: rgb(0 54 107);
  }
  
  section {
    margin-bottom: 2em;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  }
  
  input {
    padding: 0.5em;
    width: 300px;
    margin-right: 1em;
    margin-bottom:1em;
  }
  
  #modalMessage {
    max-height:500px;
    overflow-y:scroll;
}

#stravaConnectButton {
    background-image: url('stravaConnect.png');
    width:237px;
    height:48px;
    position:relative;
    background-size:cover;
    cursor:pointer;
}

#strava-section {
    margin-top:50px;
}

#join-strava {
  display:none;
}
/*
#poolCreatorModal {
  width:100%;
  height:100%;
  background-color:white;
  padding:10px;
  position:absolute;
  transform: translate(-50%, -50%);
  left:50%;
  top:50%;
}*/




/*#join-strava {
    width:180px;
    height:28px;
    position:relative;
    background-color:rgb(255, 91, 31);
    color:white;
    padding:5px;
    border-radius:4px;
    text-align:center;
    align-content:center;
    cursor:pointer;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}*/

#disconnectContainer {
  margin-top:20px;
  width:100%;
  text-align:right;
}

#progress-result, #pool-result {
  background-color:white;
  border-radius:5px;
  box-shadow: 0px 2px 1px 1px rgba(31, 30, 30, 0.1);
  padding:25px;
  margin-bottom:4em;
}

#paymentAddress, #buyPaymentAddress {
    word-wrap: break-word;  /* Allows long words (like wallet addresses) to break onto new lines */
    max-width: 90%;  /* Adjust width to prevent overflow */
    margin: 0 auto 0 auto;
    user-select: text; /* Enable selection for the address and amount */
    cursor: text;      /* Show the text cursor when hovering over these elements */
}
#paymentContainer, #paymentInstructions {
    position:fixed;
    /*background-image:linear-gradient(to bottom, #8585ab, #a5e2cc);
    border-style:solid;
    border-color:grey;
    border-width:1px;
    box-shadow: 2px 2px 2px 2px rgba(139, 139, 139, 0.1);*/
    box-shadow: 0px 2px 10px 10px rgba(31, 30, 30, 0.1);
    color:black;
    background-color:white;
    border-radius:5px;
    padding:50px 0 50px 0;
    z-index:20;
    text-align:center;
    display:none;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

#title {
    color:rgb(0 54 107);
    width:240px;
    margin:0 auto;
}

#stravaImage {
    margin:0px;
    width:100px;
    top:-10px;
    position:relative;
    height:auto;
}

#menuButtonsContainer {
  width:100%;
  display:inline-block;
  text-align:right;
}

#mobileMenuButton {
  display:none;
}

#menuItems {
  width:70%;
  margin:0 auto;
  display:flex;
  align-items: center; /* Align items to the top */
}


#loginButton {

}

.menuButton {
  display:inline-block;
  width:120px;
  right:100px;
  top:40px;
  cursor:pointer;
  height:20px;
  color:rgb(0 54 107);
  font-weight: bold;
}

#loginButtonCTA {
  margin:0 auto;
  max-width:100px;
  text-align:center;
  cursor:pointer;

}

#loggedOutUI {
  margin:120px auto;
  width:70%;
}

#runPoolLogo {
  margin:0px;
  width:120px;
  height:auto;
}

#menuBar {
    top:0px;
    position:absolute;
    left:0px;
    width:100%;
    height:70px;
    background-color:rgb(255, 254, 250);
    box-shadow:3px 4px 8px rgba(0, 0, 0, 0.1);
    padding-top:15px;
    padding-bottom:20px;
}

#qrCodeImage {
    width:100%;
    height:auto;
}


#qrContainer {
    background-color:white;
    display:inline-flex;
    width: 150px;
    border-radius:10px;
    height:150px;
    padding:10px;
    text-align:center;
    margin-bottom:10px;
}

#qrSquare {
    width:160px;
    height:160px;
    background-color:white;
    position:absolute;
    padding:10px;
    margin: 0 auto;
    border-radius:5px;
}

.loggedInSections {
  margin:50px auto 0 auto;
  width:70%;
}

#loggedInUI {
  min-height:100vh;
}

.ctaButton {
  background-color:rgb(0 54 107);
  color:white;
  border-radius:100px;
  display:inline-block;
  width:120px;
  right:100px;
  top:40px;
  cursor:pointer;
  text-align: center;
  padding:8px;
  font-weight: bold;
}

.poolListItem {
  background-color:white;
  border-radius:5px;
  box-shadow: 0px 2px 1px 1px rgba(31, 30, 30, 0.1);
  padding:25px;
  margin-bottom:15px;
}



#paymentAddress, #buyPaymentAddress {
    word-wrap: break-word;  /* Allows long words (like wallet addresses) to break onto new lines */
    max-width: 90%;  /* Adjust width to prevent overflow */
    margin: 0 auto 20px auto;
    user-select: text; /* Enable selection for the address and amount */
    cursor: text;      /* Show the text cursor when hovering over these elements */
}
#copyBuyPaymentAddress, #copyBuyPaymentAmount {
    margin-bottom:20px;
    margin-top:10px;
}

#paymentAmount {
  margin-bottom:20px;
}

.uiButton {
    border-radius:0px;
    border-style:none;
    border-radius:4px;
    border-width:0px;
    cursor:pointer;
    background-color:rgb(0 54 107);
    color:white;
    font-family: "Poppins", sans-serif;
    font-size:16px;
    padding:1.2em;
    align-items: center;
    letter-spacing:0.02rem;

}

.stravaButton {
    border-radius:0px;
    border-style:none;
    border-radius:4px;
    border-width:0px;
    width:130px;

    text-align:center;
    cursor:pointer;
    background-color:rgb(0 54 107);
    color:white;
    font-family: "Poppins", sans-serif;
    font-size:14px;
    padding:1.2em;
    margin:10px;
    align-items: center;
    letter-spacing:0.02rem;

}



/* Modal container, initially hidden */
.modal {
    display: none; 
    position: fixed; 
    z-index: 20; 
    left: 0;
    top: 0;
    width: 100%; 
    height: 100%; 
    overflow: auto; 
    background-color: rgba(0, 0, 0, 0.4); 
}


/* Modal content box */
.modal-content {
    background-color: #fefefe;
    margin: 5% auto; 
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 400px;
    border-radius: 10px;
    box-shadow: 0px 5px 15px rgba(0, 0, 0, 0.3);
    text-align: center;
}

/* Close button in top right corner */
.close-button {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.loader {
  font-family: "Poppins", sans-serif;
  pointer-events: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 1); /* Light background to cover the page */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999; /* Make sure it's above everything */

}

  
  /* Spinner */
  .spinner {
    width: 50px;
    height: 50px;
    border: 6px solid #f3f3f3;
    border-top: 6px solid #3498db;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right:10px;
  }
  
  /* Spinner Animation */
  @keyframes spin {
    0% {
      transform: rotate(0deg);
    }
    100% {
      transform: rotate(360deg);
    }
  }


footer {
  padding: 20px;
  height: 90px;
  width: 100%;
  margin-top:20px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  align-items: center;
  background-color:rgba(0, 0, 0, 0.8)
}
#footerContainer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px; /* Adjusts the spacing between items */
}

.footerItem {
  margin:0 auto;
  width:20px;
  height:20px;
}


header h1 {
  margin: 0;
  font-size: 2rem;
}

main {
  margin: 2rem auto;

}

#qrContainerLogin {
  margin:20px;
}

section {
  margin-bottom: 5rem;
  background: none;
  padding:2rem;
  border-radius: 8px;
  box-shadow: none;
}

.runnerImage {
  width:400px;
  margin-right:50px;
  margin-bottom:50px;
  height:auto;
  border-radius:20px;
  display:inline-block;
}

#runIllustration {
  width:400px;
  margin-right:50px;
  margin-bottom:50px;
  height:auto;
  border-radius:20px;
  display:inline-block;
}

section h2 {
  color: rgb(0 54 107);
  font-size: 2.4rem;
  margin-top: 0;
}

#introSection1 {
  display: flex;
  align-items: center; /* Align items to the top */
  gap: 2rem;
  padding: 2rem;
}

.poolJoined {
  border-color:green;
  border-style:solid;
}

#introSection2 {
  display: flex;
        align-items: center; /* Align items to the top */
        gap: 2rem;
        padding: 2rem;
}

#introSection3 {
  text-align:center;background-color:rgb(255, 255, 255);box-shadow:0px 4px 10px rgb(0, 0, 0, 0.1);
  padding:2rem;
}

#introSection4 {
  display: flex;
        align-items: center; /* Align items to the top */
        gap: 2rem;
        padding: 2rem;
}

/* Optional tiny styles */
.historyList { display: grid; gap: 12px; margin-top: 12px; }
.poolHistoryCard {
  border: 1px solid #eee; border-radius: 12px; padding: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04);
}
.badge { padding: 2px 8px; border-radius: 999px; font-size: 12px; background:#eef; color:#334; }
.badge.win { background:#e8f7ee; color:#137333; }
.badge.lose { background:#fde8e8; color:#b00020; }

.amount.pos { color: #137333; font-weight: 600; }
.amount.neg { color: #b00020; font-weight: 600; }
.tx { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }


ul {
  padding-left: 1.2rem;
}

#introText1 {
  display:inline-block;width:500px;margin:0 auto;
}

#introText2 {
  display:inline-block;width:500px;
}

#introText4 {
  display:inline-block;width:500px;
}
#mobileMenu {
  display:none;
}


/* General tweaks for small screens */
@media (max-width: 600px) {
    body {
      margin: 3em 0em 0em 0em;
      text-align:center;
    }

    #menuBar {
      z-index:10;
    }

    #menuButtonsContainer {
      display:none;
    }
    #mobileMenu {
      display:none;
      top:110px;
      width:100%;
      height:100%;
      position:absolute;
      left:0px;
      background-color: white;
    }
    .mobileMenuButt{
      height:80px;
      width:100%;
      text-align:center;
      align-content: center;
      border-width: 0 0 1px 0;
      border-style:solid;
      border-color:#d0d0d0;
    }

    #mobileMenuButton {
      display:inline-block;
      pointer-events:auto;
      cursor: pointer;
      right:30px;
      width:30px;
      height:30px;
      position:absolute;
      text-align:right;
      top:30px;
    }
    #mobileMenuButton       img {
        width:100%;
        height:100%;
      }


    .loggedInSections {
      margin:40px auto 0 auto;
      width:100%;
    }
  
    section {
      padding:0px;
      /*width:100%;*/
    }

    #loggedOutUI {
      width:90%;
      margin: 0 auto;
    }

    #introSection1 {
      display:block;
      padding:0;
    }

    .runnerImage {
      width:100%;
      height:200px;
      margin:0 auto 20px auto;
      display:block;
      object-fit:cover;
      object-position:top;
    }

    li {
    list-style-type: none;
  }

    #runIllustration {
      width:100%;
      
      margin:0 auto 20px auto;
      display:block;
      
    }

    #introText1 {
      width:100%;
    }

    #introText4 {
      display:block;width:100%;
    }

    #introSection2 {
      display:block;
      padding:0;
    }

    #paymentInstructions {
      width:90%;
    }

    #introSection4 {
      display:block;
      padding:0;
    }
    iframe {
      width:100%;
    }
    #introText2 {
      width:100%;
    }

    #poolList {
      width:95%;
      margin:0 auto;
    }


    h1 {
        margin-top:4em;
    }

    .stravaButton {
        margin:10px auto;
    }

    #stravaConnectButton {
        margin:10px auto;
    }
  
    input {
      width: 90%;
      margin: 0.5em 0 1.3em 0;
    }
  
    button.uiButton {
      width: 100%;
      margin: 0.5em 0;
    }
  
    #paymentContainer {
      width: 90%;
      padding: 30px 0;
    }
  
    #qrContainer {
      width: 120px;
      height: 120px;
      padding: 5px;
    }
  
    #qrSquare {
      width: 120px;
      height: 120px;
    }

    #join-strava {
        margin:0 auto 1em auto;
    }
  
    .modal-content {
      width: 90%;
      margin: 30% auto;
    }
  
    h1 {
      font-size: 1.5em;
    }
  
    h2 {
      font-size: 1.2em;
    }

    button.uiButton {
        width:30%;
        font-size:0.8em;
        padding:0.5em;
    }
  }
  