* {
    box-sizing: border-box;
    font-family: "Source Serif 4", serif;
    font-size: 15px;
}

.announcement {
    padding: 9px 15px;
    background-color: #ffbcbc;
    border: dashed 2px red;
    margin: 0 -15px;
    width: calc(100% + 30px);
}
.announcement li {
    padding-bottom: 8px;
}

.announcement h3 {
    color: black;
}

@keyframes stutterBackground {
    0% { background-position: 0 0; }

    100% { background-position: 100% 100%; }
  }

  @keyframes attentionBorder {
    0% { border-color: #ff0000; }

    100% { border-color: #00f33d; }

    100% { border-color: #f3e300; }
  }

body {
    animation: stutterBackground 5s steps(10, jump-none) infinite;
    background: url('/assets/img/backgroundtexture.png');
    background-size: 128px 128px;
    display: flex;
    justify-content: center;
}

div.content {
    width: 100%;
    max-width: 1280px;
    padding: 32px 64px;
    background-color: #fff;
}

header {
    display: grid;
    grid-template-columns: 124px 1fr 124px ;
    width: 100%;
    gap: 9px;
}

header img:nth-of-type(1), header img:nth-of-type(3) {
    display: none;
}

header > div {
    background-color: #fff;
    display: flex;
    height: 100%;
    justify-content: center;
    align-items: center;
    flex-grow: 1;
    border-top: 2px solid #f39200;
    border-bottom: 2px solid #f39200;
    animation: stutterBackground 5s steps(10, jump-none) infinite;
    background: url('/assets/img/backgroundtexture.png');
    background-size: 100px 100px;
}

header > div img {
    display: block !important;
    width: auto !important;
    height: 100px;
    background: none !important;
}

h2 {
    color: #ff0000;
    font-size: 32px;
    text-shadow: 2px 2px 3px #cacaca;
    margin-bottom: 4px;
}

h3 {
    color: #747474;
    font-size: 26px;
    margin-top: 0;
}

h3 * {
    font-size: 26px;
}

header img {
    width: 124px;
    padding: 12px;
    height: 124px;
    background-color: #f39200;
    border: none;
}


main {
    margin-top: 30px;
}

ul {list-style-type: square;}


.img-text {
    display: flex;
    gap: 12px;
    position: relative;
}

.img-text img, .starchaser-gallery img:not(.new) {
    margin: 18px 0;
    max-width: 300px;
    max-height: 300px;
    width: 300px;
    height: 300px;
    border: 2px inset #21499d;

}

.pc-gif {
    width: 80px !important;
    height: 80px !important;
    max-width: 50px;
    position: absolute;
    top: 210px;
    border: none !important;
    left: 10px;
}

.img-text .employee-of-the-month {
    position: relative;
    max-width: 300px;
    max-height: 300px;
}

.img-text .employee-of-the-month img {
    margin: 0;
    height: 300px;
    width: 300px;
}

.img-text .employee-of-the-month img:first-of-type {
    position: absolute;
    opacity: 0.9;
    top: 0;
    left: 0;
    width: 300px;
    height: 300px;
}

.new-items {
    display: flex;
    gap: 2px;
    border: 1px solid #000;
    padding: 2px;
    background: #b9cffd;
    overflow-x: scroll;
}

.new-items > div {
    border: 1px solid #000;
    background-color: #fff;
}

.new-items > div img {
    width: 168px;
    height: 240px;
}

h2, h3 {
    font-family: Times,"Times New Roman",serif
}

.new-items > div h4 {
    width: 168px;
    padding: 6px;
    font-size: 16px;
}

.sidebar {

    border: solid 3px #b9cffd;
    background: #b9cffd;
    padding: 12px;
    width: auto;

    display: grid;
    grid-template-columns: repeat(2, 1fr);
    margin-top: 38px;
    gap: 12px;
    text-wrap: break-word;
    border: solid 1px #d6d6d6;
    border-bottom-color: gray;
    border-left-color: gray;

}

.highlight {
    color: #f39200;
}

.sidebar div {
    content: "";
    width: 100%;
    height: 100%;
    border: solid 1px grey;
    border-bottom-color: #fff;
    display: block;
    box-sizing: border-box;
    padding: 6px;
}

.sidebar h3 {
    margin: 0;
}

.sidebar ul {
    list-style: none;
    padding: 0;
}

hr {
    margin-top: 48px;
}

.starchaser {
    display: flex;
    gap: 30px;
    padding-top: 40px;
}

.starchaser > div:not(.starchaser-gallery) {
    padding-top: 10px;
}

.starchaser-gallery {
    position: relative;
    margin: 0 30px 0 0;
    width: fit-content;
}

.starchaser-gallery img.new {
    position: absolute;
    top: -40px;
    right: -40px;
    width: 200px;
}

.starchaser-gallery img:not(.new) {
    width: 500px;

    max-width: 500px;
    max-height: none;
    height: auto;
}

.ad {
    max-width: 400px;
    height: 150px;
    max-height: 200px;
    margin-bottom: 32px;
    position: relative;
}

.ad::after {
    content: "Advertentie";
    display: block;
    text-decoration: underline;
    color:#21499d;
    background-color: #ffffffce;
    padding: 0 2px;
    position: absolute;
    bottom: 0;
    right: 0;
}

.noad::after {
    display: none;
    content: "";
}

.ad img {
    width: 100%;
    height: 150px;
    max-width: 900px;
    max-height: 200px;
    border: 2px inset #747474;
}

.noad * {
    margin: 0;
}

.noad {
    margin-bottom: 45px;
    height: fit-content !important;
    display: block;

}

@media only screen and (max-width: 1107px) {
    .starchaser {
        flex-direction: column;
        gap: 10px
    }    
}

@media only screen and (max-width: 684px) {
    .img-text {
        flex-direction: column;
    }

    .hide-mobile {
        display: none;
    }

    header {
        grid-template-columns: 64px 1fr 64px;
        margin: -16px -16px 0 -16px;
        width: calc(100% + 36px);
    }
    header img {
        width: 64px;
        padding: 8px;
        height: 64px;
        background-color: #f39200;
        border: none;
    }

    .new-items > div img {
        width: 126px;
        height: 180px;
    }
    .new-items > div h4 {
        width: 126px;
    }
    div.content {
        padding: 16px 32px;
    }

    .starchaser {
        padding: 0;
    }

    .starchaser-gallery {
        margin:0;
    }

    .starchaser-gallery img.new {
        width: 30vw;
        top: -10px;
        right: -10px;
    }
    
    .starchaser-gallery img:not(.new) {
        width: 100%;

    }
    
    .ad {
        height: 150px;
    }
    
    
    .ad img {
        height: 150px;
    }
    
}
@media only screen and (max-width: 500px) {
    header {
        grid-template-columns: 33% 33% 33%;
        gap: 0;
    }
    header div {
        grid-column: 1 / -1; /* Stretches across all columns */
    }
    header img {
        width: 100%;
        object-fit: contain;
    }
    header img:nth-of-type(4) {
        display: none;
    }
    header img:nth-of-type(1), header img:nth-of-type(3) {
        display: block;
    }
    .sidebar {
        grid-template-columns: 1fr ;
    }
    div.content {
        padding: 16px 16px;
    }
}

@media only screen and (max-width: 350px) {
    .pc-gif {
        top: 110px;
    }
    .img-text img {
        max-width: 200px;
        max-height: 200px;
        width: 200px;
        height: 200px;
    }
}

/* ::-webkit-scrollbar-button {
    display: none !important;
} */
::-webkit-scrollbar-button:single-button:vertical:decrement, 
::-webkit-scrollbar-button:single-button:horizontal:decrement {
    display: block;
}

::-webkit-scrollbar-button:single-button:vertical:increment, 
::-webkit-scrollbar-button:single-button:horizontal:increment {
    display: block;
}

/* Hide the weird extra buttons that WebKit sometimes adds */
::-webkit-scrollbar-button:double-button {
    display: none !important;
}

::-webkit-scrollbar-button:horizontal:end:increment,
::-webkit-scrollbar-button:horizontal:start:decrement,
::-webkit-scrollbar-button:vertical:end:increment,
::-webkit-scrollbar-button:vertical:start:decrement {
    display: none !important
}