@font-face {
font-family: 'Windows 95';
src: url('./fonts/ms-sans-serif.ttf');
font-weight: normal;
font-style: normal;
}

@keyframes neonFlash {
    0% { background-color: #ff00ff; } /* Hot Pink */
    14.28% { background-color: #00ffff; } /* Cyan */
    28.56% { background-color: #00ff00; } /* Lime Green */
    42.84% { background-color: #ffff00; } /* Yellow */
    57.12% { background-color: #ff00ff; } /* Magenta */
    71.4% { background-color: #00bfff; } /* Electric Blue */
    85.68% { background-color: #ff6600; } /* Orange */
    100% { background-color: #ff00ff; } /* Hot Pink */
}

body {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    background-color: #ff00ff;
    animation: neonFlash 3s ease-in-out infinite;
}

#container {
    padding-top: 1rem;
    position: relative;
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin: 0 auto;
}

.card {
    width: 100%;
    margin: 0 auto;
}

.card-body {
    padding: 30px;
    border-bottom: 2px solid #393939 !important;
}


.card-header {
    background: linear-gradient(to right, #00007b, #7bb2c3) !important;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 5px 10px !important;
}

.card-footer {
    border-top: 1px solid #a5a5a5 !important;
}

.cardTitle {
    font-size: 0.9rem;
    padding: 1px 0 1px -2px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #f3ef1b;
}

.cardTitle-icon {
    height: 2em;
    width: auto;
    vertical-align: middle;
}

.titleContainer {
    display: flex;
    justify-content: center;
    margin-bottom: 10px;
}

.title {
    text-align: center;
    font-size: 1.5rem;
}

.canvas-section {
    display: flex;
    gap: 20px;
    align-items: flex-start;
    width: 100%;
    margin-bottom: 10px;
}

#canvas-container {
    position: relative;
    width: 100%;
    min-width: 690px;
    margin: 0 auto;
    aspect-ratio: 1/1;
    background-color: #f0f0f0;
    border: 1px solid #333;
}

#memeCanvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#controls {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
}

#controls button:hover {
    background-color: #d6d6d6;
    transition: all 0.2s ease;
    transition: background-color 200ms;
    cursor: pointer;
}

.btn-text {
    font-family: 'Windows 95' !important;
}

.instructions {
    font-size: 0.7rem;
    font-weight: 800;
}

.instructionParagraph {
    font-size: 0.6rem;
}

.layer-controls {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
    min-width: 300px;
    width: 100%;
    padding: 20px;
    background-color: #f8f9fa;
    border: 1px solid #333;
}

.layer-selector {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.layer-selector label {
    font-weight: bold;
    color: #222;
}

.accessories-warning {
    color: #dc3545;
    font-weight: normal;
    font-size: 0.5rem;
    margin-left: 5px;
}

.layer-dropdown {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 10px;
    width: 100%;
}

/* Custom dropdown with thumbnails */
.custom-dropdown {
    position: relative;
    width: 100%;
}

.custom-dropdown-selected {
    padding: 8px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: white;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    user-select: none;
    gap: 8px;
}

.selected-content {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 8px;
}

.selected-thumbnail {
    width: 24px;
    height: 24px;
    object-fit: cover;
    border-radius: 3px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.custom-dropdown-selected:hover {
    background-color: #f0f0f0;
}

.dropdown-arrow {
    font-size: 10px;
    color: #333;
    transition: transform 0.2s;
}

.custom-dropdown.active .dropdown-arrow {
    transform: rotate(180deg);
}

.custom-dropdown-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: 400px;
    overflow-y: auto;
    background-color: white;
    border: 1px solid #ccc;
    border-radius: 4px;
    margin-top: 4px;
    z-index: 1000;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.custom-dropdown.active .custom-dropdown-menu {
    display: block;
}

/* Dropdowns that open upwards */
.dropdown-up .custom-dropdown-menu {
    top: auto;
    bottom: 100%;
    margin-top: 0;
    margin-bottom: 4px;
}

.dropdown-up.active .dropdown-arrow {
    transform: rotate(180deg);
}

.dropdown-category {
    padding: 8px 12px;
    font-weight: bold;
    background-color: #f8f9fa;
    color: #333;
    border-bottom: 1px solid #e0e0e0;
    font-size: 10px;
}

.dropdown-option {
    display: flex;
    align-items: center;
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s;
}

.dropdown-option:hover {
    background-color: #f8f9fa;
}

.dropdown-option-thumbnail {
    width: 40px;
    height: 40px;
    object-fit: cover;
    border-radius: 4px;
    margin-right: 10px;
    border: 1px solid #e0e0e0;
    flex-shrink: 0;
}

.dropdown-option-none-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 10px;
    color: #999;
    font-size: 20px;
    flex-shrink: 0;
}

.dropdown-option-label {
    flex: 1;
    font-size: 10px;
    color: #333;
}

.buttonGroup {
    margin-top: 30px;
    margin-bottom: 10px;
    min-width: 700px;
    width: 100%;
    display: flex;
    justify-content: center;
}

.buttonGroup button:hover{
    color: #f3ef1b;
    background-color: #b0b0b0 !important;
    cursor: pointer;
}

.card-header button:hover{
    color: #f3ef1b;
    background-color: #b0b0b0 !important;
    cursor: pointer;
}

button i {
    font-size: 0.7rem; 
    vertical-align: top;
    margin-top: 2px;
}

.instructionContainer {
    margin-top: 30px;
    padding: 15px;
    background-color: #f8f9fa;
    width: 100%;
    border: 1px solid #333;
}

.card-footer {
    border-top: 2px solid #ffffff !important;
    padding: 10px 30px !important;
}

.footerLinks {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.footerLinks ul {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 30px;
    list-style: none;
}

.footerLinks ul li a {
    color: #0200a5;
}

.footerLinks ul li a:hover {
    color: #f3ef1b;
}

/* Mobile styles (up to 768px) */
@media (max-width: 768px) {
    #container {
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
        max-width: 100%;
        min-width: unset;
        padding: 0;
    }
    
    .card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
    
    .card-body {
        padding: 15px;
    }
    
    .card-header .btn {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }

    .cardTitle {
        font-size: 0.7rem;
        gap: 2px;
    }
    
    .canvas-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    #canvas-container {
        min-width: 300px;
        max-width: 300px;
    }
    
    .layer-controls {
        max-width: 150px;
        padding: 15px;
        margin-bottom: 15px;
    }
    
    .layer-selector label {
        font-size: 0.5rem;
    }
    
    .layer-dropdown {
        font-size: 0.75rem;
        padding: 6px;
    }
    
    .custom-dropdown-selected {
        font-size: 0.6rem;
        padding: 6px;
    }
    
    .dropdown-option-thumbnail {
        width: 30px;
        height: 30px;
    }
    
    .selected-thumbnail {
        width: 20px;
        height: 20px;
    }
    
    .dropdown-option-label {
        font-size: 0.6rem;
    }
    
    .dropdown-category {
        font-size: 0.55rem;
        padding: 6px 10px;
    }
    
    .buttonGroup {
        max-width: 300px;
        min-width: unset;
        width: 100%;
        margin: 0 auto;
        display: flex;
        justify-content: center;
        padding: 0 15px;
    }
    
    .instructions {
        font-size: 0.5rem;
    }
    
    .instructionParagraph {
        font-size: 0.55rem;
    }
    
    .btn-text {
        font-size: 0.55rem;
    }
    
    .instructionContainer {
        max-width: 300px;
        padding: 15px;
        margin-top: 20px;
    }

    .footerLinks ul {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        align-items: center;
        gap: 15px;
        list-style: none;
        padding: 0;
    }

    .footerLinks ul li a {
        font-size: 0.6rem;
    }
}

/* Tablet styles (768px to 1200px) */
@media (min-width: 769px) and (max-width: 1199px) {
    #container {
        max-width: 100%;
        min-width: unset;
        padding: 0;
        display: flex;
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    .card {
        min-width: unset;
        max-width: 100%;
        width: 100%;
    }
    
    .canvas-section {
        flex-direction: column;
        align-items: center;
        width: 100%;
    }
    
    #canvas-container {
        min-width: 600px;
        max-width: 600px;
    }
    
    .layer-controls {
        max-width: 500px;
        padding: 20px;
        margin: 0 auto;
    }
    
    .buttonGroup,
    .instructionContainer {
        max-width: 500px;
        margin: 0 auto;
    }
}

/* Desktop styles (1200px and above) */
@media (min-width: 1200px) {
    #container {
        min-width: 800px;
        max-width: 1200px;
        padding: 0rem 20px;
    }
    
    .card {
        min-width: 800px;
        max-width: 1200px;
    }
    
    .instructionContainer {
        max-width: 700px;
        margin: 30px 0 auto;
        margin-bottom: 30px;
    }
}

/* Virus Warning Modal Styles */
.virus-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

.virus-modal-instance {
    position: fixed;
    z-index: 10001;
    pointer-events: auto;
    background: transparent;
}

.virusHeader {
    background: linear-gradient(to right, #0000ff, #0000ff);
}

.virus-modal.active {
    display: flex;
}

.virus-modal-content {
    background-color: #c0c0c0;
    border: 3px outset #c0c0c0;
    box-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    width: 400px;
    max-width: 90%;
    position: relative;
}

.virus-modal-titlebar {
    background: linear-gradient(to right, #00007b, #7bb2c3);
    color: white;
    padding: 5px 10px;
    display: flex;
    align-items: center;
    font-weight: bold;
    font-size: 0.9rem;
    font-family: 'Windows 95', sans-serif;
    border-bottom: 2px solid #000;
}

.virus-modal-close {
    margin-left: auto;
    background: #c0c0c0;
    border: 2px inset #c0c0c0;
    color: #000;
    width: 20px;
    height: 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    line-height: 1;
}

.virus-modal-close:hover {
    background: #d0d0d0;
}

.virus-modal-close:active {
    border: 2px outset #c0c0c0;
}

.virus-modal-body {
    padding: 20px;
    text-align: center;
    background-color: #c0c0c0;
}

.virus-warning-text {
    margin-bottom: 20px;
}

.virus-warning-line {
    color: #ff0000;
    font-weight: bold;
    font-size: 0.8rem;
    font-family: 'Windows 95', sans-serif;
    margin: 10px 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.virus-modal-button {
    background: #c0c0c0;
    border: 2px outset #c0c0c0;
    padding: 8px 20px;
    font-size: 0.9rem;
    font-family: 'Windows 95', sans-serif;
    cursor: pointer;
    color: #000;
    font-weight: bold;
    box-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.virus-modal-button:hover {
    background: #d0d0d0;
}

.virus-modal-button:active {
    border: 2px inset #c0c0c0;
    box-shadow: inset 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* Shaking Animation */
@keyframes shake {
    0%, 100% { transform: translate(0, 0) rotate(0deg); }
    10% { transform: translate(-5px, -5px) rotate(-2deg); }
    20% { transform: translate(5px, 5px) rotate(2deg); }
    30% { transform: translate(-5px, 5px) rotate(-2deg); }
    40% { transform: translate(5px, -5px) rotate(2deg); }
    50% { transform: translate(-5px, -5px) rotate(-2deg); }
    60% { transform: translate(5px, 5px) rotate(2deg); }
    70% { transform: translate(-5px, 5px) rotate(-2deg); }
    80% { transform: translate(5px, -5px) rotate(2deg); }
    90% { transform: translate(-5px, -5px) rotate(-2deg); }
}

.virus-modal-content.shaking {
    animation: shake 0.5s ease-in-out;
}

