@font-face {
    font-family: "Pixelated";
    src: url("./fonts/pixelated.woff") format("woff");
    font-weight: normal;
    font-style: normal;
    font-display: swap;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: #191b3f;
    color: #81afb5;
    font-family: "Pixelated", sans-serif;
    margin: 0;
    padding: 0;
    font-size: 12px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    image-rendering: pixelated;
}


.container {
    width: 80%;
    height: 100vh;
    margin: 0 auto;
}

.header {
    width: 100%;
    display: flex;
    /*align-items: center;*/
    padding: 20px 0;
    margin-bottom: 20px;
}

.header h1 {
    color: #5da75d;
}

.content {
    width: 100%;
    display: flex;
}

.left {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.right {
    width: 80%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.appIcon {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    margin-bottom: 40px;
    gap: 10px;
    text-decoration: none;
    color: inherit;
}

.icon {
    width: 50px;
    height: 50px;
}

.iconText {
    /*width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;*/
    color: #b7d974;
}

.opacityBack {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    /*background-color: rgba(0, 0, 0, 0.5);*/
    display: flex;
    justify-content: center;
    align-items: center;
}

.modal {
    position: fixed;
    background-color: #070c1d;
    display: flex;
    flex-direction: column;
    border: 4px solid #286080;
    padding: 10px;
}

.close {
    margin-top: -25px;
    margin-right: -14px;
    width: 35px;
    height: 35px;
    cursor: pointer;
    background-color: #3fa0a4;
    color: #070c1d;
    border: none;
    /*border-radius: 50%;*/
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
}

.modalHeader {
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
}

.modalHeader h1 {
    font-size: 18px;
    letter-spacing: 1px;
    max-width: 80%;
}

.modalContent {
    /*display: flex;
    justify-content: center;
    align-items: center;*/
    border: 2px dotted #286080;
}


.modalContent p {
    line-height: 1.2;
    font-size: 14px;
}


.modalContent p.small {
    font-size: 12px;
}

.data {
    text-align: right;
}

.mailList {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.mailItem {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    border-bottom: 2px dotted #286080;
    padding: 10px;
    font-size: 12px;
    cursor: pointer;
}

.mailItem:last-child {
    /* border-bottom: none;*/
}

.mailItem:hover,
.mailActive {
    background-color: #291546;
}

.mailUnreaded {
    color: #e3f5f1;
}

.mailModal h1 {
    color: #eee98a;
}

.mailModal .modalContent {
    padding: 10px;
}


.mailHeader {
    font-size: 12px;
    margin-bottom: 10px;
    padding-bottom: 5px;
    border-bottom: 2px dotted #286080;
}

.modalContent input {
    padding: 10px;
    background-color: #070c1d;
    color: #81afb5;
    border: 2px solid #286080;
}

.modalContent button {
    padding: 10px;
    background-color: #286080;
    color: #070c1d;
    border: none;
    cursor: pointer;
    box-shadow: none;
    font-family: "Pixelated", sans-serif;
}

#btnStart {
    background-color: #b7d974;
    color: #191b3f;
    border: 2px solid #5da75d;
    padding-top: 7px;
}

.modalContent input {
    height: 30px;
}

.intro-controls {
    margin-top: 20px;
    display: flex;
    flex-direction: row;
    gap: 10px;
    align-items: center;
}

#btnStart {
    margin: 10px;
    height: 40px;
    width: 90px;
}

.introContent {
    padding: 10px;
}


.modalContent {
    display: flex;
    flex-direction: row;
    flex: 1;
    min-height: 0;
}

.islandsList {
    width: 20%;
    display: flex;
    flex-direction: column;
    border-right: 2px solid#286080;
    overflow-y: auto;
}

.islandsList p {
    padding: 10px;
    text-align: center;
    color: #446374;
}

/* Global Custom Scrollbar */
::-webkit-scrollbar {
    width: 6px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

::-webkit-scrollbar-thumb {
    background: #81afb5;
    /* Cyan accent matching the likely theme */
    border-radius: 10px;
    box-shadow: 0 0 5px rgba(0, 229, 255, 0.5);
}

::-webkit-scrollbar-thumb:hover {
    background: #86e0ce;
}

.islandItem {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    border-bottom: 2px dotted #286080;
    cursor: pointer;
    padding: 10px;
    line-height: 1.2;
    height: 50px;
}

.islandItem button {
    padding: 0;
}

.islandActive,
.islandActive:hover {
    /*background-color: #5da75d;*/
    color: #86e0ce !important;
}

.islandItem:hover {
    color: #e3f5f1;
}

.islandItem button {
    background: none;
    border: 2px solid #286080;
    padding: 5px;
    height: auto;
}

.list {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.listItem {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.listItemName {
    font-weight: bold;
    color: #86e0ce;
}

.mailListHeader {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    padding: 10px;
    font-size: 12px;
    text-transform: uppercase;
    color: #9f3c91;
    border-bottom: 2px dotted #32495f;
    font-size: 10px;
}

.cornerMsgContent {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 10px;
}


.cornerMsgIcoBg {
    background-color: #191b3f80;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
}

.cornerMsgIco {
    width: 32px;
    height: 32px;
}

.islandMain {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
    padding: 10px;
}

.islandContent {
    width: 100%;
    flex: 1;
    overflow-y: auto;
}

.islandContent .connMsg {
    padding: 20px;
}

.islandTitle {
    font-size: 14px;
    margin-bottom: 10px;
}

#bgContainer {
    padding: 10px;
    overflow: auto;
}

.bgList {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.bgItem {
    display: flex;
    flex-direction: column;
    gap: 10px;
    border-bottom: 2px dotted #286080;
    padding-bottom: 10px;
}

.bgItem:last-child {
    border-bottom: none;
}

.bgItem button {
    width: 150px;
    height: 50px;
    padding: 10px;
}

.bgLabel {
    font-size: 12px;
    margin: 0px !important;
}

.bgThumb {
    padding: 5px;
    border: 1px solid #286080;
    width: 400px;
    height: 200px;
}

.bgThumb.active {
    border: 3px solid #86e0ce;
}



.modalActions {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
}

.bgActions {
    display: flex;
    justify-content: space-between;
}

.bgActions .deleteBg {
    width: 100px;
    background-color: #3d1430;
    color: #446374;
}

.mailBody p {
    margin: 10px 0;
}

/* Specific styles for background confirm modal kept for compatibility or reference if needed, 
   but abstracted ones are preferred */
.backgroundActions button {
    width: 120px;
    height: 30px;
    text-align: center;
}

.confirmModalContent {
    padding: 10px;
}

.nickNameContainer {
    display: flex;
    flex-direction: column;
    gap: 10px;

}

.nickNameContainer input {
    width: 80%;
}

/* Smartphones (portrait and landscape) ----------- */
@media only screen and (min-width : 320px) and (max-width : 480px) {

    /* Styles */
    .container {
        width: 100%;
        padding: 10px;
    }

    .header {
        padding: 10px 0;
    }

    #connectContainer {
        display: flex;
        flex-direction: column;
        border: none;
    }

    .islandsList {
        width: 100%;
        max-height: 120px;
        border: 1px dotted #286080;
        border-bottom: 1px solid #286080;
    }

    .islandItem:hover {
        color: inherit;
    }

    .islandContent {
        width: 100%;
        margin-top: 10px;
        overflow-y: auto;
    }

    .modalContent {
        display: flex;
        flex-direction: column;
        gap: 10px;
    }

    .bgThumb {
        width: 100%;
        height: 100%;
    }

    .mailList {
        gap: 10px;
    }

    .mailItem {
        display: flex;
        flex-direction: column;
        gap: 10px;
        border-top: 2px dotted #286080;
    }

    .mailItem:first-child {
        border-top: none;
    }

    .mailData {
        display: flex;
        flex-direction: row;
        gap: 10px;
    }

    .mailLabel {
        color: #9f3c91;
        width: 100px;
        font-size: 10px;
    }

    .mailItemData {
        width: 220px;
    }

}