/* CakePHP Default Styles */
@font-face {
    font-family: 'cakefont';
    src: url('../font/cakedingbats-webfont.eot');
    src: url('../font/cakedingbats-webfont.eot?#iefix') format('embedded-opentype'),
        url('../font/cakedingbats-webfont.woff2') format('woff2'),
        url('../font/cakedingbats-webfont.woff') format('woff'),
        url('../font/cakedingbats-webfont.ttf') format('truetype'),
        url('../font/cakedingbats-webfont.svg#cake_dingbatsregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

body {
    padding: 0;
    margin: 0;
}

header {
    margin-bottom: 60px;
}

img {
    margin-bottom: 30px;
}

h1 {
    font-weight: bold;
}

ul {
    list-style-type: none;
    margin: 0 0 30px 0;
    padding-left: 25px;
}

a {
    color: #0071BC;
    text-decoration: underline;
}

hr {
    border-bottom: 1px solid #e7e7e7;
    border-top: 0;
    margin-bottom: 35px;
}

.text-center {
    text-align: center;
}

.links a {
    margin-right: 10px;
}

.release-name {
    color: #D33C43;
    font-weight: 400;
    font-style: italic;
}

.bullet:before {
    font-family: 'cakefont', sans-serif;
    font-size: 18px;
    display: inline-block;
    margin-left: -1.3em;
    width: 1.2em;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: -1px;
}

.success:before {
    color: #88c671;
    content: "\0056";
}

.problem:before {
    color: #d33d44;
    content: "\0057";
}

.cake-error {
    padding: 10px;
    margin: 10px 0;
}

#url-rewriting-warning {
    display: none;
}

/* Custom GIF Page Styles */
.main {
    padding: 0 !important;
    margin: 0 !important;
}

.container {
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

.gif-page {
    min-height: calc(100vh - 60px);
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #ccc 0%, #666 100%);
    padding: 40px 20px;
}

.gif-content {
    text-align: center;
    animation: fadeIn 1s ease-in;
}

.gif-container {
    background: white;
    padding: 50px;
    border-radius: 20px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s ease;
    display: inline-block;
    max-width: 90vw;
}

.gif-container:hover {
    transform: translateY(-10px);
}

.gif-container img {
    max-width: 800px;
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    display: block;
    margin-bottom: 0;
}

.gif-page h1 {
    color: white;
    margin-bottom: 40px;
    font-size: 3em;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.4);
    letter-spacing: 2px;
    font-weight: bold;
}

/* Force full-width layout for gif page - override sidebar layout */
.gif-page-wrapper .main {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    padding: 0 !important;
}

.gif-page-wrapper .side-nav {
    display: none !important;
}

.gif-page-wrapper {
    display: block !important;
}

/* Override any grid/flex layout from default */
body:has(.gif-page) {
    display: block !important;
}

body:has(.gif-page) .main {
    width: 100% !important;
    margin-left: 0 !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 768px) {
    .gif-page h1 {
        font-size: 2em;
    }

    .gif-container {
        padding: 20px;
    }
}