*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: "kidnapped";
    src: url('mpf_kidnapped.zip');
}

@font-face {
    font-family: "hw";
    src: url('i_am_seventeen/I am Seventeen.ttf');
}

@font-face {
    font-family: "han";
    src: url('Hangyaboly.ttf');
}

@font-face {
  font-family: "short";
  src: url(Short_Stack/ShortStack-Regular.ttf);
}

html, body {
    background-image: url('New Checkered felt.jpg');
    background-size: 200px;
    background-attachment: fixed;
    background-repeat: repeat;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.header {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    height: 100vh;
    position: absolute;
    top: 0;
    left: 0;
    overflow: hidden;
    pointer-events: none; 
}

#project {
    position: absolute;
    width: 38vw;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    top: 2%; 
    left: 22%;
}

#capsule {
    position: absolute;
    width: 38vw;
    max-width: 500px;
    height: auto;
    object-fit: contain;
    top: 2%; 
    left: 56%;
}

#washi {
    background-image: url('burnt orange paper.jpg');
    background-repeat: repeat-y; 
    background-size: contain; 
    position: absolute;
    width: 12vw;
    height: 100%;
    top: 0;
    left: 0;
}

#lace {
    background-image: url('bblace.png');
    background-repeat: repeat-y;
    background-size: contain;
    position: absolute;
    width: 22vw;
    height: 100%;
    top: 0; 
    left: -1vw; 
}


.polaroid-grid {
    position: absolute;
    top: 20%;
    left: 20vw;
    width: 42vw;
    max-width: 620px;
    min-width: 480px;
    height: 70vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 20px 40px;
    justify-items: center;
    align-items: center;
}

.polaroid-btn {
    position: relative;
    width: 100%;
    max-width: 210px;
    aspect-ratio: 1 / 1.23; 
    border: none;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    cursor: pointer;
    transition: transform 0.3s ease-in-out;
}

.btn-1 {
    background-image: url('pol 1.png');
    transform: rotate(-2deg);
}

.btn-2 {
    background-image: url('pol 2.png');
    transform: rotate(2deg);
}

.btn-3 {
    background-image: url('pol 3.png');
    transform: rotate(2deg);
}

.btn-4 {
    background-image: url('pol 4.png');
    transform: rotate(-2deg);
}

.polaroid-btn:hover {
    mask-image: url("star.png");
    -webkit-mask-image: url("star.png");
    mask-size: 100%;
    -webkit-mask-size: 100%;
    mask-repeat: no-repeat;
    -webkit-mask-repeat: no-repeat;
    mask-position: center;
    -webkit-mask-position: center;
    transform: rotate(-15deg) scale(1.05);
}

/* Modal Dialogs */
dialog::backdrop {
    background: rgba(0, 0, 0, 0.25);
    backdrop-filter: blur(0.1rem);
}

dialog {
    position: fixed;
    width: auto;
    height: auto;
    padding: 0;
    border: none;
    border-radius: 8px;
    background: transparent;
    z-index: 100;
}

#modal1 img, #modal2 img, #modal3 img, #modal4 iframe {
    width: 100%;
    height: 100%;
    object-fit: contain;
}


.papernote {
    background-image: url('paper with no line.png');
    background-size: 100% 100%;
    background-repeat: no-repeat;
    position: absolute;
    top: 20%;
    right: 3vw; 
    width: 310px; 
    height: 520px; 
    filter: drop-shadow(0px 8px 15px rgba(0,0,0,0.3));
}

.insidenote {
    position: relative;
    width: 82%;
    height: 88%;
    margin: 15% auto 0 auto;
}

.insidenote > p {
    font-family: "Trebuchet MS", "Lucida Sans Unicode", Arial, sans-serif;
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: center;
    color: #222;
}

.skills-header {
    display: block;
    width: 75%;
    margin: 15px auto 10px auto;
}

.skills-matrix {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 12px 10px;
    align-items: center;
    justify-items: center;
    width: 90%;
    margin: 0 auto;
}

.skills-matrix img {
    max-width: 38px;
    height: auto;
    object-fit: contain;
}

.skills-matrix .qgis-logo,
.skills-matrix .r-logo {
    max-width: 65px;
}

#brownstar {
    position: absolute;
    width: 70px;
    left: -35px;
    top: -53px;
    transform: rotate(-15deg);
}

#orangestar {
    position: absolute;
    width: 50px;
    right: -25px;
    bottom: -20px;
    transform: rotate(25deg);
}

@media (max-width: 768px) {
    #washi { width: 20vw; }
    #lace { width: 30vw; }
}



