body, html {
    margin: 0;
    padding: 0;
    height: 100%;
    overflow: hidden;
    touch-action: none;
}

body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: #f0f0f0;
    font-family: Arial, sans-serif;
}

.temple-shelf {
    width: 100%;
    height: calc(100% - 50px);
    background-color: #f5e6d3;
    position: relative;
    display: flex;
    overflow: hidden;
    border-radius: 10px 10px 0 0;
    box-shadow: 0 0 20px rgba(0,0,0,0.1);

}
.side-shelf {
    width: 15%;
    height: 100%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="100" height="100" viewBox="0 0 100 100"><circle cx="50" cy="50" r="40" fill="none" stroke="gold" stroke-width="2"/></svg>');
    background-size: 50px 50px;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 20px 0;
    box-sizing: border-box;
    position: relative;
}

.side-shelf::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 80%;
    background-image: url('/static/images/sidewall_marigold.png');
    background-size: contain;
    background-repeat: repeat-y;
    opacity: 0.7;
    pointer-events: none;
}

.center-area {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
}

.om-symbol {
    font-size: 20vw;
    color: rgba(255, 215, 0, 0.5);
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.om-background {
    width: 50%;
    height: 50%;
    background-color: rgba(255, 215, 0, 0.1);
    border-radius: 50%;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.hanging-bell {
    width: 8%;
    height: 10%;
    background-color: gold;
    border-radius: 20px 20px 50% 50%;
    margin: 0 1%;
}

.bells-container {
    display: flex;
    justify-content: space-around;
    width: 100%;
    position: absolute;
    top: 20px;
    pointer-events: none;
}

.garland-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    background-image: url('/static/images/marigold_garland.png');
    background-size: contain;
    background-repeat: repeat-x;
    pointer-events: none;
    animation: garlandSway 3s ease-in-out infinite;
}

@keyframes garlandSway {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(5px); }
}

.draggable-image {
    position: absolute;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: move;
    touch-action: none;
    border: 2px solid transparent;
    z-index: 1;
}

.draggable-image:hover {
    border-color: #4CAF50;
}

.remove-btn {
    position: absolute;
    top: 0;
    right: 0;
    background-color: transparent;
    border: none;
    font-size: 20px;
    cursor: pointer;
    display: none;
}

#activities-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: #228B22;
    padding: 10px;
    box-sizing: border-box;
    z-index: 1050;
    display: flex;
    justify-content: space-around;
}



Bottom Bar: #F5DEB3 (Warm Golden Brown)
Button: #FFD700 (Golden Yellow)
Text: #333333 (Dark Gray)


#customize-toggle, #activities-toggle {
    width: 30%;
    padding: 10px;
    background-color: #FFC107;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 16px;
}

#bottom-sheet {
    position: fixed;
    bottom: -100%;
    left: 0;
    width: 100%;
    background-color: #e0e0e0;
    transition: bottom 0.3s ease-out;
    z-index: 1040;
    max-height: 50vh;
    overflow-y: auto;
}

.tab-content {
    padding: 10px;
    display: none;
}

.tab-content.active {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.control-group {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}

select, button, input[type="file"], input[type="text"] {
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}

button {
    background-color: #FFC080;
    /* #4CAF50 */
    /* padding: 1px 80px; */
    color: #333333;
    border-radius: 40px;
    border: none;
    transition: background-color 0.3s;
    font-weight: bold;  
}

button:hover {
    background-color: #45a049;
}

#background-music {
    max-width: 100%;
}

#flower-container, #aarti-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    overflow: hidden;
    z-index: 1000;
}

.flower {
    position: absolute;
    width: 20px;
    height: 20px;
    object-fit: contain;
    opacity: 0.8;
    pointer-events: none;
}

.aarti {
    position: absolute;
    width: 60px;
    height: 60px;
    object-fit: contain;
    transition: left 0.05s linear, top 0.05s linear;
}

@media (max-width: 768px) {
    .control-group {
        flex-direction: row;
        align-items: stretch;
    }

    select, button, input[type="file"], input[type="text"] {
        width: 100%;
    }
}

/* Media query for mobile devices */
@media (max-width: 768px) {
    .flower-button,
    .whatsapp-icon,
    .music-icon,
    .open-discussion {
        bottom: 65px;  /* Adjust for smaller screens */
    }

    .flower-button img {
        width: 60px;
        height: 60px;
    }

    .whatsapp-icon img,
    .music-icon img,
    .open-discussion img {
        width: 50px;
        height: 50px;
    }
}

body {
    touch-action: pan-x pan-y;
    -webkit-overflow-scrolling: touch;
    overflow-x: hidden;
    transform-origin: top left;
}

.temple-shelf {
    touch-action: none;
}



const style = document.createElement('style');
style.textContent = `
    @keyframes pulse {
        0% { transform: scale(1); opacity: 0.7; }
        50% { transform: scale(1.2); opacity: 1; }
        100% { transform: scale(1); opacity: 0.7; }
    }
    .resize-hint {
        transition: opacity 0.5s ease-out;
    }
`;
document.head.appendChild(style);


.resize-tutorial {
    pointer-events: none;
    transition: opacity 0.5s ease-out;
}

.hand-pointer {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.custom-file-upload-button {
    display: inline-block;
    padding: 10px 15px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 14px;
    transition: background-color 0.3s;
}

.custom-file-upload-button:hover {
    background-color: #45a049;
}

.add-god-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 10px;
    width: 100%;
}

#god-selector, .custom-file-upload {
    flex: 0 1 calc(50% - 5px); /* 5px accounts for half of the gap */
    max-width: calc(50% - 5px);
    min-width: 0;
}

#god-selector {
    padding: 10px;
    font-size: 16px;
    border: 1px solid #ddd;
    border-radius: 5px;
    appearance: none;
    background-color: white;
    width: 100%;
    box-sizing: border-box;
}

.custom-file-upload {
    display: flex;
}

.custom-file-upload-button {
    width: 100%;
    padding: 10px;
    cursor: pointer;
    background-color: #4CAF50;
    color: white;
    border: none;
    border-radius: 5px;
    font-size: 16px;
    text-align: center;
    transition: background-color 0.3s;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
}

.custom-file-upload-button:hover {
    background-color: #45a049;
}

/* Ensure text doesn't overflow on very small screens */
@media (max-width: 350px) {
    #god-selector, .custom-file-upload-button {
        font-size: 14px;
    }
    .custom-file-upload-button {
        padding: 10px 5px;
    }
}
#loading-indicator {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 20px;
    border-radius: 5px;
    z-index: 9999;
}


.user-area {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    display: flex;
    align-items: center;
    padding: 5px 10px;
    background-color: rgba(255, 153, 51, 0.8); /* Saffron color with transparency */
    border-radius: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}


.sign-in-prompt {
    display: flex;
    align-items: center;
    gap: 1px;
}

.sign-in-prompt span {
    color: #8B4513; /* SaddleBrown - earthy brown color */
    font-size: 14px;
    font-weight: bold;
}

.sign-in-button {
    background-color: #4CAF50; /* Green */
    color: white;
    border: none;
    padding: 1px 1px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 14px;
    transition: background-color 0.3s;
}

.sign-in-button:hover {
    background-color: #45a049;
}




.user-welcome {
    color: #8B4513;
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
}

.user-dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: white;
    border: 1px solid #ddd;
    border-radius: 0 0 5px 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

#sign-out-button {
    width: 100%;
    padding: 10px;
    background-color: white;
    color: #4CAF50;
    border: 1px solid #ddd;;
    text-align: left;
    cursor: pointer;
}

#sign-out-button:hover {
    background-color: #f0f0f0;
}



@media (max-width: 600px) {
    .sign-in-prompt {
        flex-direction: column;
        text-align: center;
    }

    .sign-in-button {
        margin-top: 10px;
    }
}


onst style = document.createElement('style');
style.textContent = `
  .error-message {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #ff6b6b;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    z-index: 1000;
    text-align: center;
  }
`;
document.head.appendChild(style);


.flower-button {
    position: fixed;
    bottom: 0px;  /* Adjust this value to position above the activities bar */
    right: 20%;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.flower-button img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.flower-button:hover {
    transform: scale(1.1);  /* Add a hover effect */
}

.temple-shelf {
    position: relative;
}

#activities-bar {
    position: relative;
    z-index: 1013; /* Ensure it's above the WhatsApp icon */
}

.temple-shelf .flower-button {
    position: absolute !important;
    bottom: 0px !important;
    right: 20% !important;
    z-index: 1012;
    /* other properties */
}


.whatsapp-icon {
    position: fixed;
    bottom: 70px;  /* Adjust this value to align with the flower button */
    left: 10px;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.whatsapp-icon img {
    width: 60px;
    height: 60px;
}


.temple-shelf {
    position: relative;
}

#activities-bar {
    position: relative;
    z-index: 1013; /* Ensure it's above the WhatsApp icon */
}

.temple-shelf .whatsapp-icon  {
    position: absolute !important;
    bottom: 1px !important;
    left: 10px !important;
    z-index: 1012;
    /* other properties */
}


.open-discussion {
    position: fixed;
    bottom: 70px;  /* Adjust this value to align with the flower button */
    right: 10px;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.open-discussion img {
    width: 70px;
    height: 60px;
}

.temple-shelf {
    position: relative;
}

#activities-bar {
    position: relative;
    z-index: 1013; /* Ensure it's above the WhatsApp icon */
}

.temple-shelf .open-discussion {
    position: absolute !important;
    bottom: 1px !important;
    right: 10px !important;
    z-index: 1012;
    /* other properties */
}






/* Add this to your static/css/styles.css file */

.dialog {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.4);
}

.dialog-content {
    background-color: #fefefe;
    margin: 15% auto;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 500px;
    border-radius: 8px;
}

.container {
    max-width: 600px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.create-post, .post {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 15px;
}

.create-post textarea, .create-post input, .post input {
    width: 100%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.post-header {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    margin-right: 10px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
}

.post-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
}

.post-actions button {
    background-color: #f0f0f0;
    color: #333;
}

.comments {
    margin-top: 15px;
}

.comment {
    background-color: #f0f0f0;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 10px;
}

.comment-form {
    margin-top: 15px;
}




#background-selector{
    margin: 5px;
    padding: 8px 12px;
    font-size: 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    background-color: white;
    cursor: pointer;
}


.bell-button {
    position: fixed;
    bottom: 50px;  /* Adjust this value to align with the flower button */
    right: 60%;    /* Adjust this value to position it to the left of the flower button */
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.bell-button img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.bell-button:hover {
    transform: scale(1.1);  /* Add a hover effect */
}

/* Update the media query to include the bell button */
@media (max-width: 768px) {
    .flower-button,
    .whatsapp-icon,
    .open-discussion,
    .bell-button {
        bottom: 65px;  /* Adjust for smaller screens */
    }

    .bell-button img {
        width: 60px;
        height: 60px;
    }





.aarti-button {
    position: fixed;
    bottom: 0px;  /* Adjust this value to position above the activities bar */
    right: 40%;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.aarti-button img {
    width: 80px;
    height: 80px;
    filter: drop-shadow(0 0 5px rgba(0,0,0,0.5));
}

.aarti-button:hover {
    transform: scale(1.1);  /* Add a hover effect */
}

.temple-shelf {
    position: relative;
}

#activities-bar {
    position: relative;
    z-index: 1013; /* Ensure it's above the WhatsApp icon */
}

.temple-shelf .aarti-button {
    position: absolute !important;
    bottom: 0px !important;
    right: 40% !important;
    z-index: 1015;
    /* other properties */
}



    .circular-devotion-widget {
      position: fixed;
      top: 10px;
      right: 10px;
      z-index: 1000;
      font-family: Arial, sans-serif;
      transition: all 0.3s ease;
    }

    .widget-header {
      background-color: #FFC080;
      color: white;
      padding: 10px 15px;
      border-radius: 25px;
      cursor: pointer;
      display: flex;
      align-items: center;
      justify-content: space-between;
      box-shadow: 0 2px 5px rgba(0,0,0,0.2);
      transition: all 0.3s ease;
    border: 2px solid #FF8C00; /* Add this line for the border */
    }

    .widget-header:hover {
      background-color: #FF8C00;
        border-color: #FFA500;
    }

    .expanded-header {
      display: flex;
      flex-direction: column;
      align-items: flex-start;
    }

    .expanded-header div {
      display: flex;
      align-items: center;
      margin: 2px 0;
    }

    .expand-icon {
      margin-left: 10px;
    }

    .widget-content {
      display: none;
      background-color: white;
      border-radius: 15px;
      padding: 15px;
      margin-top: 10px;
      box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }

    .circular-devotion-widget.expanded .widget-content {
      display: block;
    }

    .circular-devotion-widget.expanded .widget-header {
      border-radius: 15px 15px 0 0;
    }

    .streak-circles {
      display: flex;
      justify-content: space-between;
      margin-bottom: 15px;
    }

    .day-circle {
      width: 30px;
      height: 30px;
      border-radius: 50%;
      background-color: #f0f0f0;
      display: flex;
      align-items: center;
      justify-content: center;
      font-size: 12px;
    }

    .day-circle.completed {
      background-color: #4CAF50;
      color: white;
    }

    .log-visit-btn {
      width: 100%;
      padding: 10px;
      background-color: #FFA500;
      color: white;
      border: none;
      border-radius: 5px;
      cursor: pointer;
      transition: background-color 0.3s ease;
    }

    .log-visit-btn:hover {
      background-color: #FF8C00;
    }

    .flame-icon, .coin-icon {
      margin-right: 5px;
    }




.music-container {
    position: fixed;
    bottom: 0px;
    left: 10px;
    z-index: 1030;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.music-icon {
    position: relative;
}

.music-icon img {
    width: 60px;
    height: 60px;
}

.music-dropdown {
    position: absolute;
    top: -160px; /* Adjusted to accommodate controls */
    left: 0;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 10px;
    z-index: 1040;
    width: 200px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

#song-selector {
    width: 100%;
    padding: 8px;
    font-size: 16px;
    margin-bottom: 10px;
}

.music-controls {
    display: flex;
    justify-content: space-between;
    margin-top: 10px;
}

.music-controls button {
    padding: 5px 10px;
    font-size: 14px;
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    border-radius: 3px;
    cursor: pointer;
}

.music-controls button:hover {
    background-color: #e0e0e0;
}

@media (max-width: 768px) {
    .music-dropdown {
        left: 10px;
        width: 150px;
    }
}




#tutorial-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}

.tutorial-content {
  background: white;
  padding: 20px;
  border-radius: 10px;
  max-width: 80%;
  text-align: center;
}

#tutorial-title {
  font-size: 24px;
  margin-bottom: 10px;
}

#tutorial-description {
  font-size: 16px;
  margin-bottom: 20px;
}

#tutorial-next {
  padding: 10px 20px;
  background-color: #FFC080;
  color: white;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 16px;
}

#tutorial-next:hover {
  background-color: #FF8C00;
}

.hidden {
  display: none !important;
}