body {
    margin: 0 auto;
    width: 100%;
    max-width: 100%;
    font-family: 'Gill Sans', 'Gill Sans MT', Calibri, 'Trebuchet MS', sans-serif;
    color: #E5E5D5;
    background-color: #3C2F2A;
    padding: 0 1rem;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    box-sizing: border-box;
}


.organge {
    color: #bf5525;
}

h1, h2 {
    text-align: center;
    margin: auto;
}

h1 {
    font-size: 24px;
    font-weight: bold;
    color: #E5E5D5;
    text-align: center;
    margin-bottom: 20px;
}

h2 {
    font-size: 20px;
    font-weight: bold;
    color: #E5E5D5;
    text-align: center;
    margin: 0;

}


p {   
    margin: 0;
    font-size: 16px;
    text-align:left;
 
}  

#closeScanner {
    display: none; 
    position: fixed; 
    top: 10px; 
    right: 10px; 
    z-index: 10000;
    background-color: #bf5525;
    padding: 8px;
    color: #E5E5D5;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
}

#closeScanner:hover {
    background-color: #E5E5D5;
    color: black;
    cursor: pointer;
}

#closeAnotherScanner {
    margin-left: 10px;
    background-color: #bf5525;
    padding: 8px;
    color: #E5E5D5;
    font-weight: 500;
    font-size: 16px;
    border-radius: 8px;
}

#closeAnotherScanner:hover {
    background-color: #E5E5D5;
    color: black;
    cursor: pointer;
}

#scanner {
    width: 100%;
    height: auto;
    position: fixed;
    top: 0;
    left: 0;
    z-index: 1000;
}

.rescan-btn {
    background-color: #bf5525;
    box-shadow: 0px 0px 5px #e7996f;
    padding: 12px 24px;
    font-size: 1.1rem;
    margin-top: 20px;
    border-radius: 12px;
}
  


/* Buttons */

.button {
    align-self: stretch;
    box-shadow: 0px 0px 5px #e7996f;
    border-radius: 15px;
    background-color: #ccccbb;
    height: 57px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    padding: 10px;
    box-sizing: border-box;
     
}

.btn {
    width: 100%;
    height: 3.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    color: #E5E5D5;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.sm-btn{
    width: 80%;
    height: 3.5rem;
    font-size: 1.2rem;
    font-weight: bold;
    border-radius: 15px;
    border: none;
    color: #E5E5D5;
    cursor: pointer;
    box-shadow: 0px 0px 5px rgba(255, 255, 255, 0.2);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn:hover {
    transform: scale(1.05);
    box-shadow: 0px 0px 10px rgba(255, 255, 255, 0.3);
}



/* Button Colors */
.btn-blue {
    background-color: #236a89;
    box-shadow: 0px 0px 5px #57b4db;
}

.btn-orange {
    background-color: #bf5525;
    box-shadow: 0px 0px 5px #e7996f;
}

.btn-green {
    background-color: #848e51;
    box-shadow: 0px 0px 5px #848e51;
}

.instruction-btn {
    background-color: #CCCCBB;
    color: black;
    box-shadow: 0px 0px 5px #848e51;
}

.cover-btn {
    background-color: #5a220c;
    color: #CCCCBB;
    box-shadow: 0px 0px 5px #431402;
}



/* Actions */
.actions {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.action-item p {
    margin-bottom: 0.5rem;
    font-size: 1rem;
}

.action-item a{
    text-decoration: none;
    color: #E5E5D5;
}

.card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

#card-name {
    font-size: 2rem;
    margin-bottom: 30px;
    color: #F6F3E9;
}

.card-container {
    width: 100%;
    max-width: 100%;
    padding: 20px 30px;
    border-radius: 20px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card-container img.card-image {
    width: 100%;
    max-width: 100%;
    height: auto;
    border-radius: 15px;
    display: block;
    justify-content: center;
}
  


/* Audio Controls */
.audio-controls {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2em;
    margin: 1.5em 0;
}

.control-btns {
    background: #3C2F2A;
    border-radius: 50%;
    width: 80px;
    height: 80px;
    border: none;
    color: #CCCCBB;
    font-size: 2em;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    /* padding: 0.5em; */
    cursor: pointer;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
}

.control-btns .fa-solid {
    font-size: 1em;
}

.control-btns:hover {
    background: #3C2F2A;
    color: whitesmoke;

}

.play-pause i {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
    width: 100%;
    line-height: 1;
    vertical-align: middle;
}

.play-pause {
    background-color: #858E51;
    border: 2px solid #CCCCBB;
    text-align: center;
}

.play-pause:hover {
    background-color: #CCCCBB;
    color: #858E51;
    border: 2px solid #858E51;
}

#audio-controls #play,
#audio-controls #pause {
    background-color: #858E51;
    color: #fff;
    font-size: 1.5em;
}

.continue-container {
    display: flex;
    justify-content: end;
    align-items: center;
    margin-top: 2em;
    gap: 15px;
    align-self: flex-end;
}


/* Story cover */
.story-cover {
    width: 100%;
    max-width: 900px;
    background-color: #4B3B35;
    border-radius: 20px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
    overflow: hidden;
}
  
.frame-parent {
    padding: 2em;
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.frame-group {
    margin-top: 10px;
    margin-bottom: 10px;
}
.intro-image-parent {
    display: flex;
    flex-direction: column;
    align-items: center;
}
  
.image {
    max-width: 100%;
    border-radius: 12px;
    margin-bottom: 1.5em;
    box-shadow: 0 0 6px rgba(0,0,0,0.4);
}
  
.container {
    text-align: center;
    margin-bottom: 2em;
}
  
.container h1 {
    font-size: 2em;
    margin-bottom: 0.5em;
    color: #E7996F;
}
  
.container p {
    font-size: 1em;
    line-height: 1.6;
    color: #D9DBC9;
    margin-bottom: 0.5em;
}

.continue-container {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    margin-top: 2em;
    gap: 15px;
    align-self: flex-end;
}

.continue-btn {
    margin: 0;
    color: #CCCCBB;
    font-size: 19px;
}

.continue-button {
    background-color: #CCCCBB;
    color: #858E51;
    border: 4px solid #858E51;
    border-radius: 50%;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    padding: 0;
}

.continue-button:hover {
    background-color: #858E51;
    color: #CCCCBB;
    border: 4px solid #CCCCBB;
}

.continue-button i{
    text-decoration: none;
    color: black;
}

.home-btn {
    background-color: #9d9d9d;
    color: black;
    font-weight: bold;
    text-decoration: none;
    font-size: 1em;
    padding: 0.9em 2em;
    border: none;
    border-radius: 12px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.25);
    cursor: pointer;
    transition: transform 0.2s ease, background 0.3s ease;
    margin-top: 20px;
}
  
.home-btn:hover {
    background-color: #7a7a7a;
    transform: scale(1.02);
}
  

@media (min-width: 1000px) {    
    .card-container img.card-image {
        max-width: 400px;
        margin: 0 auto;
        display: block;
    }
}

  
@media (max-width: 768px) {
    .card-container {
      padding: 16px;
      width: 90%;
    }
  
    .card-container img.card-image {
      width: 100%;
      max-width: 100%;
      height: auto;
    }
  
    .control-btns {
      width: 60px;
      height: 60px;
      font-size: 1em;
    }
  
    .control-btns .fa-solid {
      font-size: 1.2em;
    }
  
    #card-name {
      font-size: 1.5rem;
      margin-bottom: 1rem;
    }
  
    .btn, .home-btn {
      font-size: 1rem;
      height: 3rem;
      padding: 0.75rem 1rem;
    }
  
    .rescan-btn {
      margin-top: 1rem;
    }
  }
  