/* Importing a Google Font */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;700&display=swap');

/* Global Styles */
body {
    font-family: 'Inter', sans-serif;
    background-color: #f4f4f9;
    color: #333;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    margin: 0;
    padding: 20px;
    transition: background-color 0.3s ease;
}

/* Full-screen popup */
.popup {
    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;
    animation: popupAnimation 4s ease-out forwards;
    pointer-events: none;
}

@keyframes popupAnimation {
    0% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    50% {
        opacity: 1;
        transform: scale(1);
        filter: blur(0);
    }

    80% {
        opacity: 0.5;
        transform: scale(0.95);
        filter: blur(2px);
    }

    100% {
        opacity: 0;
        transform: scale(0.9);
        filter: blur(10px);
    }
}

.popup-content {
    background-color: #3a4bd4;
    color: #fff;
    padding: 20px;
    border-radius: 12px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    animation: popupTextAnimation 4s ease-out;
}

@keyframes popupTextAnimation {
    0% {
        transform: translateY(20px);
        opacity: 0;
    }

    50% {
        transform: translateY(0);
        opacity: 1;
    }

    80% {
        transform: translateY(0);
        opacity: 1;
    }

    100% {
        transform: translateY(-20px);
        opacity: 0;
    }
}

/* Additional graphics and animations */
.popup::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(farthest-corner at 50% 50%, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
    animation: radialGradientAnimation 4s ease-out;
    z-index: -1;
}

@keyframes radialGradientAnimation {
    0% {
        transform: scale(0);
    }

    50% {
        transform: scale(1);
    }

    100% {
        transform: scale(1.2);
    }
}

.popup::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    background-color: #fff;
    border-radius: 50%;
    animation: pulseAnimation 4s ease-out infinite;
    z-index: -1;
}

@keyframes pulseAnimation {
    0% {
        transform: scale(1);
        opacity: 1;
    }

    50% {
        transform: scale(1.2);
        opacity: 0.5;
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Table Styles */
table {
    width: 90%;
    margin: 20px auto;
    border-collapse: collapse;
    background-color: #ffffff;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    overflow: hidden;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
}

table:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

th,
td {
    border: 1px solid #e0e0e0;
    padding: 12px;
    text-align: center;
    font-size: 16px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

th {
    background-color: #3a4bd4;
    color: #ffffff;
    font-weight: 700;
}

td {
    font-weight: 500;
}

td:hover {
    background-color: #f0f0f0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.lunch {
    background-color: #ffecd1;
    font-weight: 700;
}

/* Control container styles */
.control-container {
    /* margin: 10px;
    text-align: center; */
    display: flex;
    align-items: center;
    position: relative;
    padding: 20px;
}

.control-container input[type="text"] {
    padding: 12px;
    width: 300px;
    border: 2px solid #3a4bd4;
    border-radius: 30px;
    margin-right: 10px;
    font-size: 16px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}

.control-container input[type="text"]:focus {
    border-color: #2e3aaf;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}

/* Button styles */
.control-container button {
    padding: 12px 18px;
    border: none;
    background: #3a4bd4;
    color: #fff;
    border-radius: 30px;
    cursor: pointer;
    margin: 5px;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.control-container button:hover {
    background: #2e3aaf;
    transform: scale(1.05);
}

.control-container button:active {
    background: #1e2d7a;
    transform: scale(1);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
}

/* Highlighted cells */
.highlighted {
    background-color: #ffd700 !important;
    font-weight: bold;
    color: #000;
    transition: background-color 0.3s ease;
}

/* Highlighted list styles */
.highlighted-list {
    list-style-type: none;
    padding: 0;
    margin-top: 20px;
    max-width: 300px;
    width: 100%;
}

.highlighted-list li {
    margin: 5px 0;
    padding: 12px;
    background-color: #ffffff;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 30px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.highlighted-list li:hover {
    background-color: #f0f0f0;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.2);
}

/* Remove button styles */
.remove-btn-fixed {
    background: #ff4d4d;
    border: none;
    font-size: 16px;
    color: #fff;
    border-radius: 50%;
    cursor: pointer;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s ease, transform 0.3s ease;
}

.remove-btn-fixed:hover {
    background: #d73838;
    transform: scale(1.1);
}

.remove-btn-fixed:active {
    background: #b62b2b;
    transform: scale(1);
}

/* Footer styles */
footer {
    margin-top: 20px;
    color: #000000;
    font-size: 17px;
    text-align: center;
    font-weight: 500;
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    padding-top: 60px;
    transition: opacity 0.3s ease;
}

.modal-content {
    background-color: #3a4bd4;
    margin: 5% auto;
    padding: 20px;
    border-radius: 12px;
    width: 80%;
    max-width: 400px;
    color: rgb(0, 0, 0);
    text-align: center;
    transform: translateY(-100px);
    opacity: 0;
    animation: fadeInUp 0.5s forwards;
}

@keyframes fadeInUp {
    0% {
        transform: translateY(-100px);
        opacity: 0;
    }

    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.close {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    transition: color 0.3s ease, transform 0.3s ease;
}

.close:hover,
.close:focus {
    color: #fff;
    text-decoration: none;
    cursor: pointer;
    transform: scale(1.1);
}

/* Subject name input */
#subjectName {
    padding: 12px;
    width: 75%;
    margin: 15px 0;
    border: 2px solid #fff;
    border-radius: 30px;
    font-size: 16px;
    transition: border-color 0.3s ease, transform 0.3s ease;
}

#subjectName:focus {
    border-color: #ffcd00;
    transform: scale(1.02);
}

/* Submit button */
#submitSubject {
    padding: 12px 24px;
    border: none;
    background: #ffcd00;
    color: #000;
    border-radius: 30px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s ease;
}

#submitSubject:hover {
    background: #ffb700;
    transform: scale(1.05);
}

#submitSubject:active {
    background: #e0a300;
    transform: scale(1);
}


/* Help Icon Styles */
.help-icon {
    font-size: 24px;
    color: #333;
    cursor: pointer;
    margin-left: 10px;
    display: inline-block;
    transition: color 0.3s ease;
}

.help-icon:hover {
    color: #3a4bd4;
}

/* Help Popup Styles */
#helpModal {
    position: absolute;
    display: none;
    z-index: 9998;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgb(0, 0, 0);
    background-color: rgba(0, 0, 0, 0.4);
    padding-top: 60px;
}

#helpModal .modal-content {
    position: relative;
    background-color: #fff;
    top: 20%;
    left: 33.4%;
    margin: 0;
    padding: 20px;
    border: 1px solid #888;
    width: 80%;
    max-width: 600px;
    border-radius: 10px;
    text-align: left;
}

#closeHelpModal {
    color: #ff0000;
    float: right;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

#closeHelpModal:hover,
#closeHelpModal:focus {
    color: rgb(0, 0, 0);
    text-decoration: none;
    cursor: pointer;
}

/* Centered GIF styling */
.gif-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 20px;
  }
  
  .centered-gif {
    max-width: 50%;
    max-height: 50%;
    object-fit: contain;
  }

/* Landscape mode for screens with width up to 1200px */
@media screen and (min-width: 600px) and (max-width: 1200px) and (orientation: landscape) {
    body {
        padding: 10px;
        overflow-y: scroll;
    }

    .control-container {
        background-color: #f4f4f9;
        z-index: 1000;
        padding: 5px 0;
    }

    .control-container input[type="text"] {
        align-self: flex-end;
        width: 220px;
        font-size: 12px;
    }

    .control-container button {
        font-size: 12px;
        margin: 3px;
    }

    .table-container {
        overflow-x: scroll;
        width: 100%;
        max-height: calc(100vh - 60px);
        margin-bottom: 5px;
    }

    table {
        font-size: 14px;
        width: 100%;
    }

    th,
    td {
        padding: 8px;
        font-size: 14px;
    }

    .highlighted-list {
        margin-top: 10px;
    }

    footer {
        margin-top: 10px;
    }

    #helpModal {
        margin: 0 auto;
    }

    #helpModal .modal-content {
        width: 90%;
        padding: 15px;
        top: 7%;
        left: 14.4%;
        margin: 0;
    }

    #closeHelpModal {
        font-size: 24px;
    }
}

/* Landscape mode for screens with width up to 600px */
@media screen and (max-width: 600px) and (orientation: landscape) {
    body {
        padding: 5px;
        overflow-y: auto;
    }

    .control-container {
        background-color: #f4f4f9;
        z-index: 1000;
        padding: 4px 0;
    }

    .control-container input[type="text"] {
        width: 180px;
        font-size: 10px;
    }

    .control-container button {
        font-size: 10px;
        margin: 2px;
    }

    .table-container {
        overflow-x: auto;
        width: 100%;
        max-height: calc(100vh - 50px);
        margin-bottom: 3px;
    }

    table {
        font-size: 12px;
        width: 100%;
    }

    th,
    td {
        padding: 6px;
        font-size: 12px;
    }

    .highlighted-list {
        margin-top: 5px;
    }

    footer {
        margin-top: 5px;
    }

    #helpModal {
        margin: 0 auto;
    }

    #helpModal .modal-content {
        width: 90%;
        padding: 15px;
        top: 7%;
        left: 14.4%;
        margin: 0;
    }

    #closeHelpModal {
        font-size: 24px;
    }
}
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
  }

  .Btn {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    position: relative;
    /* overflow: hidden; */
    border-radius: 7px;
    cursor: pointer;
    transition: all .3s;
  }
  
  .svgContainer {
    min-width: 140%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(0px);
    letter-spacing: 0.8px;
    border-radius: 10px;
    transition: all .3s;
    border: 1px solid rgba(156, 156, 156, 0.466);
  }
  
  .BG {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #181818;
    z-index: -1;
    border-radius: 10px;
    pointer-events: none;
    transition: all .3s;
  }
  
  .Btn:hover .BG {
    transform: rotate(35deg);
    transform-origin: bottom;
  }
  
  .Btn:hover .svgContainer {
    background-color: rgba(156, 156, 156, 0.466);
    backdrop-filter: blur(4px);
    margin: 10px;
  }

div#buttonDiv{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

/*insta button*/
.Btn2 {
    width: 45px;
    height: 45px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background-color: transparent;
    position: relative;
    /* overflow: hidden; */
    border-radius: 7px;
    cursor: pointer;
    transition: all .3s;
  }
  
  .svgContainer2 {
    min-width: 140%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    backdrop-filter: blur(4px);
    letter-spacing: 0.8px;
    border-radius: 10px;
    transition: all .3s;
    border: 1px solid rgba(156, 156, 156, 0.466);
  }
  
  .BG2 {
    position: absolute;
    content: "";
    width: 100%;
    height: 100%;
    background: #f09433;
    background: -moz-linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    background: -webkit-linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    background: linear-gradient(45deg, #f09433 0%,#e6683c 25%,#dc2743 50%,#cc2366 75%,#bc1888 100%);
    filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#f09433', endColorstr='#bc1888',GradientType=1 );
    z-index: -1;
    border-radius: 9px;
    pointer-events: none;
    transition: all .3s;
  }
  
  .Btn2:hover .BG2 {
    transform: rotate(35deg);
    transform-origin: bottom;
  }
  
  .Btn2:hover .svgContainer2 {
    background-color: rgba(156, 156, 156, 0.466);
  }
  
  div#buttonDiv2{
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 10px;
}

/* ? button hover*/
div#help:hover{
    transform: scale(1.1);
}

#paletteAppend{
    transition: ease-in 2s ;
}

/* Styles for color options container */
.color-options {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
    padding: 10px;
    background-color: #eee;
    border: 2px solid #ddd;
    transition: fadeIn 10s ;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.color-options:hover {
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.2);
    transform: scale(1.02);
}


/* Styles for each color option */
.color-option {
    width: 33px;
    height: 33px;
    border-radius: 50%;
    cursor: pointer;
    border: 1px solid #333;
}

/* Style for selected color option */
.color-option:hover{
    border-radius: 35% ;
}    

/* The switch - the box around the slider */
.switch {
    font-size: 17px;
    position: relative;
    display: inline-block;
    width: 3.5em;
    height: 2em;
  }
  
  /* Hide default HTML checkbox */
  .switch input {
    opacity: 0;
    width: 0;
    height: 0;
  }
  
  /* The slider */
  .slider {
    position: absolute;
    cursor: pointer;
    inset: 0;
    background: #3a4bd4;
    border-radius: 50px;
    transition: all 0.4s cubic-bezier(0.23, 1, 0.320, 1);
  }
  
  .slider:before {
    position: absolute;
    content: "";
    height: 1.4em;
    width: 1.4em;
    left: 0.3em;
    bottom: 0.3em;
    background-color: white;
    border-radius: 50px;
    box-shadow: 0 0px 20px rgba(0,0,0,0.4);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  }
  
  .switch input:checked + .slider {
    background: #3a4bd4;
  }
  
  .switch input:focus + .slider {
    box-shadow: 0 0 1px #3a4bd4;

  }
  
  .switch input:checked + .slider:before {
    transform: translateX(1.6em);
    width: 2em;
    height: 2em;
    bottom: 0;
  }

  #palette-status{
    font-family: Arial;
    font-style:inherit;
    border: skyblue;
    background-size: 10px 10px 100px;
    background: #3a4bd4;
    color: #fff;
    border-radius: 3px;
    margin: 7px;
    font-size: 18px;
    font-weight: 700;
    transition: background 0.3s, transform 0.3s, box-shadow 0.3s;
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.1);
  }

#contentContainer {
    transition: margin-top 0.5s ease; /* Adjust timing and easing as needed */
}

#contentContainer.moved {
    margin-top: 20px; /* Adjust based on the height of the palette */
}

#logo {
    width: 59px;
    height: 59px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
    background: linear-gradient(135deg, rgba(255,255,255,0.1), rgba(255,255,255,0.05));
    border: 2px solid rgba(255,255,255,0.2);
    margin-right: 20px;
    align-self: flex-end;
    filter: brightness(1.05) contrast(1.1);
}

#logo:hover {
    transform:scale(1.15);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    filter: brightness(1.1) contrast(1.15);
}
