@font-face {
    font-family: SegoeWP;
    src: url("SegoeWP.ttf");
}

body {
    padding: 0;
    margin: 0 auto;
    background-color: #000000;
    overflow: hidden;
    max-width: 600px;
}

h1, h2, h3, h4, h5, h6, p, button, span {
    margin: 0;
    padding: 0;
    font-family: SegoeWP;
    color: white;
}

.section {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
}

.section.projects {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.section.abtme {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.section.quotes {
    width: 100%;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

#menu {
    opacity: 1;
    visibility: visible;
}

#projects {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
}

#abtme {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
}

#abtmeFriends {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

#skills {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

#quotes {
    opacity: 0;
    visibility: hidden;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 600px;
    height: 100vh;
    box-sizing: border-box;
    display: flex;
    align-items: center;
    flex-direction: column;
    gap: 15px;
    padding: 60px 20px 80px 20px;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

header {
    width: 100%;
    max-width: 600px;
    height: 50px;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.notification {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    background-color: rgba(255, 255, 255, 0.37);
    font-size: 12px;
}

.notifybar {
    display: flex;
    align-items: center;
    color: white;
    gap: 12px;
}

.notifybar img {
    height: 16px;
    width: auto;
}

#time {
    font-size: 14px;
}

footer {
    width: 100%;
    max-width: 600px;
    height: 70px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-sizing: border-box;
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background-color: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
}

footer img {
    height: 28px;
    width: auto;
    cursor: pointer;
    transition: transform 0.2s ease;
}

footer img:hover {
    transform: scale(1.1);
}

footer img:active {
    transform: scale(0.9);
}

.parent {
    display: grid;
    grid-template-columns: repeat(6, 50px);
    grid-template-rows: repeat(6, 50px);
    gap: 6px;
    width: 330px;
    height: 330px;
}

.div1 { grid-area: 1 / 1 / 3 / 3; }
.div2 { grid-area: 1 / 3 / 3 / 7; background-size: cover; }
.div3 { grid-area: 3 / 1 / 5 / 3; }
.div4 { grid-area: 3 / 3 / 4 / 4; }
.div5 { grid-area: 3 / 4 / 4 / 5; }
.div6 { grid-area: 4 / 3 / 5 / 4; }
.div7 { grid-area: 4 / 4 / 5 / 5; }
.div8 { grid-area: 3 / 5 / 5 / 7; }
.div9 { grid-area: 5 / 1 / 7 / 5; }
.div10 { grid-area: 5 / 5 / 7 / 7; }

.tile {
    position: relative;
    display: flex;
    box-sizing: border-box;
    padding: 8px;
    cursor: pointer;
    user-select: none;
    transition: transform 0.1s ease;
    overflow: hidden;
}

.tile:active {
    transform: scale(0.97);
}

.tile-blue { background-color: #0078d7; }
.tile-dark { background-color: #111111; border: 1px solid #333333; }

.tile-icon {
    width: 24px;
    height: 24px;
    margin: auto;
    display: block;
}

.sm-icon {
    width: 18px;
    height: 18px;
    margin: auto;
    display: block;
}

.tile-label {
    position: absolute;
    bottom: 4px;
    left: 6px;
    color: #ffffff;
    font-size: 9px;
}

.tile-content-center {
    margin: auto;
    text-align: center;
    color: #ffffff;
    width: 100%;
}

.tile-content-center h1 {
    font-size: 14px;
    font-weight: 300;
    margin-bottom: 2px;
    white-space: nowrap;
}

.tile-content-center p {
    font-size: 9px;
    opacity: 0.8;
}

.terminal-text {
    font-family: 'Consolas', monospace;
    color: #ffffff;
    font-size: 6px;
    text-align: left;
    width: 100%;
    line-height: 1.1;
}

.green {
    color: #00ff00;
}

.div4 {
    background-color: #E62116;
}

.div5 {
    background-color: #2DA1DB;
}

.div6 {
    background-color: #252525;
}

.div7 {
    background-color: #5865F2;
}

.div2 {
    transition: opacity 0.3s ease, transform 0.3s ease;
    will-change: opacity, transform;
}

.div2.photo-hide {
    opacity: 0;
    transform: scale(0.92);
}

.div2.photo-show {
    animation: photoShow 0.35s ease forwards;
}

@keyframes photoShow {
    0% { opacity: 0; transform: scale(0.92); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes openApp {
    0% {
        transform: perspective(1000px) rotateY(0deg);
        opacity: 1;
        z-index: 99;
    }
    50% {
        transform: perspective(1000px) rotateY(-360deg);
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        opacity: 1;
    }
    60% {
        opacity: 1;
        transform: perspective(1000px) rotateY(-360deg);
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
        opacity: 1;
    }
    100% {
        opacity: 0;
        transform: perspective(1000px) rotateY(-360deg);
        z-index: 99;
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100vh;
    }
}

.tilezoom {
    animation: openApp 1.5s;
}

.project {
    width: 100%;
    max-width: 400px;
    height: 80px;
    background-color: #161616;
    display: flex;
    align-items: center;
    padding: 0 15px;
    box-sizing: border-box;
    flex-shrink: 0;
    gap: 15px;
}

.project img:first-child {
    height: 40px;
    width: 40px;
    object-fit: contain;
    flex-shrink: 0;
}

.project .info {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
}

.project .info.quote {
    display: flex;
    flex-direction: row;
    align-items: center;
    flex: 1;
    gap: 15px;
    padding: 5px 0;
}

.project .info.quote img {
    height: 32px;
    width: 32px;
    flex-shrink: 0;
}

.project .info.quote .quote-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    gap: 2px;
}

.project .info.quote .quote-content h3 {
    font-size: 18px;
    margin-bottom: 2px;
    text-align: left;
    font-weight: 500;
}

.project .info.quote .quote-content h4 {
    font-size: 14px;
    opacity: 0.6;
    text-align: left;
    font-weight: normal;
}

.project .info.quote .quote-content p {
    font-size: 13px;
    opacity: 0.7;
    text-align: left;
    margin-top: 4px;
    font-style: italic;
}

.openbtn {
    height: 32px;
    width: 32px;
    margin-left: auto;
    flex-shrink: 0;
    cursor: pointer;
    object-fit: contain;
}

.topheader {
    display: flex;
    align-items: center;
    height: 60px;
    width: 100%;
    max-width: 400px;
    gap: 15px;
    align-self: center;
}

.topheader img {
    height: 32px;
    width: 32px;
    cursor: pointer;
    object-fit: contain;
}

.topheader h1 {
    margin: 0;
    font-size: 24px;
}

#abtme p {
    max-width: 400px;
    align-self: center;
    font-size: 14px;
    line-height: 1.6;
}

#skills p {
    max-width: 400px;
    align-self: center;
    font-size: 14px;
    line-height: 1.6;
    white-space: pre-line;
}