@font-face {
    font-family: 'Sterion Italic';
    src: url('fonts/SterionItalic-R99PA.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Sterion';
    src: url('fonts/Sterion-BLLld.ttf');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Stone Breaker';
    src: url('fonts/Stone\ Breaker.otf');
    font-weight: normal;
    font-style: normal;
}

html, body, * {
    cursor: url('photos/cursor.png'), auto;
}

html {
    scrollbar-width: none;
    overflow: -moz-scrollbars-none;
}

html::-webkit-scrollbar {
    display: none;
    width: 0;
}

body::-webkit-scrollbar {
    display: none;
    width: 0;
}

body {
    scrollbar-width: none;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

header {
    width: 100%;
    height: 100vh;
}

body {
    overflow-y: scroll;
    background-color: rgb(178, 209, 238);
    /* overflow: hidden; */
}
#scrollarrow {
    position: fixed;
    bottom: 30px;
    right: 30px;
    font-size: 2rem;
    color: rgb(255, 81, 0);
    z-index: 9999;
    display: none;
    animation: bounce 1s infinite;
    cursor: pointer;
}

#scrollarrow.active {
    display: block;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(10px); }
}

#wasdmsg {
    position: fixed;
    bottom: 30px;
    left: 30px;
    z-index: 9999;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

#wasdmsg.active {
    display: flex;
}

.wasdrow {
    display: flex;
    gap: 5px;
}

.wasdkey {
    width: 35px;
    height: 35px;
    background: rgba(1, 13, 24, 0.7);
    color: white;
    border: 2px solid rgb(33, 79, 122);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Stone Breaker';
    font-size: 0.8rem;
}

.introsvg {
    position: relative;
    width: 100%;
    height: 100%;
}

#cloudsvg {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: fill;
    display: block;
    filter: brightness(0.85) contrast(1.5) saturate(0.5);
}

#planesvg {
    position: absolute;
    width: 150px;
    height: auto;
    top: 40%;
    left: -200px;
    z-index: 3;
}

#ch1 {
    width: 60px;
    height: auto;
    opacity: 0;
    position: absolute;
    top: 50%;
    left: 65%;
    z-index: 9999;
}

.intro {
    position: absolute;
    top: 20%;
    left: 5%;
    text-align: left;
    transform: translateY(-50%);
    z-index: 2;
    font-family: 'Stone Breaker';
    color:rgb(33, 79, 122);
}

.intro h1:first-child {
    text-decoration: underline;
}

.intro h1:last-child {
    font-family: 'Stone Breaker';
    color: rgb(33, 79, 122); 
    font-size: 1.5rem;
}

.projects {
    font-family: 'Stone Breaker';
    width: 100%;
    height: 100vh;
    color:rgb(83, 66, 18);
    background: linear-gradient(180deg, rgb(178, 209, 238), #dfbd28, rgb(228, 182, 31), rgb(201, 136, 15));
    text-align: center;
    position: relative;
    overflow: hidden;
}

#mountainsvg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(1.23);
    object-fit: fill;
    position: relative;
    cursor: url('photos/cursor.png'), auto;
}

.campsvg {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: 35%;
    left: 30%;
    transform: rotate(-5deg);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: url('photos/cursor.png'), auto;
}

.campsvg:hover {
    transform: rotate(5deg) scale(1.3);filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 200, 50, 0.8));
}

#campinfo {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: none;
    width: 650px;
    height: auto;
    background: rgb(233, 180, 240);
    border-radius: 15px;
    border: 5px solid rgb(54, 5, 42);
    padding: 50px;
}

#campinfo.active {
    display: block;
}

#campbackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 100;
    display: none;
}

#campbackdrop.active {
    display: block;
}

#closecamp {
    position: absolute;
    top: 0;
    right: 30px;
    width: 50px;
    height: 70px;
    background-color: rgb(235, 146, 243);
    border: none;
    color: rgb(36, 2, 36);
    font-size: 1.2rem;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    z-index: 1000;
    padding: 0;
    cursor: pointer;
}

#campinfocontent {
    font-family: 'Stone Breaker';
    color: rgb(235, 134, 205);
    display: flex;
    flex-direction: column;
    gap: 20px;
    font-size: 2rem;
}

#campinfocontent h2 {
    font-size: 1.6rem;
    text-align: center;
    padding-bottom: 10px;
}

#campinfocontent h3 {
    font-size: 1.1rem;
    margin-bottom: 8px;
}

#campinfocontent p {
    font-size: 1rem;
    line-height: 2;
}

#camppara {
    font-size: 0.88rem;
}

#socials {
    display: flex;
    flex-direction: row;
    justify-content: center;
    gap: 30px;
}

#socials a {
    color: rgb(235, 134, 205);
    font-family: 'Stone Breaker';
    font-size: 0.85rem;
    text-decoration:dashed;
    border-bottom: 2px dashed rgb(235, 134, 205);
    padding-bottom: 3px;
}

#socials a:hover {
    color: rgb(54, 5, 42);
}

#campinfo {
    background: linear-gradient(135deg, 
        rgb(70, 5, 53), 
        rgb(77, 9, 65), 
        rgb(100, 7, 43),
        rgb(187, 21, 85)
    );
}

#alishttime {
    font-size: 1.8rem;
    text-align: center;
}

.flag {
    position: absolute;
    width: 50px;
    height: auto;
    z-index: 3;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
}

.flag:hover {
    transform: scale(1.3);
    filter: brightness(1.5) drop-shadow(0 0 8px rgba(255, 50, 245, 0.8));
}

#flag1 {
    bottom: 55%;
    left: 20%;
    cursor: url('photos/cursor.png'), auto;
}

#flag2 {
    bottom: 62%;
    left: 48%;
    cursor: url('photos/cursor.png'), auto;
}

#flag3 {
    bottom: 50%;
    left: 75%;
    cursor: url('photos/cursor.png'), auto;
}

.forest {
    font-family: 'Stone Breaker';
    width: 100%;
    height: 100vh;
    color:rgb(83, 66, 18);
    background: linear-gradient(180deg,  rgb(201, 136, 15), rgb(8, 77, 25), rgb(38, 80, 9));
    text-align: center;
    overflow: hidden;
    position:relative;
}

#forestsvg {
    width: 100%;
    height: 100%;
    display: block;
    transform: scaleX(1.65);
    object-fit: fill;
    position: relative;
}

.bonfiresvg {
    position: absolute;
    width: 80px;
    height: auto;
    bottom: 35%;
    left: 30%;
    transform: translateX(-50%);
    z-index: 2;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: url('photos/cursor.png'), auto;
}

.bonfiresvg:hover {
    transform: translateX(-50%) scale(1.3);
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(255, 150, 50, 0.8));
}

#campwindow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: none;
    width: 850px;
    height: 600px;
    background: rgb(240, 220, 180);
    border-radius: 15px;
    border: 5px solid rgb(109, 54, 29);
    padding: 30px;
    overflow: hidden;
    isolation: isolate;
}
#campwindow.active {
    display: block;
    /* flex-direction: column;
    align-items: center;
    justify-content: space-between; */
}

#toolbar {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px;
    background: #f8d561;
    border: 2px solid #723808;
    border-radius: 6px;
    width: fit-content;
    justify-content: center;
    margin: 20px auto;
}

.tool,
#brushsize {
    height: 32px;
    padding: 0 10px;
    border: 2px solid #723808;
    background: #f3db8b;
    cursor: pointer;
    transition: 0.1s;
}

.tool {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 32px;
}

.tool img {
    width: 18px;
    height: 18px;
}

.tool:hover,
#brushsize:hover {
    background: #ffbd67;
}

.tool.active {
    background: #000;
}

.tool.active img {
    filter: invert(1);
}

#draw1,
#erase {
    background-color: #f3db8b;
}

#drawingcanvas {
    background: rgb(255, 247, 139);
    border: 3px solid rgb(136, 84, 17);
    border-radius: 12px;
    cursor: crosshair;
    width: 500px;
}

input[type="color"] {
    width: 24px;
    height: 24px;
    padding: 0;
    border: none;
    background: none;
    cursor: pointer;
}

#closedraw {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: url('photos/cursor.png'), pointer;
    color: rgb(109, 54, 29);
    z-index: 102;
}

.draw {
    background-color: rgb(247, 181, 95);
    color: rgb(109, 54, 29);
    border: 2px solid rgb(109, 54, 29);
    border-radius: 5px;
    padding: 8px 15px;
    cursor: url('photos/cursor.png'), pointer;
    font-family: 'Stone Breaker';
}

#game {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: none;
    width: 1000px;
    height: 600px;
    border-radius: 15px;
    border: 5px solid rgb(109, 54, 29);
    overflow: hidden;
}
#gamebackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

#gamebackdrop.active {
    display: block;
}

#closegame {
    position: absolute;
    top: 0;
    right: 30px;
    width: 50px;
    height: 70px;
    background-color: rgb(180, 139, 49);
    border: none;
    color: rgb(36, 32, 2);
    font-size: 1.2rem;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    z-index: 1000;
    padding: 0;
}

#backtofire {
    font-family: 'Stone Breaker';
    background: none;
    border: 2px solid rgb(109, 54, 29);
    color: rgb(109, 54, 29);
    padding: 8px 15px;
    cursor: url('photos/cursor.png'), pointer;
    border-radius: 10px;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 10;
}

.book {
    position: absolute;
    bottom: 15%;
    left: 45%;
    transform: rotate(-8deg);
    z-index: 3;
    width: 80px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: url('photos/cursor.png'), auto;
}

.book:hover {
    transform: translateX(-8%) scale(1.3);
    filter: brightness(1.5) drop-shadow(0 0 10px rgba(78, 46, 16, 0.8));
}

#openbook {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(3deg);
    width: 800px;
    height: auto;
    z-index: 100;
    display: none;
}

#openbook.active {
    display: block;
}

#bookcontent {
    position: fixed;
    top: 48%; 
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 101;
    display: none;
    width: 780px;
    height: 460px; 
}

#bookcontent.active {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

#bookcontent {
    position: fixed;
    top: 48%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-5deg);
    z-index: 101;
    display: none;
    width: 780px;
    height: 460px; 
}

#bookcontent.active {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 0 40px;
}

#closebook {
    position: fixed;
    top: 12%;
    left: 67%;
    z-index: 101;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: url('photos/cursor.png'), pointer;
    display: none;
    color: rgb(83, 66, 18);
}

#closebook.active {
    display: block;
}

#bush {
    position: absolute;
    bottom: 5%;
    left: 5%;
    transform: rotate(-8deg);
    z-index: 3;
    width: 400px;
    height: auto;
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: url('photos/cursor.png'), auto;
}

#bush:hover {
    transform: rotate(2deg) scale(1.3);filter: brightness(1.5) drop-shadow(0 0 10px rgba(91, 255, 50, 0.8));
}

#backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(3px);
    z-index: 99;
    display: none;
}

#backdrop.active {
    display: block;
}

#startbutton {
    position: absolute;
    bottom: 10%;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    padding: 15px 30px;
    font-family: 'Stone Breaker';
    font-size: 1.2rem;
    background: transparent;
    border: 2px solid rgb(33, 79, 122);
    color: rgb(33, 79, 122);
    cursor: pointer;
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: url('photos/cursor.png'), auto;
}

#startbutton:hover {
    transform: translateX(-50%) scale(1.1);
    border-color: rgb(255, 255, 255);
    color: rgb(255, 255, 255);
    background-color: rgb(18, 47, 73);
}

#projectbackdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    z-index: 100;
    display: none;
}

#projectbackdrop.active {
    display: block;
}

#projectwindow {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 101;
    display: none;
    width: 850px;
    height: 600px;
    border-radius: 15px;
    border: 5px solid rgb(109, 54, 29);
    overflow: hidden;
}

#projectwindow.active {
    display: block;
}

#projectinfo {
    padding: 40px;
    color: rgb(51, 33, 5);
    background: rgb(226, 200, 128);
    height: 100%;
    width: 100%;
}

#viewproject {
    margin-top: 20px;
    padding: 10px 20px;
    background: rgb(109, 54, 29);
    color: white;
    border: 2px darkkhaki;
    border-radius: 8px;
    cursor: pointer;
}

#backtoinfo {
    display: none;
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 1000;
    padding: 8px 15px;
    background: rgb(221, 185, 86);
    color: rgb(68, 43, 10);
    border: 2px dotted darkred;
    border-radius: 8px;
    cursor: pointer;
}

#projectframe {
    width: 100%;
    height: 100%;
    border: none;
}

#closeproject {
    position: absolute;
    top: 0;
    right: 30px;
    width: 50px;
    height: 70px;
    background-color: rgb(180, 139, 49);
    border: none;
    color: rgb(36, 32, 2);
    font-size: 1.2rem;
    clip-path: polygon(0 0, 100% 0, 100% 80%, 50% 100%, 0 80%);
    z-index: 1000;
    padding: 0;
}

#mobilewarning {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgb(93, 157, 216);
    color: rgb(10, 37, 88);
    z-index: 9999;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 30px;
    font-family: 'Stone Breaker';
}

#proceedanyway {
    margin-top: 20px;
    padding: 10px 20px;
    background: transparent;
    border: 2px solid rgb(10, 37, 88);
    color: rgb(10, 37, 88);
    border-radius: 8px;
    cursor: pointer;
    font-family: 'Stone Breaker';
}

@keyframes twinkle {
    0% { opacity: 0.2; }
    100% { opacity: 1; }
}

#startbutton.night:hover {
    background-color: rgb(94, 94, 95);
}

@media (max-width: 600px) {
    #wasdmsg {
        display: none !important;
    }
    
    #mobilewarning {
        display: flex;
    }
}

@media (max-width: 768px) {
    #startbutton {
        display: none;
    }

    header {
        height: 50vh;
    }

    #cloudsvg {
        width: 100%;
        height: 100%;
    }

    #planesvg {
        width: 90px;
    }

    #ch1 {
        width: 40px;
    }

    .intro {
        top: 15%;
        left: 5%;
    }

    .intro h1 {
        font-size: 1.2rem;
    }

    .intro h1:last-child {
        font-size: 0.9rem;
    }

    #startbutton {
        padding: 10px 20px;
        font-size: 1rem;
    }

    .projects {
        height: auto;
        min-height: auto;
        padding: 20px;
    }

    #mountainsvg {
        width: 100%;
        height: auto;
        transform: scaleX(1.3);
        transform-origin: center center;
    }

    #flag1 {
        bottom: 65%;
        left: 15%;
    }

    #flag2 {
        bottom: 72%;
        left: 45%;
    }

    #flag3 {
        bottom: 60%;
        left: 78%;
    }

    .campsvg {
        bottom: 45%;
        left: 35%;
    }

    .flag {
        width: 35px;
    }

    .forest {
        height: auto;
        min-height: 60vh;
    }

    .bonfiresvg {
        width: 60px;
    }

    #bush {
        left: -10%;
        width: 250px;
    }

    .book {
        bottom: 20%;
        left: 55%;
        z-index: 4;
    }

    #campwindow {
        width: 95%;
        height: 90vh;
        overflow-y: scroll;
        padding: 15px;
    }
    
    #campinfo {
        width: 85%;
        max-width: 400px;
        height: auto;
        max-height: 80vh;
        overflow-y: auto;
        padding: 20px;
        margin: 0 auto;
    }

    #closecamp {
        right: 5px;
        width: 40px;
        height: 55px;
        font-size: 1rem;
        z-index: 1000;
    }

    #campinfocontent {
        font-size: 1.2rem;
        gap: 12px;
    }

    #campinfocontent h2 {
        font-size: 1.3rem;
    }

    #campinfocontent p {
        font-size: 0.85rem;
        line-height: 1.6;
    }

    #alishttime {
        font-size: 1.3rem;
    }

    #socials {
        flex-direction: column;
        gap: 10px;
        align-items: center;
    }

    #drawingcanvas {
        width: 100%;
        height: auto;
    }

    #toolbar {
        flex-wrap: wrap;
        justify-content: center;
    }

    #openbook {
        width: 90%;
    }

    #bookcontent {
        width: 85%;
        height: auto;
        flex-direction: column;
        gap: 20px;
        padding: 20px;
    }

    .leftpage,
    .rightpage {
        width: 100%;
    }

    .leftpage .myphotos {
        height: 70px;
        width: 70px;
    }

    .rightpage h2 {
        font-size: 1rem;
    }

    .rightpage p {
        font-size: 0.65rem;
    }

    #projectwindow {
        width: 95%;
        height: 80vh;
    }

    #projectinfo {
        padding: 20px;
    }

    #closeproject {
        width: 40px;
        height: 55px;
        right: 15px;
    }

    #game {
        width: 100%;
        height: 100%;
    }
    #closebook {
        top: 25%;
        left: 80%;
        width: 40px;
        height: 55px;
    }
}

@media (max-width: 480px) {
    .intro h1 {
        font-size: 1rem;
    }

    #campwindow {
        width: 95%;
        padding: 10px;
    }

    .reply {
        font-size: 0.75rem;
        padding: 6px 10px;
    }

    #bookcontent {
        width: 90%;
    }

    .leftpage .myphotos {
        height: 55px;
        width: 55px;
    }
}

