@font-face {
    font-family: 'MedievalSharp';
    src: url('/Resources/SpellBook/ui/MedievalSharp-Regular.ttf') format('truetype');
}

body {
    font-family: 'MedievalSharp', 'Georgia', serif;
    background-color: #000;
    color: #7b766d;
    margin: 0;
    padding: 0;
    min-height: 100vh;
    cursor: url('/Resources/Landing/cursor-default.png'), auto;
    overflow-x: hidden;
    max-width: 100%;
}


* {
    overflow-x: hidden !important;
}
.youtube-button.play-button {
    overflow:hidden !important;
}
#background-3d {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}

html {
    scroll-padding-top: 20px;
}

/* Scrollbar styling */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: #060101b3;
}

::-webkit-scrollbar-thumb {
    background: #7b766d;
    border-radius: 6px;
}

::-webkit-scrollbar-thumb:hover {
    background: #8B4513;
}

/* Firefox scrollbar */
html {
    scrollbar-width: thin;
    scrollbar-color: #7b766d #060101b3;
}

.hero-container {
    height: 100vh;
    min-height: 800px;
    margin: 0;
    padding: 0;
    width: 100vw;

    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: linear-gradient(to bottom, #63005f 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);

    transition: background 0.5s ease;
}

.hero-container.bg-2 {
    background: linear-gradient(to bottom, #4f0063 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
}

.hero-container.bg-3 {
    background: linear-gradient(to bottom, #220705 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);

}

.logo-segment {
    height: 50vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.button-segment {
    height: 30vh;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: -6vh;
}

.logo-section .pga-content {
    padding: 0;
    position: relative;
    min-height: auto;
}

.logo-content {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.logo-content img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-segment h1 {
    margin: 0;
}

.container {
    max-width: 900px;
    margin: 0 auto;
    padding: 10px;
}

.logo {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero-segment .logo {
    margin-bottom: 0;
    padding-top: 0;
}


h1 {

    text-align: center;
    color: #7b766d;
    font-size: 4em;
    margin-top: -50px;
    margin-bottom: 40px;
    padding-top: 0;

    text-shadow: 1px 1px #8B4513;
}

.pga-content {
    background: url('/Resources/SpellBook/ui/background.png') repeat;
    margin: 20px auto;
    
    position: relative;
    border-image: url('/Resources/SpellBook/ui/border-top.png') 20 repeat;
    min-height: 400px;
    overflow: visible;
}

/* Corners */
.pga-corner-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: url('/Resources/SpellBook/ui/corner.png') no-repeat;
    background-size: contain;
    transform: scaleX(-1);
    z-index: 10;
}

.pga-corner-top-right {
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('/Resources/SpellBook/ui/corner.png') no-repeat;
    background-size: contain;
    z-index: 10;
}

.pga-corner-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100px;
    height: 100px;
    background: url('/Resources/SpellBook/ui/corner.png') no-repeat;
    background-size: contain;
    transform: scaleX(-1) scaleY(-1);
    z-index: 10;
}

.pga-corner-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: url('/Resources/SpellBook/ui/corner.png') no-repeat;
    background-size: contain;
    transform: scaleY(-1);
    z-index: 10;
}

/* Borders */
.pga-border-top {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: url('/Resources/SpellBook/ui/border-top.png') repeat-x;
    background-size: auto 15px;
    z-index: 1;
}

.pga-separator {
    background: url('/Resources/SpellBook/ui/border-top.png') repeat-x;
    background-size: auto 15px;
    height: 15px;
    width: 140%;
    margin-left: -20%;
    margin-top: -5px;
}

.pga-border-bottom {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 15px;
    background: url('/Resources/SpellBook/ui/border-bottom.png') repeat-x;
    background-size: auto 15px;
    transform: scaleX(-1) scaleY(-1);
    z-index: 1;
}

.pga-border-left {
    position: absolute;
    top: 20px;
    bottom: 20px;
    left: 0;
    width: 25px;
    background: url('/Resources/SpellBook/ui/border-right.png') repeat-y;
    background-size: 25px auto;
    transform: scaleX(-1);
    z-index: 1;
}

.pga-border-right {
    position: absolute;
    top: 20px;
    bottom: 20px;
    right: 0;
    width: 25px;
    background: url('/Resources/SpellBook/ui/border-right.png') repeat-y;
    background-size: 25px auto;
    z-index: 1;
}

.pga-header {
    text-align: center;
    margin-bottom: 40px;
}

.pga-title {
    color: #7b766d;
    font-size: 3em;
    margin: 0 0 20px 0;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.pga-text {
    color: #7b766d;
    line-height: 1.6;
    margin: 20px 0;
    font-size: 1.4em;
    text-align: center;
}

.pga-image {
    text-align: center;
    margin: 30px 0 10px 0;
}

.pga-image img {
    max-width: 250px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

.event-details {
    padding: 30px;
    border-radius: 10px;
    margin: 30px 0;
    text-align: center;
}
b,
.highlight {
    color: #8B4513;
    font-weight: bold;
    font-size: 1.1em;
}

.youtube-button {
    display: inline-block;
    background: url('/Resources/PGA/button.png') no-repeat center center;
    background-size: 100% 100%;
    color: #e8e3dc;
    padding: 0;
    border-radius: 0;
    text-decoration: none;
    font-size: 1.4em;
    font-weight: bold;
    margin: 20px 0;
    transition: all 0.3s ease;
    border: none;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.7);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    width: 250px;
    height: 104px;
    line-height: 100px;
    cursor: url('/Resources/Landing/cursor-default.png'), auto;
}

.youtube-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.3);
    text-decoration: none;
    color: #e8e3dc;
    filter: brightness(1.1);
}

.play-button:hover {
    transform: none !important;
    box-shadow: none !important;
    filter: none !important;
}

a.youtube-button.play-button {
    position: relative;
    opacity: 0.95 !important;
    transition: transform 0.3s ease, opacity 0.2s ease !important;
    cursor: pointer !important;
}

a.youtube-button.play-button:hover {
    transform: translateY(-3px) !important;
    opacity: 0.98 !important;
}

a.youtube-button.play-button:active {
    opacity: 1 !important;
    transform: translateY(0px) !important;
}

.button-witch {
    position: absolute;
    height: 90px;
    width: auto;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.5));
    left: 101px;
    top: 63%;

    transform: translateY(-66%);
    z-index: 10;
    margin-top: 3px;
}

.button-witch.idle {



}

#witch-gif-broom {
    transform: translateY(-65%) translateX(-36%) scale(1.2);

}

.clickable-image {
    cursor: url('/Resources/Landing/cursor-default.png'), auto;
    transition: transform 0.3s ease;
}

.clickable-image:hover {
    transform: scale(1.05);
}

.play-button {
    /*max-width: 283px !important;
    width: 283px !important;
    height: 82px !important;*/
}

@media (max-width: 1130px) {
}

@media (max-width: 900px) {
}

@media (max-width: 700px) {
}

@media (max-width: 500px) {
}

@media (max-width: 400px) {
    .play-button {
        
    }
}

.witch-flying {
    position: absolute;
    height: 80px !important;
    width: auto !important;
    z-index: 50;
    opacity: 1;
    filter: brightness(0);
    animation: none;
    left: -9999px;
}

.witch-flying-2 {
    position: absolute;
    height: 80px !important;
    width: auto !important;
    z-index: 49;
    opacity: 1;
    filter: brightness(0);
    animation: none;
    left: -9999px;
}

@keyframes witchFly {
    0% {
        opacity: 0;
        left: var(--witch-start-x);
        top: 145px;
    }
    10% {
        opacity: 1;
        left: var(--witch-start-x);
        top: 145px;
    }
    80% {
        opacity: 1;
        left: var(--witch-end-x);
        top: 125px;
    }
    90% {
        opacity: 0;
        left: var(--witch-end-x);
        top: 125px;
    }
    100% {
        opacity: 0;
        left: var(--witch-end-x);
        top: 125px;
    }
}

@keyframes witchFly2 {
    0% {
        opacity: 0;
        left: var(--witch-start-x);
        top: 175px;
    }
    10% {
        opacity: 1;
        left: var(--witch-start-x);
        top: 175px;
    }
    80% {
        opacity: 1;
        left: var(--witch-end-x);
        top: 155px;
    }
    90% {
        opacity: 0;
        left: var(--witch-end-x);
        top: 155px;
    }
    100% {
        opacity: 0;
        left: var(--witch-end-x);
        top: 155px;
    }
}

@media (min-width: 1450px) {
    .hero-container {
        height: 100vh;
        min-height: 800px;
        margin: 0;
        padding: 0;
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
    }

    .hero-container.bg-2 {
        background: linear-gradient(to bottom, #4f0063 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-container.bg-3 {
        background: linear-gradient(to bottom, #220705 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .logo-segment {
        height: 50vh;
        margin-top: 7vh;
    }

    .button-segment {
        height: 30vh;
        margin-top: -6vh;
    }

    h1 {
        font-size: 10em;
    }
}

@media (min-width: 1001px) and (max-width: 1449px) {
    .hero-container {
        height: 100vh;
        min-height: 800px;
        margin: 0;
        padding: 0;
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
    }

    .hero-container.bg-2 {
        background: linear-gradient(to bottom, #4f0063 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-container.bg-3 {
        background: linear-gradient(to bottom, #220705 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .logo-segment {
        height: 50vh;
        margin-top: 7vh;
    }

    .button-segment {
        height: 30vh;
        margin-top: -6vh;
    }

    h1 {
        font-size: 5em;
    }
}

@media (min-width: 769px) and (max-width: 1000px) {
    .hero-container {
        height: 100vh;
        min-height: 800px;
        margin: 0;
        padding: 0;
        width: 100vw;
        position: relative;
        left: 0;
        right: 0;
    }

    .logo-segment {
        height: 50vh;
        margin-top: 7vh;
    }

    .button-segment {
        height: 30vh;
        margin-top: -6vh;
    }

    h1 {
        font-size: 5em;
    }
}


@media (max-width: 768px) {
    .hero-container {
        height: 100vh;
        margin: 0;
        
    }

    .button-segment {
        margin-top: -14vh !important;
    }

    .hero-container.bg-2 {
        background: linear-gradient(to bottom, #4f0063 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-container.bg-3 {
        background: linear-gradient(to bottom, #220705 0%, #060101b3 70%, rgba(0, 0, 0, 0) 100%);
    }

    .hero-segment {
        height: calc(60vh / 3);
    }

    .container {
        padding: 5px;
    }

    .section {
        margin: 120px auto 60px auto !important;
    }

    h1 {
        font-size: 5em;
        margin-top: -50px;
        margin-bottom: 40px;
    }


    .pga-content {
        margin: 10px auto;
        padding: min(40px, 8vw);
    }

    .featured-video-section .pga-content {
        padding: 0;
        margin: 10px auto;
    }

    .pga-title {
        font-size: 2em;
    }

    .pga-text {
        font-size: 1.1em;
        margin: 15px 0;
    }

    .pga-header {
        margin-bottom: 25px;
    }

    .event-details {
        padding: 20px;
        margin: 20px 0;
    }

    .pga-image img {
        max-width: 250px;
    }

    .witch-flying {
        height: 80px !important;
    }

    .witch-flying-2 {
        height: 80px !important;
    }

    .witches-gallery, .spells-gallery, .creatures-gallery {
        grid-template-columns: repeat(2, auto) !important;
    }
}

@media (max-width: 480px) {
    .section {
        margin: 80px auto 60px auto !important;
    }

    h1 {
        font-size: 4em;
        margin-top: -50px;
        margin-bottom: 40px;
    }

    .pga-content {
        padding: min(30px, 6vw);
    }

    .pga-title {
        font-size: 1.8em;
    }

    .pga-text {
        font-size: 1em;
    }

    .event-details {
        padding: 15px;
    }

    .pga-image img {
        max-width: 230px;
    }


    .witch-flying {
        height: 80px !important;
    }

    .witch-flying-2 {
        height: 80px !important;
    }
}

/* Section wrapper styles */
.section {
    max-width: 900px;
    margin: 150px auto 60px auto;
}

/* Featured video section styles */
.featured-video-section {
    max-width: none;
    margin: 0;
}

.featured-video-section .pga-content,
.update-item .pga-content {
    padding: 0;
    position: relative;
    min-height: auto;
}

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

.video-content .video-wrapper {
    margin: 0;
}

.video-content .video-wrapper iframe {
    border-radius: 0;
    box-shadow: none;
}

/* Update items with videos - ensure proper spacing */
.update-item .video-content {
    margin-bottom: 0;
}

.update-item .update-content {
    padding: 20px 40px 40px 40px;
}

/* Updates section styles */
.updates-section {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.updates-header {
    text-align: center;
    margin-bottom: -60px;
    padding: 30px 0 0 0;
    position: relative;
    z-index: 15;
}

.updates-header h2 {
    color: #333;
    font-size: 1.5em;
    margin: 0;
    background: url('/Resources/Landing/input-background.png?2') no-repeat center center;
    background-size: contain;
    padding: 20px 40px;
    text-align: center;
    position: relative;
    z-index: 15;
}
.updates-header h2 span {
    margin-top: 50px;
}

.update-item {
    margin-bottom: 40px;
}

.update-content {
    padding: 40px;
    text-align: center;
}

.update-title {
    color: #7b766d;
    margin: 0 0 20px 0;
    text-align: center;
    font-size: 1.4em;
    font-family: 'MedievalSharp', 'Georgia', serif;
}


.video-wrapper {
    margin: 20px 0;
}

.video-wrapper iframe {
    width: 100%;
    aspect-ratio: 16/9;
    border: none;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
    display: block;
}

.video-wrapper.short iframe {
    width: 60%;
    aspect-ratio: 9/16;
    max-width: 350px;
    margin: 0 auto;
    display: block;
}

/* About section styles */
.about-section {
    margin-top: 60px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.about-content {
    padding: 40px;
    text-align: center;
}

.witches-gallery, .spells-gallery, .creatures-gallery {
    display: grid;
    grid-template-columns: repeat(3, auto);
    justify-content: center;
    gap: 20px;
    margin: 30px 0;
}

.image-frame {
    position: relative;
    width: 80px;
    height: 80px;
    display: inline-block;
}

.image-frame img {
    width: 70px;
    height: 70px;
    object-fit: contain;
    filter: drop-shadow(2px 2px 4px rgba(0, 0, 0, 0.3));
    position: absolute;
    top: 5px;
    left: 5px;
}

.image-frame::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 80px;
    height: 80px;
    background: url('/Resources/SpellBook/ui/square-frame.png') no-repeat center;
    background-size: 100% 100%;
    pointer-events: none;
}

/* Compatibility popup styles */
.compatibility-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
}

.compatibility-popup-content {
    background: url('/Resources/SpellBook/ui/background.png') repeat;
    position: relative;
    padding: 60px;
    border-radius: 10px;
    max-width: 500px;
    text-align: center;
    color: #7b766d;
}

.compatibility-popup-content .pga-corner-top-left,
.compatibility-popup-content .pga-corner-top-right,
.compatibility-popup-content .pga-corner-bottom-left,
.compatibility-popup-content .pga-corner-bottom-right,
.compatibility-popup-content .pga-border-top,
.compatibility-popup-content .pga-border-bottom,
.compatibility-popup-content .pga-border-left,
.compatibility-popup-content .pga-border-right {
    position: absolute;
}

.compatibility-popup h2 {
    color: #7b766d;
    font-size: 2em;
    margin: 0 0 20px 0;
    font-family: 'MedievalSharp', 'Georgia', serif;
}

.compatibility-popup p {
    color: #7b766d;
    font-size: 1.2em;
    line-height: 1.6;
    margin: 15px 0;
    font-family: 'MedievalSharp', 'Georgia', serif;
}

.close-popup {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #7b766d;
    font-size: 30px;
    cursor: url('/Resources/Landing/cursor-default.png'), auto;
    font-weight: bold;
}

.close-popup:hover {
    color: #8B4513;
}

/* Footer copyright styles */
.footer-copyright {
    background: rgba(0, 0, 0, 0.8);
    padding: 20px;
    text-align: center;
    margin-top: 60px;
}

.footer-copyright p {
    color: #7b766d;
    margin: 0;
    font-family: 'MedievalSharp', 'Georgia', serif;
    font-size: 1.1em;
}

.footer-copyright a {
    color: #8B4513;
    text-decoration: none;
    font-weight: bold;
}

.footer-copyright a:hover {
    color: #7b766d;
    text-decoration: underline;
}

/* Social media icons */
.social-icons {
    position: fixed;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 15px;
    z-index: 1000;
}

.social-icon {
    text-decoration: none;
    color: #e8e3dc;
    font-size: 24px;
    cursor: url('/Resources/Landing/cursor-default.png'), auto;
}

/* Zaptak styles moved to zaptak.js */

/* =============================================================================
   LOGO STYLING - ALL LOGO-IMAGE CSS RULES CONSOLIDATED HERE
   ============================================================================= */

/* Default logo styling */
.logo-image {
    width: 100vw !important;
    max-width: 666px !important;
    height: auto !important;
}

.logo-segment, .logo-segment div {
    overflow: visible !important;
}

/* Logo styling for screens */
@media (min-width: 769px) and (max-width: 999px) {
    .logo-image {
        max-height: 40vh !important;
        width: 100vw !important;
        max-width: 666px !important;
    }
}

@media (min-width: 1000px) {
    .logo-content {
        zoom: 1.1;
    }

    #game-description {
        zoom: 1.3 !important;
    }

    .hero-container .play-button {
        zoom: 1.6;
    }
}

@media (min-width: 1100px) {
    .logo-content {
        zoom: 1.2;
    }
}

@media (min-width: 1200px) {
    .logo-content {
        zoom: 1.3;
    }
}

@media (min-width: 1300px) {
    .logo-content {
        zoom: 1.4;
    }
}

@media (min-width: 1400px) {
    .logo-content {
        zoom: 1.5;
    }
}

@media (min-width: 1500px) {
    .logo-content {
        zoom: 1.6;
    }
}

@media (min-width: 1600px) {
    .logo-content {
        zoom: 1.7;
    }
}

@media (min-width: 1700px) {
    .logo-content {
        zoom: 1.8;
    }
}

@media (min-width: 1800px) {
    .logo-content {
        zoom: 1.9;
    }
}

@media (min-width: 1900px) {
    .logo-content {
        zoom: 2.0;
    }
}

@media (max-width: 768px) {
    .logo-image {
        width: 100vw !important;
        max-width: 666px !important;
    }
}

@media (max-width: 480px) {
    .logo-image {
        width: 100vw !important;
        max-width: 666px !important;
    }
}


/* Game description header styling - overrides inline styles */
.hero-container .updates-header {
    margin-top: -60px;
    margin-bottom: 20px;
    min-height: 225px;
}

/* Updates header styling for smaller screens */
@media (max-width: 600px) {
    .hero-container .updates-header {
        margin-top: -30px !important;
        margin-bottom: -30px;
    }
} 