@keyframes twigging {
    0% {
        transform: rotate(2deg);
    }
    50% {
        transform: rotate(-2deg);
    }
    100% {
        transform: rotate(2deg);
    }
}

@keyframes textFlicker {
    0% { opacity: 0.3; }
    2% { opacity: 1; }
    8% { opacity: 0.1; }
    9% { opacity: 1; }
    12% { opacity: 0.1; }
    20% { opacity: 1; }
    25% { opacity: 0.3; }
    30% { opacity: 1; }
    70% { opacity: 0.7; }
    72% { opacity: 0.2; }
    77% { opacity: 0.9; }
    100% { opacity: 0.9; }
}

.flicker {
    animation: textFlicker 2s linear infinite;
}

/* Font families */
.dotgothic16-regular {
    font-family: "DotGothic16", serif;
    font-weight: 400;
    font-style: normal;
}

.audiowide-regular {
    font-family: "Audiowide", serif;
    font-weight: 400;
    font-style: normal;
}

.pixelify-sans-400 {
    font-family: "Pixelify Sans", serif;
    font-optical-sizing: auto;
    font-weight: 400;
    font-style: normal;
}

/* Layout and sections */
.section {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.text-xs{
    font-size: 9pt;
    text-shadow:  4px 0px 10px rgba(0,0,0,1);
}

.top-section {
    padding-top: 2rem;
}

.middle-section {
    padding: 1rem;
}

.bottom-section {
    /* padding-bottom: 2rem; */
}

.extra-positioning {
    padding-bottom: 200px;
}

.bg-anime {
    position: relative;
    height: 100vh;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
    overflow: hidden;
    animation: swapBackground 7s infinite alternate;
    background-image: linear-gradient(rgba(0, 0, 0, 0), rgba(0, 0, 0, 0)),
        url("gifs/chadscience.gif");
}

.button-border {
    background: none;
    border: none;
    color:none;
  filter: drop-shadow(0px 1px 1px #fff);
}

/* Custom button styles */
.custom-button {
    color: #ebc031;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
    transition: transform 0.2s ease;
}

.icon-box {
    display: flex;
    justify-items: center;
    text-align: center;
    align-items: center;
    align-content: center;
    justify-content: center;
}

.custom-button:hover {
    transform: scale(1.1);
}

.custom-icon {
    font-size: 14px;
    color: #ebc031;
}

.wrap {
    word-wrap: break-word; /* Ensures text wraps properly */
    overflow-wrap: break-word; /* Additional support for wrapping */
    text-wrap: wrap;
}

.border-box-2 {
    display: inline-block;
    padding: 6px;
    background-image: url('metal.png');
    color: #dba2ff;
    border-radius: 4px;
    border: 4px solid #222;
    border-image-slice: 11;
    border-image-repeat: repeat;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
    width: 100%; /* Default width */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 400px; /* Set a reasonable max width for larger screens */
    word-wrap: break-word; /* Ensures text wraps properly */
    overflow-wrap: break-word; /* Additional support for wrapping */
    text-align: center;
}

/* Media Queries */
@media (max-width: 576px) {
    .border-box-2 {
        width: 60%; /* Set width to 90% on small screens */
    }
}


/* Copy container styles */
.copy-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    height: 100%;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.copy-container:hover {
    background-color: #eaeaea;
}

.hover-text {
    font-size: 9px;
    position: relative;
    text-align: center;
}

/* Title image styles */
.title-img {
    max-width: 60%;
    height: auto;
    -webkit-filter: drop-shadow(5px 5px 5px #222);
    filter: drop-shadow(5px 5px 5px #222);
}

/* Misc styles */
.txt-scroll-down {
    color: white;
    outline: #1b1b24;
    font-size: 7pt;
}

.bg-cheese {
    color: white;
    padding: 11px;
    box-shadow: #58241f;
    border-radius: 20px;
    background-image: url("metal.png");
}

/* Media Queries */
@media (max-width: 576px) {
    .title-img {
        max-width: 100%;
        width: 100%;
        max-height: 150px;
        object-fit: contain;
    }
}

/* Animations */
@keyframes hanging {
    0% { transform: rotate(0deg); }
    25% { transform: rotate(3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(-3deg); }
    100% { transform: rotate(0deg); }
}

/* Desktop: Center the section within the container */
@media (min-width: 992px) {
    .info-section {
        max-width: 900px;  /* Limit width */
        margin: auto;      /* Center horizontally */
        height: 100%;      /* Take full height of parent */
        display: flex;
        align-items: center;  /* Vertical centering */
        justify-content: center;  /* Center horizontally */
    }
    
    .info-text,
    .info-image {
        flex: 0 0 45%;  /* Reduce width slightly */
    }
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .info-section {
        flex-direction: column;
        text-align: center;
    }

    .info-text {
        order: 2;
    }

    .info-image {
        order: 1;
        margin-bottom: 20px;
    }

    .info-image img {
        width: 100%;
        max-width: 350px;
        height: auto;
    }
}

.bg-dark-metal {
    background-image: 
        linear-gradient(
            to bottom, 
            #fff 0%,  /* Light gray */
            #666 50%, 
            #444 100% 
        ),
        url('metal.png');
    background-blend-mode: multiply;
}

.bg-dark-metal-invert {
    background-image: 
        linear-gradient(
            to bottom, 
            #444 0%,
            #666 50%, 
            #fff 100%
        ),
        url('metal.png');
    background-blend-mode: multiply;
}


.bg-black span {
    background: black;
}

.science-img {
    width: 32px;
    height: 32px;
}

/* Font size utilities */
.fs-xs { font-size: 12px; }
.fs-sm { font-size: 14px; }
.fs-md { font-size: 16px; }
.fs-lg { font-size: 20px; }
.fs-xl { font-size: 24px; }
.fs-xxl { font-size: 32px; }
.fs-xxxl { font-size: 40px; }

