/* 🏠 Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #222;
    padding: 10px 20px;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.navbar h1 {
    font-size: 1.5rem;
    margin: 0;
}

/* 👤 Authentication Section */
#authSection {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 30px;
}

#authSection button:not(#signInBtn):not(#signOutBtn) {
    background-color: #007bff;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#authSection button:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease-in-out;
}

/* Ensure Monaco Editor text is left-aligned */
.monaco-editor .view-lines {
    text-align: left !important;
}

/* 🎛️ Controls Section */
#controls {
    margin: 20px 0;
}

#controls button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#controls button:hover {
    background-color: #218838;
    transform: scale(1.05);
}

/* 🎨 Theme Toggle Button */
#themeToggle {
    background-color: transparent;
    color: black;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 45px;
    font-size: 1rem;
    transition: background-color 0.3s, transform 0.2s ease-in-out;
}

#themeToggle:hover {
    background-color: #f8e3a5;
    transform: scale(1.05);
}

/* Special Styles for Rounded Sign-In Button */
#signInBtn,
#signOutBtn {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-sizing: border-box;
}

#run,
#clear,
#download,
#settings,
#clear-error-output,
#format {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: none;
    padding: 0;
    cursor: pointer;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    box-sizing: border-box;
}

#signInBtn img,
#signOutBtn img,
#run img,
#clear img,
#download img,
#settings img,
#clear-error-output img,
#format img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

#format:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease-in-out;
}

/* Reset default styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Light & Dark Theme Variables */
:root {
    --bg-color-dark: #181818;
    --editor-bg-dark: #2d2d2d;
    --input-bg-dark: #333;
    --output-bg-dark: #222;
    --text-color-dark: #fff;

    --bg-color-light: #f8f9fa;
    --editor-bg-light: #ffffffe3;
    --input-bg-light: #e9ecef;
    --output-bg-light: #dee2e696;
    --text-color-light: #495057;
    --accent-color-light: #4dabf7;
    --border-color-light: #ced4da2d;
}

/* Default Theme (Dark Mode) */
body {
    font-family: Arial, sans-serif;
    background-color: var(--bg-color-dark);
    color: var(--text-color-dark);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    transition: all 0.3s ease;
}

/* Light Theme Class */
body.light-theme {
    background-color: var(--bg-color-light);
    color: var(--text-color-light);
}

/* Monaco Editor Light Theme */
body.light-theme .editor-container {
    background: lightgoldenrodyellow;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

body.light-theme .io-container{
    background: lightgoldenrodyellow;
    border: 1px solid var(--border-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);  
}

body.light-theme .editor{
    background: var(--bg-color-light);
}

/* Navbar Light Theme */
body.light-theme .navbar {
    background-color: lightgoldenrodyellow;
    color: var(--text-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border-bottom: 1px solid var(--border-color-light);
}

/* Main Container */
.container {
    width: 100%;
    display: flex;
    flex-direction: column;
    /* margin-left: 20px;
    margin-right: 20px; */
    /* margin-right: 10px; */
    margin-top: 60px;
    box-shadow: 0 0 2px yellowgreen;
}

/* Input and Output Light Theme */
body.light-theme #input,
body.light-theme #output {
    background: var(--input-bg-light);
    color: var(--text-color-light);
    border: 1px solid var(--border-color-light);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Dropdown Light Theme */
body.light-theme .top-bar select {
    background-color: lightgoldenrodyellow;
    color: lightgoldenrodyellow;
    border: 1px solid var(--border-color-light);
}

/* Buttons Light Theme */
body.light-theme .top-bar button {
    background-color: var(--accent-color-light);
    color: white;
    border: 1px solid var(--accent-color-light);
    transition: background-color 0.3s ease, transform 0.2s ease-in-out;
}

body.light-theme .top-bar button:hover {
    background-color: #3b9af7;
    transform: scale(1.05);
}

/* Top Bar with Controls */
.top-bar {
    display: flex;
    align-items: center;
    background: var(--output-bg-dark);
    padding: 10px;
    border-radius: 5px;
    /* margin-bottom: 10px; */
    transition: all 0.3s ease;
    /* box-shadow: 0 0 2px yellowgreen; */
}

.top-bar button {
    margin-left: 20px;
    border: solid 1px;
}

.top-bar button:hover {
    transform: scale(1.15);
    transition: transform 0.2s ease-in-out;
}

/* Light Theme Adjustments */
body.light-theme .top-bar {
    background: lightgoldenrodyellow;
}

/* Dropdown Styling */
.top-bar label {
    font-size: 14px;
    margin-right: 8px;
}

.top-bar select {
    padding: 8px 12px;
    border: none;
    border-radius: 4px;
    background-color: var(--input-bg-dark);
    color: white;
    font-size: 14px;
    transition: all 0.3s ease;
}

body.light-theme .top-bar select {
    background-color: var(--input-bg-light);
    color: black;
}

/* Buttons */
.top-bar button {
    padding: 8px 12px;
    border: none;
    cursor: pointer;
    border-radius: 4px;
    font-size: 14px;
    transition: background 0.3s ease;
}

/* Theme Toggle Button Light Theme */
body.light-theme #themeToggle {
    /* background-color: var(--accent-color-light); */
    color: white;
    /* border: 1px solid var(--accent-color-light); */
}

body.light-theme #themeToggle:hover {
    background-color: #b8d7f7;
    transform: scale(1.05);
}

/* Layout: Editor on the left, Input & Output stacked on the right */
.editor-output-container {
    display: flex;
    /* gap: 10px; */
    height: 70vh;
}



/* Editor Container */
.editor-container {
    flex: 0 0 70%;
    background: var(--editor-bg-dark);
    padding: 10px;
    /* border-radius: 5px; */
    display: flex;
    flex-direction: column;
    transition: all 0.3s ease;
    min-width: 400px;
    max-width: 70%;
    overflow: hidden;
    box-shadow: 0 0 2px yellowgreen;
}


/* IO Container */
.io-container {
    flex: 0 0 30%; /* Takes 30% of the parent container */
    background: var(--output-bg-dark);
    display: flex;
    flex-direction: column;
    min-width: 200px;
    overflow: hidden;
    box-shadow: 0 0 2px yellowgreen;
    height: 70vh; /* Fixed height for percentage-based sizing */
    padding-right: 10px;
}
/* Input Section */
#input {
    flex: 0 0 20%; /* Takes 30% of the io-container */
    background: var(--input-bg-dark);
    padding: 10px;
    color: white;
    border: none;
    outline: none;
    resize: none;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 0 2px yellowgreen;
}

body.light-theme #input {
    background: var(--input-bg-light);
    color: black;
}

/* Output Box */
/* Output Section */
#output {
    flex: 0 0 40%; /* Takes 50% of the io-container */
    background: var(--output-bg-dark);
    padding: 10px;
    color: white;
    font-size: 14px;
    overflow-y: auto;
    white-space: pre-wrap;
    transition: all 0.3s ease;
    box-shadow: 0 0 2px yellowgreen;
}
body.light-theme #output {
    background: var(--output-bg-light);
    color: black;
}

/* Resize handle */
.resize-handle {
    width: 8px;
    background-color: #ccc;
    cursor: ew-resize;
    user-select: none;
    position: relative;
    z-index: 1;
}

body.light-theme .resize-handle {
    background-color: #999;
}

/* Responsive Design */
/* Add these at the end of your styles.css file */

@media (max-width: 768px) {
    /* Adjust navbar text size */
    .navbar h1 {
        font-size: 0.8rem;
    }
    
    /* Make top-bar items stay in a single row with scrolling if needed */
    .top-bar {
        flex-direction: row;
        flex-wrap: nowrap;
        overflow-x: auto;
        padding: 8px;
        gap: 8px;
        align-items: center;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .top-bar select, 
    .top-bar button {
        margin-left: 0;
        flex-shrink: 0;
    }
    
    /* Adjust container spacing to prevent overlap */
    .container {
        margin-top: 300px;
        padding: 0 5px;
    }
    
    /* Stack editor and io containers vertically */
    .editor-output-container {
        flex-direction: column;
        height: auto;
    }
    
    /* Full width for both containers */
    .editor-container,
    .io-container {
        flex: 1 1 100%;
        min-width: 100%;
        max-width: 100%;
        height: 50vh; /* Give decent height */
        overflow: auto;
    }
    
    /* Adjust editor height */
    #editor {
        height: 100%;
    }
    
    /* Stack IO elements vertically */
    .io-container {
        display: flex;
        flex-direction: column;
        height: 50vh;
    }
    
    /* Give proper heights to input, output, and error console */
    #input {
        flex: 0 0 20%;
        min-height: 100px;
        overflow: auto;
    }
    
    #output {
        flex: 0 0 40%;
        min-height: 150px;
        overflow: auto;
    }
    
    #error-console {
        flex: 0 0 40%;
        min-height: 120px;
        overflow: auto;
    }
    
    /* Make sure resize handle is hidden */
    .resize-handle {
        display: none;
    }
    
    /* Adjust auth section for smaller screens */
    #authSection {
        margin-right: 10px;
    }
    
    #userInfo {
        display: none; /* Hide user info text on mobile */
    }
    
    /* Make buttons slightly smaller on mobile */
    #signInBtn, #signOutBtn,
    #run, #clear, #download, 
    #settings, #format {
        width: 24px;
        height: 24px;
    }
    
    /* Adjust modal for mobile */
    .settings-content {
        width: 95%;
    }
    
    /* Adjust auth section for mobile */
    #authSection {
        margin-right: 10px;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    /* Show and style user info for mobile */
    #userInfo {
        display: inline-block !important; /* Force show on mobile */
        font-size: 0.7rem; /* Smaller font size */
        max-width: 100px; /* Limit width */
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
       
    }
    
    /* Make buttons slightly smaller on mobile */
    #signInBtn, #signOutBtn,
    #run, #clear, #download, 
    #settings, #format {
        width: 24px;
        height: 24px;
    }
    
    /* Adjust modal for mobile */
    .settings-content {
        width: 95%;
    }

    .navbar h1 {
        font-size: 1.2rem; /* Smaller font size for mobile */
    }

    #authSection {
        margin-right: 10px; /* Reduce margin for mobile */
    }

    #controls button {
        padding: 8px 12px; /* Smaller padding for mobile */
    }

    #themeToggle {
        padding: 6px 12px; /* Smaller padding for mobile */
    }
}


/* 🐸 Loading Screen with Progress Bar */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

/* Frog Icon */
.loading-screen .frog-icon {
    width: 60px; /* Adjust size as needed */
    height: 60px; /* Adjust size as needed */
    margin-bottom: 20px; /* Space between frog and progress bar */
}

/* Progress Bar Container */
.progress-bar-container {
    width: 200px; /* Adjust width as needed */
    height: 10px; /* Adjust height as needed */
    background-color: #444; /* Background color of the progress bar container */
    border-radius: 5px; /* Rounded corners */
    overflow: hidden; /* Ensures the inner progress bar stays within the container */
}

/* Progress Bar */
.progress-bar {
    width: 0; /* Start with 0 width */
    height: 100%;
    background-color: yellowgreen; /* Progress bar color */
    border-radius: 5px; /* Rounded corners */
    transition: width 0.3s ease; /* Smooth transition for progress */
}

/* Loading Text */
.loading-screen p {
    color: var(--text-color-dark);
    font-size: 1.2rem;
    margin-top: 20px; /* Space between progress bar and text */
}

/* Light Theme Adjustments for Loader */
body.light-theme .loading-screen {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
}

body.light-theme .loading-screen p {
    color: var(--text-color-light);
}

body.light-theme .progress-bar-container {
    background-color: #ddd; /* Light theme progress bar container */
}

body.light-theme .progress-bar {
    background-color: #4caf50; /* Light theme progress bar color */
}

/* /* 🐸 Frog Loading Animation */
.loading-screen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent dark background */
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    z-index: 2000;
    transition: opacity 0.5s ease;
}

.loading-screen p {
    color: var(--text-color-dark);
    font-size: 1.5rem;
    margin-top: 20px;
}

.frog-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
}

.frog-icon {
    width: 40px; /* Adjust size as needed */
    height: 40px; /* Adjust size as needed */
    opacity: 0; /* Start with invisible frogs */
    animation: hop 1.2s infinite ease-in-out;
}

.frog-icon:nth-child(1) {
    animation-delay: 0s;
}

.frog-icon:nth-child(2) {
    animation-delay: 0.4s;
}

.frog-icon:nth-child(3) {
    animation-delay: 0.8s;
}

@keyframes hop {
    0%, 100% {
        opacity: 1;
        transform: translateY(0);
    }
    50% {
        opacity: 1;
        transform: translateY(-20px);
    }
}

/* Light Theme Adjustments for Loader */
body.light-theme .loading-screen {
    background-color: rgba(255, 255, 255, 0.5); /* Semi-transparent white background */
}

body.light-theme .loading-screen p {
    color: var(--text-color-light);
} */

/* 🐸 Navbar Heading with Frog Icon */
.navbar-heading {
    display: flex;
    align-items: center;
    /* gap: 8px; Space between text and icon */
    font-size: 1.5rem;
    margin: 0;
    color: yellowgreen;
    font-family: 'Fredoka One', cursive;
    text-shadow: 
    -1px -1px 0 black, /* Top-left shadow */
    1px -1px 0 black,  /* Top-right shadow */
    -1px 1px 0 black,  /* Bottom-left shadow */
    1px 1px 0 black;   /* Bottom-right shadow */
}

.frog-icon-small {
    width: 30px; /* Adjust size as needed */
    height: 30px; /* Adjust size as needed */
    object-fit: contain; /* Ensure the icon fits well */
    transform: rotate(90deg); 
}


/* Settings Modal */
.settings-modal {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent overlay */
    z-index: 2000;
    justify-content: center;
    align-items: center;
    
}

.settings-content {
    background: var(--bg-color-dark);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    width: 600px;
    max-width: 90%;
    overflow: hidden;
    box-shadow: 0 0 2px yellowgreen;
}

/* Light Theme Adjustments */
body.light-theme .settings-content {
    background: var(--bg-color-light);
    color: var(--text-color-light);
}

/* Modal Header */
.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
    background: var(--output-bg-dark);
    border-bottom: 1px solid var(--border-color-dark);
}

body.light-theme .settings-header {
    background: var(--output-bg-light);
    border-bottom: 1px solid var(--border-color-light);
}

.settings-header h3 {
    margin: 0;
    font-size: 1.2rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-color-dark);
    transition: color 0.3s ease;
}


body.light-theme .close-btn {
    color: var(--text-color-light);
}

.close-btn:hover {
    color: yellowgreen; /* Red on hover */
}

/* Modal Body */
.settings-body {
    padding: 15px;
}

.setting-item {
    margin: 10px 0;
}

.setting-item label {
    display: block;
    margin-bottom: 5px;
    font-size: 0.9rem;
}

.setting-item input {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--border-color-dark);
    border-radius: 4px;
    background: var(--input-bg-dark);
    color: var(--text-color-dark);
    font-size: 0.9rem;
}

body.light-theme .setting-item input {
    border: 1px solid var(--border-color-light);
    background: var(--input-bg-light);
    color: var(--text-color-light);
}

/* Modal Footer */
.settings-footer {
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    padding: 15px;
    background: var(--output-bg-dark);
    border-top: 1px solid var(--border-color-dark);
}

body.light-theme .settings-footer {
    background: var(--output-bg-light);
    border-top: 1px solid var(--border-color-light);
}

.save-btn,
.cancel-btn,
.clear-error-output {
    padding: 8px 15px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.save-btn {
    background: yellowgreen;
    color: var(--bg-color-dark);
}

.save-btn:hover {
    
    transform: scale(1.05);
}

.cancel-btn{
    background: #dc3545;
    color: white;
}

.cancel-btn:hover {
   
    transform: scale(1.05);
}
  /* 🐸 Frog Icon in Modal Header */
.modal-frog-icon {
    width: 30px; /* Match navbar icon size */
    height: 30px;
    margin-right: 10px; /* Space between icon and text */
    filter: drop-shadow(0 2px 2px rgba(0, 0, 0, 0.2)); /* Optional shadow */
  }
  
  /* Light theme adjustment */
  body.light-theme .modal-frog-icon {
    filter: brightness(0.8); /* Slightly darker for visibility */
  }
  
  /* Align title and icon */
  .header-title {
    display: flex;
    align-items: center;
    gap: 8px;
  }

  @media (max-width: 768px) {
    .modal-frog-icon {
      width: 25px;
      height: 25px;
    }
  }

 /* Error Console Section */
#error-console {
    flex: 0 0 30%; /* Takes 20% of the io-container */
    background: var(--output-bg-dark);
    border-top: 2px solid #dc3545;
    overflow-y: auto;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #dc354633;
}

#error-output {
    padding: 10px;
    color: #ff6b6b;
    white-space: pre-wrap;
    font-family: monospace;
    
}
/* Error Console Section */
#error-console {
    flex: 0 0 40%; /* Takes 20% of the io-container */
    background: var(--output-bg-dark);
    border-top: 2px solid #dc3545;
    overflow-y: auto;
    box-shadow: 0 0 2px yellowgreen;
}

.console-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 10px;
    background: #dc354633;
}

#error-output {
    padding: 10px;
    color: #ff6b6b;
    white-space: pre-wrap;
    font-family: monospace;
}

  
  /* Light Theme Adjustments */
body.light-theme #output {
    background: var(--output-bg-light);
    color: black;
}

body.light-theme #error-console {
    background: var(--output-bg-light);
    border-color: #ffcccc;
}

body.light-theme #error-output {
    color: #cc0000;
}

body.light-theme #input {
    background: var(--input-bg-light);
    color: black;
} 

/* ======================== */
/* OUTPUT STYLING CLASSES */
/* ======================== */
.output-placeholder {
    color: #666;
    font-style: italic;
    padding: 10px;
}

/* Success Output */
.success-output {
    color: #4CAF50; /* Green text */
    white-space: pre-wrap;
    padding: 10px;
    font-family: monospace;
    background-color: rgba(76, 175, 80, 0.1); /* Light green background */
    border-left: 3px solid #4CAF50;
}

/* Failure Output */
.failure-output {
    color: #D32F2F; /* Red text */
    white-space: pre-wrap;
    padding: 10px;
    font-family: monospace;
    background-color: rgba(211, 47, 47, 0.1); /* Light red background */
    border-left: 3px solid #D32F2F;
}

.partial-output {
    color: #FF9800;
    white-space: pre-wrap;
    padding: 10px;
    font-family: monospace;
    background-color: rgba(255, 152, 0, 0.1);
    border-left: 3px solid #FF9800;
}

.error-message {
    color: #F44336;
    white-space: pre-wrap;
    padding: 10px;
    font-family: monospace;
    background-color: rgba(244, 67, 54, 0.1);
    border-left: 3px solid #F44336;
}

.execution-time {
    color: #2196F3;
    margin-top: 10px;
    padding: 5px 10px;
    font-size: 0.9em;
    background-color: rgba(33, 150, 243, 0.1);
    display: inline-block;
    border-radius: 4px;
}

/* Light Theme Adjustments */
body.light-theme .success-output {
    background-color: rgba(76, 175, 80, 0.05);
    color: #2E7D32;
}

body.light-theme .partial-output {
    background-color: rgba(255, 152, 0, 0.05);
    color: #EF6C00;
}

body.light-theme .error-message {
    background-color: rgba(244, 67, 54, 0.05);
    color: #C62828;
}

body.light-theme .execution-time {
    background-color: rgba(33, 150, 243, 0.05);
    color: #1565C0;
}

/* @keyframes hop {
    0% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0); }
  } */
  
  .output-loading {
    display: flex; /* Align items side by side */
    align-items: center; /* Center vertically */
    gap: 10px; /* Add space between the frog and text */
    font-size: 14px; /* Adjust text size */
  }
  
  #frog {
    width: 20px;
    height: 20px;
    animation: hop 0.7s infinite ease-in-out;
  }

  /* Modal Background */
.modal {
    display: none; /* Hidden by default */
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5); /* Semi-transparent background */
    backdrop-filter: blur(5px); /* Blurred effect */
}

/* Modal Content Box */
.modal-content {
    background: #222; /* Dark theme */
    color: #fff;
    margin: 15% auto;
    padding: 20px;
    width: 60%;
    max-width: 400px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 0 2px yellowgreen;
}

.modal-content p{
    margin-top: 30px;
    font-family: monospace;
}

.modal-content h2{
    color: yellowgreen;
}

/* Close Button */
.close-btn {
    float: right;
    font-size: 24px;
    cursor: pointer;
}

.close-btn:hover {
    color: red;
}

/* Small frog icon */
.frog-icon-small {
    cursor: pointer;
    transition: transform 0.2s ease-in-out;
}

.frog-icon-small:hover {
    transform: scale(1.1);
}

/* Modal Opening Animation */
@keyframes modalFadeZoom {
    0% {
        opacity: 0;
        transform: scale(0.8);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

/* Apply animation when modal appears */
.modal-content {
    animation: modalFadeZoom 0.3s ease-out;
}
 