@import url("./iosevka.css");
@import url("./auth.css");

::-moz-selection {
    color: white;
    background: #0057FF;
}

::selection {
    color: white;
    background: #0057FF;
}

* {
    box-sizing: border-box;
}

/* Everything below is in rem, relative to this root value.
   Change this one line to scale the entire page. */
html {
    font-size: 16px;
}

body {
    margin: 0;
    overflow: hidden;
    height: 100vh;
    font-size: 1rem;
    color: #000;
    font-family: "Iosevka", Tahoma, Verdana, Arial, Helvetica, sans-serif;
    cursor: url("../cursors/pointer.cur"), auto;
}

.page-bg {
    position: fixed;
    inset: 0;
    z-index: -20;
    background: url("../img/background.png") center/cover no-repeat fixed;
}

a,
button {
    cursor: url("../cursors/link.cur"), pointer;
}
input,
textarea,
.box-title,
p {
    cursor: url("../cursors/beam.cur"), text;
}

input,
textarea,
button {
    font-family: "Iosevka", Tahoma, Verdana, Arial, Helvetica, sans-serif;
}

.window {
    position: relative;
    max-width: 66.6667rem;
    margin: 1.6667rem auto 5rem;
    border: 0.1667rem solid #0831d9;
    border-radius: 0.5rem 0.5rem 0 0;
    box-shadow: 0.3333rem 0.3333rem 1.1667rem rgba(0, 0, 0, 0.6);
}

.window-content {
    display: flex;
    flex-direction: column;
    min-height: 65vh;
    max-height: 90vh;
    overflow-x: hidden;
    overflow-y: scroll;
}

.titlebar {
    background: linear-gradient(180deg, #2a6fd6, #1247b3 60%, #0b3a94);
    color: #fff;
    font-weight: bold;
    padding: 0.4167rem 0.6667rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.close-btn {
    background: #d94f4f;
    color: #fff;
    border: 0.0833rem solid #900;
    border-radius: 0.1667rem;
    font-weight: bold;
    width: 1.6667rem;
    cursor: pointer;
}

.sh-header {
    background: #1d4ed8;
    color: #fff;
    padding: 0.8333rem 1.1667rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.6667rem;
}
.sh-logo {
    font-weight: bold;
    font-size: 1.3333rem;
}
.sh-logo small {
    display: block;
    font-weight: normal;
    font-size: 0.8333rem;
}
.sh-search {
    display: flex;
    align-items: center;
    gap: 0.3333rem;
    flex-wrap: wrap;
}
.sh-search input {
    padding: 0.1667rem 0.3333rem;
    border: none;
}
.sh-search-container {
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 0.3333rem;
}
.sh-search-container button {
    padding: 0.25rem 0.6667rem;
    box-sizing: border-box;
    background: #fff;
    color: #000;
    border: none;
    width: fit-content;
    font-weight: 600;
}
.sh-search-container button:hover {
    opacity: 0.9;
}
.sh-account {
    font-size: 0.9167rem;
    white-space: nowrap;
}
.sh-account a,
.sh-nav a {
    color: #cdddff;
}

.sh-nav {
    background: #163f9e;
    color: #cdddff;
    padding: 0.4167rem 1.1667rem;
    font-size: 0.9167rem;
}

.sh-body {
    flex: 1;
    display: flex;
    gap: 0.8333rem;
    padding: 0.8333rem;
    background: #eef1f8;
}
.col-left {
    width: 21.6667rem;
    flex-shrink: 0;
}
.col-right {
    flex: 1;
    min-width: 0;
}

/* Boxes */
.box {
    background: #fff;
    border: 0.0833rem solid #7f9db9;
    margin-bottom: 0.8333rem;
}
.box-title {
    background: #1d4ed8;
    color: #fff;
    font-weight: bold;
    padding: 0.3333rem 0.6667rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.viewall {
    font-weight: normal;
    font-size: 0.8333rem;
    color: #fff;
}
.box-body {
    padding: 0.6667rem;
}
.friends-label {
    margin: 0 !important;
}

.profile-box {
    position: relative;
}
.profile-gif {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 50%;
    height: auto;
    object-fit: cover;
}

.profile-header {
    background: #1d4ed8;
    display: flex;
    align-items: center;
    padding: 0 0.6667rem;
}
.profile-top {
    display: flex;
    gap: 0.8333rem;
}
.profilepic {
    width: 8.3333rem;
    height: 8.3333rem;
    object-fit: cover;
    flex-shrink: 0;
}
.profilepic-mobile {
    width: 8.3333rem;
    height: 8.3333rem;
    object-fit: cover;
    flex-shrink: 0;
    display: none;
}
.profile-info p {
    margin: 0.1667rem 0;
}
.profile-link {
    margin: 0 0.3333rem 0 0;
}
.url-box {
    background-image: url("../miami-vice-speedboat.gif");
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    text-shadow: #000 2px 2px 0px;
}

.return-box {
    background: #e6e2cf;
}

.font-download {
    padding: 12px 0;
    text-align: center;
}

.topic {
    color: #b30000;
    font-weight: bold;
    margin: 0.6667rem 0 0.1667rem;
}

.thumbs {
    display: flex;
    gap: 0.5rem;
    margin: 0.3333rem 0;
    flex-wrap: wrap;
}
.thumbs img {
    border: 0.0833rem solid #999;
    width: 14.0833rem;
    height: auto;
    object-fit: cover;
}

/* Recommendation lists (games/music/movies) */
.rec-list {
    display: flex;
    flex-direction: column;
    gap: 0.6667rem;
}
.rec-item {
    display: flex;
    gap: 0.6667rem;
    align-items: flex-start;
    border-bottom: 0.0833rem dashed #ccd6ea;
    padding-bottom: 0.6667rem;
}
.rec-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.rec-item img {
    width: 5rem;
    height: 5rem;
    object-fit: cover;
    border: 0.0833rem solid #999;
    flex-shrink: 0;
}
.rec-title {
    font-weight: bold;
    color: #163f9e;
    margin: 0;
}
.rec-desc {
    margin: 0.1667rem 0 0;
    color: #444;
}

.player-info {
    width: 100%;
}
.player-info audio {
    width: 100%;
    height: 2.6667rem;
    margin: 0.3333rem 0;
}
.spotify-link {
    font-size: 0.9167rem;
    color: #1db954;
    text-decoration: none;
}
.spotify-link:hover {
    text-decoration: underline;
}

/* Friends */
.friends-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6667rem;
    margin-top: 0.5rem;
}
.friend {
    width: 6.6667rem;
    text-align: center;
    font-size: 0.9167rem;
}
.friend img {
    width: 6.6667rem;
    height: 6.6667rem;
    object-fit: cover;
    border: 0.0833rem solid #999;
}

/* Comments */
.comment-list {
    display: flex;
    flex-direction: column;
    gap: 0.6667rem;
}
.comment-item {
    display: flex;
    gap: 0.6667rem;
    align-items: flex-start;
    border-bottom: 0.0833rem dashed #ccd6ea;
    padding-bottom: 0.6667rem;
}
.comment-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}
.comment-item img {
    border: 0.0833rem solid #999;
    flex-shrink: 0;
}
.comment-pfp {
    width: 4.1667rem;
    height: 4.1667rem;
    object-fit: cover;
}
.comment-body {
    overflow-x: auto;
}
.comment-name-container {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.comment-youtube {
    display: flex;
}
.comment-youtube img {
    width: 0.8rem;
    height: 0.8rem;
    object-fit: contain;
}
.comment-name {
    font-weight: normal;
    color: #163f9e;
    margin: 0;
}
.comment-hash {
    margin: 0;
    opacity: 0.5;
    font-size: 0.8333rem;
}
.comment-text {
    margin: 0.1667rem 0;
    color: #333;
}
.comment-date {
    margin: 0;
    font-size: 0.8333rem;
    color: #888;
}

.comment-input-container {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}
#comment-send {
    padding: 0.25rem 0.6667rem;
    box-sizing: border-box;
    background: #163f9e;
    color: #fff;
    border: none;
    width: fit-content;
    font-weight: 600;
}
#comment-send:hover {
    opacity: 0.9;
}
#comment-send:disabled {
    background: #ccc;
    color: #666;
}

.comment-input {
    width: 100%;
    box-sizing: border-box;
    resize: vertical;
    font-size: 0.8333rem;
}

.comment-footer {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.comment-footer button {
    outline: none;
    background: none;
    border: none;
    text-decoration: underline;
    padding: 0;
    margin: 0;
    color: #b30000;
}

.sh-footer {
    background: #dde4f2;
    color: #555;
    text-align: center;
    font-size: 0.8333rem;
    padding: 0.6667rem;
    border-top: 0.0833rem solid #b8c6e0;
}
.sh-footer a {
    color: #163f9e;
    text-decoration: none;
}
.sh-footer a:hover {
    text-decoration: underline;
}

.clippy {
    position: absolute;
    bottom: 20px;
    right: -10px;
    z-index: 10;
    width: 120px;
    height: auto;
}

.cross-gif {
    position: absolute;
    bottom: 20px;
    left: -10px;
    z-index: 10;
    width: 120px;
    height: auto;
}

.gif {
    width: 200px;
    height: auto;
    object-fit: contain;
    position: absolute;
    z-index: -10;
}

.gif-center {
    width: 500px !important;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.gif-tr {
    top: 0;
    right: 10px;
}

.gif-br {
    bottom: 10px;
    right: 10px;
}

.gif-tl {
    top: 10px;
    left: 10px;
}

.gif-bl {
    bottom: 10px;
    left: 10px;
}

.page-gif {
    width: 100%;
    height: auto;
    object-fit: contain;
    border: 0.0833rem solid #7f9db9;
    background: #fff;
}

.about-section {
    position: relative;
}

.about-gif {
    position: absolute;
    bottom: -20px;
    right: -24px;
    z-index: 10;
    width: 140px;
    height: auto;
}

@media (max-width: 700px) {
    .clippy,
    .mario-gif,
    .cross-gif {
        display: none;
    }
    .profile-gif {
        bottom: 0;
        left: 0;
        width: 20%;
        height: auto;
    }
    .window {
        margin: 1.6667rem 0.25rem 5rem;
    }
    .sh-body {
        flex-direction: column;
    }
    .col-left {
        width: 100%;
    }
    .thumbs {
        display: flex;
        flex-wrap: wrap;
        gap: 0.6667rem;
        justify-content: center;
    }
    .box-title {
        display: block;
    }
    .box-title a {
        display: block;
    }
}

@media (max-width: 400px) {
    .profile-gif,
    .about-gif,
    .gif-tr,
    .gif-br,
    .gif-tl,
    .gif-bl {
        display: none;
    }
    .window {
        margin: 0.5rem 0.25rem 5rem;
    }
    .profile-top {
        display: block;
    }
    .profilepic {
        display: none;
    }
    .profilepic-mobile {
        display: block;
        width: 100%;
        height: auto;
        aspect-ratio: 1/1;
        object-fit: cover;
        flex-shrink: 0;
    }
    .profile-info {
        margin: 0.75rem 0 0 0;
    }
}
