@font-face {
    font-family: "Coolvetica";
    src: url("/materials/fonts/coolvetica/Coolvetica\ Rg.otf");
    font-weight: normal;
    font-style: normal;
}

:root {
    --dark-teal: #104f55ff;
    --pine-blue: #32746dff;
    --muted-teal: #9ec5abff;
    --evergreen: #01200fff;
    --onyx: #011502ff;
    --white: #ffffff;
    --black: #000000;
    --containerItem: #f0f0f0;
    --headerImage: #ffffff;
    --buttonHover: rgb(194, 194, 194);
}

.dark-theme {
    --dark-teal: #104f55ff;
    --pine-blue: #32746dff;
    --muted-teal: #9ec5abff;
    --evergreen: #01200fff;
    --onyx: #011502ff;
    --black: rgb(255, 255, 255);
    --white: black;
}

html {
    scroll-behavior: smooth;
}

.showcase div{
    background-color: transparent;
    width: 100px;
    height: 100px;
}

* {
    box-sizing: border-box;
    font-family: "Coolvetica", Arial, sans-serif;
}


body {
    background-color: var(--white);
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
}

.header-text {
    font-size: clamp(24px,6vw,52px);
    font-weight: bold;
    text-align: center;
    color: var(--black);
    letter-spacing: 0.5px;
}

.info-text {
    border-radius: 5px;
    padding: 5px;
    font-size: clamp(16px,4vw,28px);
    text-align: center;
    color: var(--black);
    
}
.info-text *{
    font-size: clamp(16px,4vw,28px);
    text-align: center;
    color: var(--black);
}

button,.btn {
    cursor: pointer;
    background-color: transparent;
    border: none;
    border-radius: 5px;
    transition: color 0.1s ease-in-out;
}

.btn:hover,.btn-hover {
    background-color: var(--pine-blue);
    color: var(--buttonHover);
}

#header {
    display: flex;
    flex-direction: column;
    justify-content: center;
    scroll-margin-top: 100vh;
    padding: 0 20px;
    text-align: center;
}

.projects-container {
    width: clamp(200px,70%,700px);
    position: relative;
    margin: auto;
}

.projects {
    display: none;
}

.prev, .next {
    cursor: pointer;
    position: absolute;
    width: auto;
    padding: 45% 8% 45% 8%;
    top: 50%;
    transform: translateY(-50%);
    color: var(--black);
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    user-select: none;

}
.prev {
    left: -20%;
    justify-self: start;
    border-radius: 5px 0 0 5px;
}

.next {
    right: -20%;
    border-radius: 0 5px 5px 0;
}

.prev:hover, .next:hover {
    background-color: rgba(0,0,0,0.5);
}
.prev:active, .next:active {
    animation: click 0.5s ease-in-out;
}
@keyframes click {
    0% {
        background-color: rgba(0,0,0,0.7);
    }
}

.projects-text *{
    color: var(--white);
    font-size: 20px;
    padding: 8px 12px;
    position: absolute;
    bottom: 8px;
    width: 100%;
    text-align: center;
}

.dot {
    cursor: pointer;
    height: 15px;
    width: 15px;
    margin: 0 2px;
    background-color: #dfdfdf;
    border-radius: 50%;
    display: inline-block;
    transition: background-color 0.6s ease;
}

.active, .dot:hover {
    background-color: #626262;
}

.fade {
    animation-name: fade;
    animation-duration: 0.4s;
    animation-timing-function: ease-in;
}

@keyframes fade {
    from {opacity: .8}
    to {opacity: 1}
}

#mode img {
    width: clamp(24px, 4vw, 48px);
    flex: 0 1 auto;
    transition: transform 1s ease-in-out;
}

#mode.spin img {
    animation: spinOnce 1s ease-in-out;
}

@keyframes spinOnce {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}


#game {
    text-align: center;
    margin: auto;
    margin-bottom: 40px;
    justify-self: center;
    width: 70vw;
}

#game-screen {
    display: flex;
    flex-direction: column;
    justify-content: space-between; 
    align-items: center;
}

#center {
    display: flex;
    position: relative;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}
.score {
    position: absolute;
    top: 5px;
    left: 5px;
    color: var(--white);
}
.bestscore {
    position: absolute;
    top: 5px;
    right: 5px;
    position: absolute;
    color: var(--white);
}
#scorebar,#bestscore {
    color: var(--white);
}

#game-canvas {
    width: 80vw;
    height: clamp(300px,70vh,600px);
    background-color: var(--dark-teal);
    border-radius: 5px;
    pointer-events: none;
    image-rendering: pixelated;
    image-rendering: crisp-edges;
    image-rendering: optimizeSpeed;   
}

