* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background: linear-gradient(135deg, #0a1a3d, #22B7CF, #0a1a3d);
    color: white;
    min-height: 100vh;
    padding: 20px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

header {
    text-align: center;
    padding: 30px 0;
    margin-bottom: 30px;
}

.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-bottom: 15px;
}

.logo {
    font-size: 3rem;
    font-weight: bold;
    background: linear-gradient(to right, #ffffff, #ffcc00);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
}

.policy-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    margin-bottom: 40px;
        max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}
    

.policy-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(30px);
    border-radius: 15px;
    padding: 25px;
    border: 1px solid rgba(34, 183, 207, 0.4);
    box-shadow: 0 0 15px rgba(34, 183, 207, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.policy-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(34, 183, 207, 0.8);
    background: rgba(255, 255, 255, 0.15);
}


.policy-item::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;

    transform: skewX(-20deg);
    transition: 0.6s;
}

.policy-item:hover::after {
    left: 100%;
}


.policy-item p {
    font-size: 1.1rem;
    line-height: 1.6;
    margin-bottom: 20px;
    text-align: center;
}

.twitter-button {
    display: block;
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #1da1f2, #0d8bd9);
    color: white;
    text-decoration: none;
    border-radius: 30px;
    text-align: center;
    font-weight: bold;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
}

p {
    margin-bottom: 0.75rem;
    /* creates a small gap after each paragraph */
}

p {
    margin-bottom: 0.75rem;
    /* creates a small gap after each paragraph */
}

.twitter-button:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 15px rgba(29, 161, 242, 0.4);
}

.generate-btn {
    display: block;
    width: 300px;
    margin: 30px auto;
    padding: 15px 30px;
    background: linear-gradient(45deg, #0a1a3d, #22B7CF);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.2rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.generate-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.satire-stamp {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 20px;
    font-size: 1.2rem;
    font-weight: 900;
    color: #ff3b3b;
    /* bright red text */
    border: 3px solid #8b0000;
    /* dark red border */
    border-radius: 8px;
    background: rgba(139, 0, 0, 0.3);
    /* translucent dark red */
    backdrop-filter: blur(4px);
    text-shadow: 0 0 8px #ff3b3b;
    /* red glow */
    box-shadow: 0 0 20px rgba(255, 59, 59, 0.6);
    /* neon red glow */
    transform: rotate(10deg) scale(0);
    animation: stampIn 0.8s ease-out forwards;
    pointer-events: none;
    z-index: 9999;
}

@keyframes stampIn {
    0% {
        transform: rotate(25deg) scale(0);
        opacity: 0;
    }

    60% {
        transform: rotate(8deg) scale(1.15);
        opacity: 1;
    }

    100% {
        transform: rotate(10deg) scale(1);
    }
}

.top-menu {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 20px;
    width: 100%;
    text-align: center;
}


.top-menu a {
    color: #22B7CF;
    font-weight: bold;
    text-decoration: none;
    font-size: 1.1rem;
    padding: 8px 14px;
    border: 2px solid #22B7CF;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.top-menu a:hover {
    background: #22B7CF;
    color: #0a1a3d;
    box-shadow: 0 0 12px rgba(34, 183, 207, 0.7);
    transform: translateY(-2px);
}


.bottom-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* allows wrapping on mobile */
    margin: 40px auto;
    width: 100%;
}


.action-btn {
    background: linear-gradient(45deg, #0a1a3d, #22B7CF);
    color: white;
    border: none;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    padding: 15px 25px;
    min-width: 180px;
    text-align: center;

}

     .input-section {
            margin-bottom: 20px;
            margin: 20px auto;  
            padding: 15px;
            background-color: #f8f9fa;
            border-radius: 5px;
            max-width: 960px;
        }
        
        label {
            display: block;
            margin-bottom: 5px;
            font-weight: bold;
            color: #555;
        }
        
        input[type="text"] {
            width: 100%;
            padding: 10px;
            border: 1px solid #ddd;
            border-radius: 4px;
            box-sizing: border-box;
            font-size: 16px;
        }
        
        button {
            background-color: #007bff;
            color: white;
            padding: 12px 20px;
            border: none;
            border-radius: 4px;
            cursor: pointer;
            font-size: 16px;
            margin-top: 10px;
            width: 100%;
        }
        
        button:hover {
            background-color: #0056b3;
        }
        
        .image-section {
            text-align: center;
            margin-top: 20px;
        }
        
        #outputImage {
            max-width: 100%;
            height: auto;
            border: 2px solid #ddd;
            border-radius: 5px;
            margin-top: 10px;
        }
        
        .controls {
            display: flex;
            gap: 10px;
            margin-top: 10px;
        }
        
        .controls button {
            flex: 1;
            padding: 8px;
            font-size: 14px;
        }


  #outputCanvas {
    width: 100%;
    max-width: 900px;
    min-width: 600px;
    aspect-ratio: 3/2; 
    height: auto;     /* keeps aspect ratio */
    margin: 0 auto;
    display: block;
  }


.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.home-btn {
    background: transparent;
    border: 2px solid #22B7CF;
    color: #22B7CF;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 15px 25px;
    min-width: 180px;
    text-align: center;
}

.home-btn:hover {
    background: #22B7CF;
    color: #0a1a3d;
    transform: scale(1.05);
}

.top-menu a:hover {
    background: #22B7CF;
    color: #0a1a3d;
    transform: translateY(-2px);
}

.yaml-title {
    text-align: center;
    margin: 40px 0 20px;
    font-size: 1.5rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.yaml-editor {
    background: rgba(0, 0, 0, 0.8);
    color: #00ff00;
    padding: 20px;
    border-radius: 15px;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
    line-height: 1.4;
    max-height: 400px;
    overflow: auto;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
}

.footer {
    text-align: center;
    color: white;
    padding: 20px;
    margin-top: 30px;
    font-size: 1rem;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

.loading {
    text-align: center;
    padding: 20px;
    font-size: 1.2rem;
}

@media (max-width: 768px) {
    .policy-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 2rem;
    }

    .logo {
        font-size: 2rem;
    }

    .generate-btn {
        width: 90%;
    }
}

.homepage-container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
    padding-top: 40px;
}

.homepage-container p {
    text-align: left;
}

.homepage-container h2 {
    text-align: left;
}

.homepage-container ul {
    text-align: left;
}

.homepage-container li {
    text-align: left;
}

.homepage-container ul {
    list-style-type: disc;
    margin-bottom: 0.75rem;
    padding-left: 2rem; /* Clean indentation for the top-level list */
}

.homepage-container ul li {
    margin-bottom: 0.25rem; /* Generous spacing between main conditions */
    line-height: 1.5;
}

/* Target the nested list (the names) */
.homepage-container ul ul {
    list-style-type: circle; /* Differentiate the bullet style */
    margin-top: 0.25rem;
    margin-bottom: 0.25rem;
    padding-left: 1.5rem; /* Indent the names slightly further */
}

.homepage-container ul ul li {
    margin-bottom: 0.1rem; /* Tighter spacing for the list of names */
}

.homepage-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 0 12px rgba(34, 183, 207, 0.8);
}

.homepage-subtitle {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 40px;
}

.tile-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}
.circle-img {
    width: 100%;       
    max-width: 200px;   
    aspect-ratio: 1/1; 
    object-fit: cover; 
    border-radius: 50%;
  }

.tile {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    padding: 20px;
    text-decoration: none;
    color: white;
    border: 1px solid rgba(34, 183, 207, 0.4);
    box-shadow: 0 0 15px rgba(34, 183, 207, 0.4);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.tile:hover {
    transform: translateY(-5px);
    box-shadow: 0 0 25px rgba(34, 183, 207, 0.8);
    background: rgba(255, 255, 255, 0.15);
}

.tile img {
    width: 80px;
    height: 80px;
    margin-bottom: 15px;
    filter: drop-shadow(0 0 8px rgba(34, 183, 207, 0.7));
}

.tile h2 {
    margin-bottom: 10px;
    font-size: 1.4rem;
    text-shadow: 0 0 8px rgba(34, 183, 207, 0.7);
}

.tile p {
    font-size: 1rem;
    opacity: 0.9;
}

/* Shimmer effect */
.tile::after {
    content: "";
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        120deg,
        transparent,
        rgba(255,255,255,0.4),
        transparent
    );
    transform: skewX(-20deg);
    transition: 0.6s;
}

.tile:hover::after {
    left: 100%;
}
