/*
         Cool Town & Bread Co. Wikipedia
         guest book
         post push notifs
         Sitemap for google
         new badge
         Evil Szpieg Mode on like Evil szpieg month
         
*/


body {
    background-color: black;
    color: white;
    font-family: 'Courier New', Courier, monospace;
    padding:0px; margin:0px;
}


main {
    width: 78%;
    margin: 0 auto 8px auto;
    padding:4px;
	background-color:#4C5844;
	color:white;
    border: 3px solid #282E22;
    border-top: 3px solid #889180;
    border-left: 3px solid #889180;
    
}

main::after{
    font-size:8px;
    content: "Content made by Szpieg2000 | All rights reserved | 2026";
}

article {
    padding:8px;
    background-color:#3E4637;
    border: 3px solid #889180;
    border-top: 3px solid #282E22;
    border-left: 3px solid #282E22;
    margin-bottom:5px;
    font-family: 'Courier New', Courier, monospace;
}

h3 {
    margin-left:16px;
    font-family: 'Courier New', Courier, monospace;
    color:#C4B550;
    margin-bottom:0px;
}

h6::before {
    content: "Posted on: ";
    font-size: 12px;
    color: #d3b443;
}

h6 {
    margin-top:0px;
    margin-left:24px;
    margin-bottom:0px;
    font-family: 'Courier New', Courier, monospace;
    color:#d3b443;
}

h7 {
    font-size: 16px;
    font-family: 'Courier New', Courier, monospace;
    color:#D8DED3;
    margin-top:0px;
}

article > hr:first-of-type, hr.bold {
    color:#282E22;
    background-color:#282E22;
    border-color:#282E22;
    height:1.5px;
}


article > hr, hr.light {
    color:#3b4135;
    background-color:#3b4135;
    border-color:#3b4135;
    height:0.5px;
}

.page-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 16px;
    margin-left: 16px;
    margin-bottom: 6px;
    margin-top: 6px;
}
.page-main-title {
    font-family: 'Courier New', Courier, monospace;
    font-size: 20px;
    margin-left: 30px;
    margin-bottom: 20px;
    margin-top: 6px;
}

header {
    position:sticky;
    min-height: 20%;
    width: 80%;
    margin: 0 auto 0 auto;
    display: flex;
    align-items: center;
    padding: 10px;
}

#NavBar {
    display: flex;
    justify-content: space-evenly;
    background-color: black;
    border: 3px solid #615141;
    padding: 10px;
    color:white;
    width:calc(100% - 132px);
    height:100px;
    font-family: 'Tahoma', Consolas, "Courier New", monospace;
    line-height:0px;
}

#NavBar ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
    margin:auto;
}

.tseLogo {
    width:122px; height:122px; 
    background-image:url(/Assets/MissingTexture.png);
    border-radius:5%;
    border: 4px solid #372D2A;
    border-bottom-color: #160D0B;
    border-right-color: #160D0B;
    padding:2px; 
}

.nav-link{
    color: #00ff00;
    text-decoration: none;
    margin: auto 15px;
    font-size: 32px;
}


.nav-link:hover {
    opacity:0.7;
}
.nav-icon {
    height: 32px;
    margin-right: 8px;
    vertical-align: middle;
}

li::marker {
    color:#a1b80c;
}

a {
    color: #00ff00;
}

a:visited {
    color: #00cc00b1;
}

a:hover {
    color: #aeff00;
    opacity:0.7;
}

#Navbar a {
    color: #00ff00;
}

#NavBar a:visited {
    color: #00ff00;
}

#NavBar a:hover {
    color: #00ff00;
    opacity:0.7;
    text-shadow:#00ff00 0px 0px 10px;
}

input {
    background-color:#3E4637;
    color: #D8DED3;
    border: 1px solid #282E22;
    border-right: 1px solid #889180;
    border-bottom: 1px solid #889180;
    font-family: 'Courier New', Courier, monospace;
    margin-top:4px;
}

input::selection {
    color:white;
    background-color:#958831;
}


select {
    background-color:#3E4637;
    color: #D8DED3;
    border: 1px solid #282E22;
    border-right: 1px solid #889180;
    border-bottom: 1px solid #889180;
    font-family: 'Courier New', Courier, monospace;
}
select > option {
    background-color:#282E20;
}
select > option:nth-child(even) {
    background-color:#546043;
}

input[type="button"], input[type="submit"] {
    background-color:#4C5844;
    color: #D8DED3;
    border: 1px solid #889180;
    border-right: 1px solid #282E22;
    border-bottom: 1px solid #282E22;
    font-family: 'Courier New', Courier, monospace;
}

input[name=pageNum]::-webkit-outer-spin-button,
input[name=pageNum]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0; 
}

input[name=pageNum] {
    -moz-appearance:none; 
}

.image-wall {
    background-image: url(/Assets/ProduktPolski.avif);
    background-repeat: repeat-x;
    background-size: contain;
    background-position-x: center;
    width: 100%;
    height: 10.7vh;
}


#infinite-grid-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

@keyframes workshop-card-hover {
    0% {
        transform: translate(0px, 0px);
    }
    100% {
        transform: translate(0px, -10px);
    }
}

@keyframes workshop-card-unhover {
    0% {
        transform: translate(0px, -10px);
    }
    100% {
        transform: translate(0px, 0px);
    }
}

.workshop-item {
    display: inline-block;
    font-size:20px;
    width: 200px;
    margin: 10px;
    background-color: #2A2E33;
    border: 2px solid #454D5D;
    padding: 8px;
    color:white;
}



@keyframes scroll {
  0% { transform: translate(10%, 0); }
  100% { transform: translate(-40%, 0); } /* Moves text left */
}

.workshop-button:hover .scroll-text {
    display: inline-block;
    white-space: nowrap;
    animation: scroll 1s linear alternate infinite;
}

.workshop-title {
    background-color: #434953;
    white-space: nowrap;
    overflow:hidden;
    padding:8px;
    text-align:center;
}

.workshop-preview {
    width: 100%;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
    aspect-ratio: 1/1;
    object-fit: contain;
}

.workshop-button {
    color: white;
    text-decoration: none;
}
.workshop-button:hover {
    color: white;
    text-decoration: none;
    opacity:1;
}

.workshop-button:hover > .workshop-item {
    animation: workshop-card-hover 0.25s ease-in forwards;
    box-shadow: #00000050 0px 10px 8px;
    cursor: pointer;
}

.workshop-button:not(:hover) > .workshop-item {
    animation: workshop-card-unhover 0.25s ease-out forwards;
}

.workshop-button:visited {
    color: white;
    text-decoration: none;
}

#admin-menu { width:20%; margin:auto; text-align:center; }

@media only screen and (max-width: 850px) {
    #admin-menu { width:96% }

    main {
        width: 90%;
        padding:2px;
        margin: 0 auto 0 auto;
        border-width: 2px;
        
    }

    article {
        border-width: 2px;
    }   

    header {
        min-height: 10%;
        width: 90%;
        margin: 0 auto 0 auto;
        display: flex;
        align-items: center;
        padding: 5px;

    }

    #NavBar {
        display: flex;
        justify-content: space-evenly;
        background-color: black;
        border-width: 2px;
        padding: 10px;
        color:white;
        width:calc(100% - 66px);
        height:50px;
    }

    
    .tseLogo {
        width:61px; height:61px; 
        border-radius:10%;
        border-width: 3px;
        padding:4px; 
    }

    .nav-link{
        margin: auto 2px;
        font-size: 0px;
    }

    .nav-text {
        display:none;
    }

    .nav-icon {
        width: auto;
    }
    
    .workshop-item {
       width:40%;
    font-size:10px;
    }

    
}

.web-button {
    opacity:1;
    animation: workshop-card-unhover 0.25s ease-out forwards;
}
.web-button:hover {
    box-shadow: #0008 0px 10px 6px;
    animation: workshop-card-hover 0.25s ease-in forwards;
}

a:has(> .web-button) {
    opacity:1;
}
