* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
}

body {
    padding: 40px;
    background-color: #030F26;
    color: #eef3ff;
    user-select: none;
    overflow: hidden;
}

.portfolio-container {
    position: absolute;
    bottom: 40px;
    width: calc(100% - 80px);
}

.portfolio {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: 20px;
    font-size: 40px;
    color: rgba(255, 255, 255, 0.20);
    transition: all 0.3s ease;
}

.portfolio a {
    background-color: rgba(0, 0, 0, 0.2);
    padding: 0 8px 8px 8px;
    text-decoration: none;
    border-radius: 8px;
    color: rgba(255, 255, 255, 0.20);
    transition: all 0.3s ease;
}

.portfolio div {
    text-align: right;
}

.portfolio a:hover {
    color: #e8edf8;
    background-color: rgba(0, 0, 0, 0.4);
}

/*Folder*/
.folders{
    display: flex;
    gap: 4px;
}
.folder {
    width: 100px;
    color: #e8edf8;
    border: 0;
    background-color: rgba(0, 0, 0, 0);
    border-radius: 4px;
    padding-bottom: 4px;
    margin-bottom: 8px;
    text-align: center;
}

.folder:hover,
.popup-item:hover {
    background-color: rgba(255, 255, 255, 0.1);
    cursor: pointer;
}

.folder img {
    object-fit: cover;
    width: 72%;
}

/*Popup*/
.popup {
    position: absolute;
    border: 1px solid #64646e;
    border-radius: 6px;
    background-color: #3c465a;
}

/*Header*/
.header {
    display: flex;
    justify-content: space-between;
    background-color: #9298A6;
    border-top-left-radius: 4px;
    border-top-right-radius: 4px;
}

.draggable {
    cursor: grab;
    display: flex;
    flex: 1;
}

.control-buttons {
    display: flex;
}

.header button {
    border: 0;
    background-color: transparent;
    position: relative;
    width: 24px;
    height: 24px;
    cursor: pointer;
}

.header button span {
    position: absolute;
    background-color: #030F26;
}

.popup-content {
    display: flex;
    flex-direction: column;
    height: calc(100% - 24px);
    overflow: auto;
    border-bottom-right-radius: 4px;
    border-bottom-left-radius: 4px;
}

.popup-content::-webkit-scrollbar {
    width: 12px;
    background-color: #e8edf8;
    border-bottom-right-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
    background-color: #9298A6;
    border-radius: 6px;
    border: 2px solid #e8edf8;
}

/* Hover effect for thumb */
.popup-content::-webkit-scrollbar-thumb:hover {
    background-color: #64646e;
}

/* Active (while dragging) */
.popup-content::-webkit-scrollbar-thumb:active {
    background-color: #3c465a;
}

.popup-content a {
    text-decoration: none;
    color: #e8edf8;
}

.popup-item {
    display: flex;
    align-items: center;
    height: 40px;
}

.popup-item img {
    height: 90%;
    padding: 0 4px;
}

@media (max-height: 300px),
(max-width: 400px) {
    .portfolio-container {
        display: none;
    }
}

/*Close*/
.close {
    border-top-right-radius: 4px;
}

.close span {
    width: 2px;
    height: 16px;
    top: 4px;
    left: 11px;
}

.close span:first-child {
    transform: rotate(45deg);
}

.close span:last-child {
    transform: rotate(-45deg);
}

.close:hover {
    background-color: rgba(209, 28, 28, 0.7);
}

/*Minimize*/
.minimize span {
    width: 14px;
    height: 2px;
    left: 5px;
}

/*Maximize*/
.single, .double {
    display: none;
}

.single.active, .double.active{
    display: block;
}
/* obican */
.single span:nth-child(1) {
    top: 6px;
    left: 6px;
    width: 12px;
    height: 2px;
}

.single span:nth-child(2) {
    top: 6px;
    right: 6px;
    width: 2px;
    height: 12px;
}

.single span:nth-child(3) {
    bottom: 6px;
    left: 6px;
    width: 12px;
    height: 2px;
}

.single span:nth-child(4) {
    top: 6px;
    left: 6px;
    width: 2px;
    height: 12px;
}

/* maximize */
.double span:nth-child(1) {
    top: 8px;
    left: 4px;
    width: 12px;
    height: 2px;
}

.double span:nth-child(2) {
    top: 8px;
    right: 8px;
    width: 2px;
    height: 12px;
}

.double span:nth-child(3) {
    bottom: 4px;
    left: 4px;
    width: 12px;
    height: 2px;
}

.double span:nth-child(4) {
    top: 8px;
    left: 4px;
    width: 2px;
    height: 12px;
}

.double span:nth-child(5) {
    top: 4px;
    left: 8px;
    width: 12px;
    height: 2px;
}

.double span:nth-child(6) {
    top: 4px;
    right: 4px;
    width: 2px;
    height: 12px;
}

.minimize:hover,
.maximize:hover {
    background-color: rgba(100, 100, 110, 0.7);
}