/* layout.css */
/* General reset and font */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background: linear-gradient(145deg, #0f0f0f, #1a1a1a);
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
	padding: 60px 0; 
}

/* Main wrapper */
.wrapper {
    width: 95%;
    max-width: 1000px;
    padding: 30px;
    background: #101010;
    border: 2px solid #00ffcc;
    border-radius: 16px;
    box-shadow: 0 0 20px #00ffcc44;
    text-align: center;
}

/* Flash message */
.flash {
    background: #00ffcc22;
    color: #00ffaa;
    padding: 8px 12px;
    border: 1px solid #00ffcc;
    border-radius: 4px;
    margin-bottom: 16px;
    text-align: center;
}

/* Title with admin button */
.title-with-button {
    font-size: 2.2rem;
    color: #00ffff;
    text-shadow: 0 0 5px #00ffcc, 0 0 10px #00ffcc88;
    margin-bottom: 30px;
    display: inline-flex;
    align-items: center;
    gap: 15px;
    justify-content: center;
}

/* Admin menu button (inline next to title) */
.inline-button {
    position: relative;
    display: inline-block;
    white-space: nowrap;
}

.inline-button button {
    padding: 6px 12px;
    font-size: 14px;
    cursor: pointer;
    background-color: #101010;
    border: 1px solid #00ffcc;
    color: #00ffcc;
    border-radius: 6px;
    box-shadow: 0 0 5px #00ffcc66;
}

/* Admin menu dropdown */
#adminMenu {
    position: absolute;
    top: 100%;
    left: 0;
    background-color: #222;
    border: 1px solid #444;
    padding: 10px;
    display: none;
    z-index: 1000;
    min-width: 140px;
    text-align: center;
}

#adminMenu a {
    color: #00ffcc;
    text-decoration: none;
    display: block;
    padding: 4px 0;
    font-size: 14px;
    font-family: 'Courier New', Courier, monospace;
    margin: 0;
}

#adminMenu a:hover {
    text-decoration: underline;
}

/* Grid layout for buttons */
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 20px;
}

/* Top action buttons section */
.top-buttons {
    margin-bottom: 30px;
}


/* Box around the top action buttons */
.grid.top-buttons {
    border: 2px solid #00ffcc;
    border-radius: 12px;
    padding: 16px;           /* space inside the box */
    background-color: #101010; /* match your wrapper bg */
    margin-bottom: 30px;     /* keep the existing spacing below */
}

/* Dynamic soundboard button grid */
.soundboard {
    margin-top: 10px;
}

/* Cyber-style soundboard button */
.sb {
    background-size: cover;
    background-position: center;
    height: 150px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffcc66;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
}

.sb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 204, 0.15);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 12px;
}

.sb:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffccaa;
}

.sb:hover::after {
    opacity: 1;
}

/* Predefined top action buttons with images */
.herbert { background-image: url('/../images/herbert.jpg'); }
.random  { background-image: url('/../images/cy.gif'); }
.fart    { background-image: url('/../images/goat.jfif'); }
.borat   { background-image: url('/../images/borat.jpg'); }
.familyguy   { background-image: url('/../images/fg.png'); }

/* Top action buttons styled like .sb */
.action-btn {
    background-size: cover;
    background-position: center;
    height: 150px;
    width: 100%;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    box-shadow: 0 0 10px #00ffcc66;
    transition: transform 0.2s, box-shadow 0.2s;
    position: relative;
    overflow: hidden;
    color: transparent;
    text-indent: -9999px;
}

.action-btn::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0, 255, 204, 0.15);
    mix-blend-mode: overlay;
    opacity: 0;
    transition: opacity 0.2s;
    border-radius: 12px;
}

.action-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px #00ffccaa;
}

.action-btn:hover::after {
    opacity: 1;
}

/* Modal styling */
.modal {
    display: none;
    position: fixed;
    z-index: 10;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.75);
}

.modal-content {
    background-color: #111;
    color: #00ffcc;
    margin: 10% auto;
    padding: 20px;
    border: 1px solid #00ffcc;
    width: 50%;
    border-radius: 10px;
    font-family: 'Courier New', Courier, monospace;
    box-shadow: 0 0 20px #00ffcc55;
}

.modal-content input[type="text"],
.modal-content input[type="file"],
.modal-content input[type="submit"] {
    width: 100%;
    padding: 10px;
    margin-top: 6px;
    margin-bottom: 16px;
    background: #000;
    color: #00ffcc;
    border: 1px solid #00ffcc;
    border-radius: 6px;
}

.modal-content input[type="submit"] {
    background: #00ffcc;
    color: #000;
    font-weight: bold;
    cursor: pointer;
}

.modal-content input[type="submit"]:hover {
    background: #00ffee;
}

.close {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #00ffcc;
    cursor: pointer;
}
