@import url("https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.3/font/bootstrap-icons.min.css");


@font-face {
    font-family: 'Oldenburg';
    src: url('/static/base/Oldenburg-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: 'Carlito';
    src: url('/static/base/Carlito-Regular.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

body {
    font-family: 'Oldenburg', sans-serif;
    cursor: url("/static/base/santa-cursor-small.png") 32 32, auto;
    max-width: 100%;
    overflow-x: hidden;
}

a {
    color: #9e5151;
    text-decoration: none;
}

a:hover {
    color: #3e522c;
    text-decoration: none; 
}


.spacer {
    height: 5px;
}

.spacer-10 {
    height: 10px;
}

.spacer-30 {
    height: 30px;
}

.btn-primary {
    background-color: #7b9962 !important;
    border-color: #7b9962 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
    background-color: #5f7a48 !important;
    border-color: #5f7a48 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-success {
    background-color: #7b9962 !important;
    border-color: #7b9962 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-success:hover, .btn-success:focus, .btn-success:active {
    background-color: #5f7a48 !important;
    border-color: #5f7a48 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-secondary {
    background-color: #9c8567 !important;
    border-color: #9c8567 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-secondary:hover, .btn-secondary:focus, .btn-secondary:active {
    background-color: #907756 !important;
    border-color: #907756 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-danger {
    background-color: #ba6e57 !important;
    border-color: #ba6e57 !important;
    font-family: 'Carlito', sans-serif;
}

.btn-danger:hover, .btn-danger:focus, .btn-danger:active {
    background-color: #a35943 !important;
    border-color: #a35943 !important;
    font-family: 'Carlito', sans-serif;
}

.accordion-button {
    background-color: #e2cfb8 !important;
    border-color: #e2cfb8 !important;
    color: #000000 !important;
    --bs-accordion-btn-focus-box-shadow: none;
}

.accordion-button:hover, .accordion-button:focus, .accordion-button:active {
    background-color: #e2cfb8 !important;
    border-color: #e2cfb8 !important;
    font-family: 'Oldenburg', sans-serif;
}

.accordion-header, .accordion-header:hover {
    font-family: 'Oldenburg', sans-serif;
}

.list-group-item.active {
    background-color: #7b9962 !important; 
    border-color: #7b9962 !important;
}

.list-group-item.active:hover {
    background-color: #7b9962 !important; 
    border-color: #7b9962 !important;
}

.alert-success {
    background-color: #dee4d1 !important; 
    border-color: #dee4d1 !important;
    color: #000000 !important;
}

.spinner-grow {
    color: #a7b97f !important;
}

.bg-secondary {
    background-color: #8c9ba6 !important;
    border-color: #8c9ba6 !important;
    font-family: 'Carlito', sans-serif;
}

.bg-secondary:hover, .bg-secondary:focus, .bg-secondary:active {
    background-color: #6a767f !important;
    border-color: #6a767f !important;
    font-family: 'Carlito', sans-serif;
}

.bg-info {
    background-color: #e2cfb8 !important;
    font-family: 'Carlito', sans-serif;
}

.alert-info {
    background-color: #f7e6d290 !important;
    border-color: #f7e6d290 !important;
    color: #000000;
    font-family: 'Carlito', sans-serif;
}

.bg-success {
    background-color: #e2cfb890 !important;
    font-family: 'Carlito', sans-serif;
}

.bg-light{
    background-color: #f7e6d290 !important;
}

#content {
    cursor: auto;
}

.iconcheese {
    margin-left:-3px;
    width: 10px;
    height: 20px;
    background-image: url('/static/images/cheese-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    padding-left: 26px;
  }

.iconwombat {
    margin-left:-3px;
    width: 10px;
    height: 20px;
    background-image: url('/static/images/wombat-icon.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    padding-left: 26px;
}

.iconrecipe {
    margin-left:-3px;
    width: 10px;
    height: 20px;
    background-image: url('/static/images/recipe-keeper-svgrepo-com.svg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    display: inline-block;
    padding-left: 26px;
  }

.sidebar {
    height:100vh;
    width: 230px;
    position: fixed;
    z-index:10;
    top:0;
    left:-0;
    bottom:0;
    background-color: #e2cfb8;
    color: #362103;
    overflow: visible;
    padding-left: 20px;
    display: flex;
    font-size:16px;
    flex-direction: column;
    transition: left 0.3s ease, width 0.3s ease;
}

.no-underline {
    text-decoration: none;
}

.menu {
    display: flex;
    flex-wrap: wrap;
    flex-direction: column;
    justify-content: flex-start;
    flex: 1;
    padding-bottom: 20px;
    overflow: hidden;
}
  
.menu > li {
    width: 100%;
    list-style: none;
    padding-top:15px;
    padding-bottom:5px;
    position: relative;
}
  
.menu > li > a {
    color: #362103;
    text-decoration: none;
    transition: color 0.1s ease;
    padding: -5px 0px;
    display: inline-block;
    font-weight: 500;
    letter-spacing: 0.5px;
}

.menu > li > a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 1px;
    bottom: 0px;
    left: 0;
    background-color: #362103;
    transform: scaleX(0);
    transition: transform 0.1s ease;
}

.menu > li > a:hover {
    color: #362103;
}

.menu > li > a:hover::after {
    transform: scaleX(0.8);
}

.menu > li > a.active,
.menu > li > a.active:hover {
  font-weight: 700;
}
  
.menu > li:not(.bottom)+.bottom {
    margin-top: auto;
}


.login-btn, .logout-btn {
    display: inline-block;
    padding: 8px 15px;
    background-color: #e2cfb8;
    border-color: #e2cfb8;
    color:  #e2cfb8;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.1s, transform 0.1s;
    font-family: 'Carlito', sans-serif;
}

.login-btn:hover, .logout-btn:hover {
    background-color: #a3927e;
    border-color: #a3927e;
}

.main{
    /*font-family: 'Carlito', sans-serif;*/
    margin-left:230px;
    font-size:14px;
    width: calc(100% - 230px); /* Subtract sidebar width from 100% */
    box-sizing: border-box; /* Include padding in the width calculation */
}

.content-wrapper {
    display: flex;
    min-height: 100vh; /* Full viewport height */
}

.endmain{
    margin-left:170px;
    padding: 5px 5px;
    font-size:15px;
}

.mytsptbutton {
    background-color: transparent;
    background-repeat: no-repeat;
    border: none;
    cursor: pointer;
    overflow: hidden;
    outline: none;
}

.extra-tiny {
    font-size: 0.5em; /* or 50% */
  }

.card {
    border: 1px solid #e2cfb890;
    margin-bottom: 0px;
    overflow: hidden;
}

.card-header {
    background-color: #e2cfb890;
    padding: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.card-separator {
    background-color: #f7e6d290;
    padding: 5px;
}

.card-footer {
    background-color: #f7e6d290;
}

.card-content {
    max-height: 0px;
    overflow: hidden;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    padding: 0 10px;
    padding-bottom: 10px;
}

.toggle-icon::before {
    content: '\2B9F';
    display: inline-block;
    transition: transform 0.3s ease-out;
}

.card-toggle:checked ~ .card-content {
    max-height: 1000px;
}

.card-toggle:checked + .card-header .toggle-icon::before {
    transform: rotate(180deg);
}

[aria-expanded="true"] .toggle-icon::before {
    transform: rotate(180deg);
}

.hover-shadow:hover {
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15) !important;
    transition: box-shadow 0.3s ease-in-out;
}

.card-stepper {
    z-index: 0;
}

.progress-container {
    position: relative;
    padding-bottom: 80px; /* Adjust as needed */
}

#progressbar-2 {
    color: #b2a190;
    overflow: hidden;
    padding-left: 0;
    margin-top: 30px; /* Add some top margin */
    list-style-type: none;
    padding: 0;
    margin: 0;
    position: relative;
    z-index: 1;
}

#progressbar-2 li {
    list-style-type: none;
    font-size: 13px;
    width: 33.33%; /* Change to 25% for 4 steps */
    float: left;
    position: relative;
    text-align: center;
}

#progressbar-2 li:before {
    content: '';
    font-weight: 900;
    width: 37px;
    height: 37px;
    line-height: 37px;
    display: block;
    font-size: 13px;
    color: #ffffff;
    background: #b2a190;
    border-radius: 50%;
    margin: 0 auto 10px auto;
    padding: 0;
    z-index: 2;
    position: relative;
}

#progressbar-2 li:after {
    content: '';
    width: 100%;
    height: 10px;
    background: #b2a190;
    position: absolute;
    left: -50%;
    top: 15px;
    z-index: 1;
}

#progressbar-2 li:first-child:after {
    content: none;
}

#progressbar-2 li.active:before,
#progressbar-2 li.active:after {
    background: #7e5022;
}

#progressbar-2 #step4:before {
    content: '';
}

.speech-bubble {
    position: absolute;
    background: #96a06dbc ;
    border-radius: .4em;
    padding: 10px;
    top: 50px; /* Adjust as needed */
    width: 22%; /* Adjust as needed */
    text-align: center;
    font-size: 0.95em; /* Adjust as needed */
}

.speech-bubble:after {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    width: 0;
    height: 0;
    border: 10px solid transparent;
    border-bottom-color: #96a06dbc ;
    border-top: 0;
    margin-left: -10px;
    margin-top: -10px;
}

.digit-box {
    text-align: center;
    line-height: 1;
    background-color: rgba(255, 255, 255, 0.5);
    font-size: 3rem;
    font-weight: normal;
    min-width: 2rem;
}

#santa-container {
    width: 100%;
    height: 200px;
    position: relative;
}

.santa {
    width: 75px;
    height: 75px;
    position: absolute;
    background-image: url('/static/base/gift.png');
    background-size: cover;
}

.secret-santa {
    width: 25px;
    height: 25px;
    position: absolute;
    background-image: url('/static/base/santa.png');
    background-size: cover;
    margin-left: 5px;
}

.carousel-caption {
    background-color: rgba(0, 0, 0, 0.5); 
    left: 0; 
    right: 0;
}

.email-container {
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 20px;
    background-color: #f9f9f9;
    margin-top: 20px;
}
.copy-button {
    margin-top: 15px;
}

/* 3D LOSE Game Button Styling */
.lose-game-button {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(145deg, #dc3545, #a71e2a);
    border: none;
    font-family: 'Carlito', sans-serif;
    font-size: 24px;
    font-weight: bold;
    color: white;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
    box-shadow: 
        0 8px 16px rgba(0, 0, 0, 0.3),
        inset 0 4px 8px rgba(255, 255, 255, 0.2),
        inset 0 -4px 8px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

.lose-game-button:hover {
    background: linear-gradient(145deg, #e74c5c, #c02935);
    box-shadow: 
        0 10px 20px rgba(0, 0, 0, 0.4),
        inset 0 4px 8px rgba(255, 255, 255, 0.3),
        inset 0 -4px 8px rgba(0, 0, 0, 0.3);
    transform: translateY(-2px);
}

.lose-game-button:active {
    background: linear-gradient(145deg, #a71e2a, #8b1a22);
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.3),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.4);
    transform: translateY(2px);
}

.lose-game-button:disabled {
    background: linear-gradient(145deg, #6c757d, #5a6268);
    color: #adb5bd;
    cursor: not-allowed;
    box-shadow: 
        0 4px 8px rgba(0, 0, 0, 0.2),
        inset 0 2px 4px rgba(255, 255, 255, 0.1),
        inset 0 -2px 4px rgba(0, 0, 0, 0.2);
    transform: none;
}

.lose-game-button:disabled:hover {
    transform: none;
    background: linear-gradient(145deg, #6c757d, #5a6268);
}

/* Add a subtle glow effect */
.lose-game-button::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e, #ff6b6b, #ff8e8e);
    border-radius: 50%;
    z-index: -1;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lose-game-button:hover::before {
    opacity: 0.7;
    animation: rotate 2s linear infinite;
}

@keyframes rotate {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@media (max-width: 768px) {
    .sidebar {
        width: 100px;
        padding-left: 0px;
    }
    .main {
        margin-left: 100px;
        font-size: 12px;
        width: calc(100% - 110px); /* Subtract sidebar width from 100% */
    }
    .main h4 {
        font-size: 14px;
    }
    .digit-box {
        text-align: center;
        line-height: 1;
        background: none;
        font-size: 1rem;
        font-weight: normal;
        min-width: 1rem;
    }
    .menu-btn {
        font-family: 'Oldenburg', sans-serif !important;
        font-size: 14px;
        padding: 0.375rem 0.75rem;
    }
    
    .menu-btn i {
        font-size: 1.25em;
    }
}

/* Custom Modal for LOSE Game */
.lose-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    border-radius: 0;
}

.lose-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #ffffff, #f8f9fa);
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 
        0 10px 25px rgba(0, 0, 0, 0.3),
        inset 0 2px 5px rgba(255, 255, 255, 0.8),
        inset 0 -2px 5px rgba(0, 0, 0, 0.1);
    min-width: 200px;
    border: 2px solid #dc3545;
    animation: modalPop 0.3s ease-out;
    z-index: 10000;
}

.lose-modal-close {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.lose-modal-close:hover {
    color: #dc3545;
}

.lose-modal h5 {
    color: #dc3545;
    margin-bottom: 10px;
    font-family: 'Carlito', sans-serif;
    font-weight: bold;
}

.lose-modal p {
    color: #666;
    font-size: 18px;
    margin: 0;
    font-family: 'Carlito', sans-serif;
    font-weight: bold;
}

@keyframes modalPop {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

/* Big Win Modal */
.win-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 99999;
}

.win-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: linear-gradient(145deg, #7b9962, #7b9962);
    padding: 40px;
    border-radius: 25px;
    text-align: center;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.5),
        inset 0 4px 10px rgba(255, 255, 255, 0.8),
        inset 0 -4px 10px rgba(0, 0, 0, 0.2);
    min-width: 500px;
    max-width: 750px;
    border: 4px solid #5f7a48;
    animation: winModalPop 0.6s ease-out;
    z-index: 100000;
}

.win-modal-close {
    position: absolute;
    top: 15px;
    right: 25px;
    font-size: 32px;
    font-weight: bold;
    color: #5f7a48;
    cursor: pointer;
    line-height: 1;
    transition: color 0.2s ease;
}

.win-modal-close:hover {
    color: #5f7a48;
    transform: scale(1.2);
}

.win-modal h2 {
    color: #006600;
    font-size: 2.5rem;
    margin: 15px 0;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.win-modal p {
    color: #333;
    font-size: 1.2rem;
    margin: 20px 0;
    font-family: 'Carlito', sans-serif;
    font-weight: bold;
}

.win-modal .small-text {
    font-size: 1rem;
    font-weight: normal;
    margin: 10px 0;
    font-style: italic;
}

.win-modal p {
    color: #333;
    font-size: 1.2rem;
    margin: 20px 0;
    font-family: 'Carlito', sans-serif;
    font-weight: bold;
}

.win-prize-image {
    max-width: 300px;
    max-height: 450px;
    margin: 15px 0;
}

@keyframes winModalPop {
    0% {
        transform: translate(-50%, -50%) scale(0.3) rotate(-180deg);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.1) rotate(0deg);
    }
    100% {
        transform: translate(-50%, -50%) scale(1) rotate(0deg);
        opacity: 1;
    }
}

@keyframes textGlow {
    0% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 10px #ff6b00;
    }
    100% {
        text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.3), 0 0 20px #ff6b00, 0 0 30px #ff6b00;
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-20px);
    }
    60% {
        transform: translateY(-10px);
    }
}