* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background-color: #2c3e50;
    color: #ecf0f1;
    display: flex;
    justify-content: center;
    align-items: center; /* Csak a tetejétől kezdődik */
    height: 100vh;  /* Teljes képernyő */
    margin: 0;
    flex-direction: column;
    overflow-x: hidden; /* Ne jelenjenek meg vízszintes scrollok */
    overflow-y: auto;
}

.pixel[data-char=" "] {
    background-color: #f0f0f0 !important; /* Halványított szín */
  }
  

header {
    width: 100%;
    background-color: #34495e;
    padding: 20px;
    text-align: center;
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
    position: fixed;
    top: 0;
    left: 0;
    z-index: 10;
    height: 80px;
}

header h1 {
    font-size: 2.5rem;
    font-weight: bold;
    margin: 0;
}

::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-thumb {
    background-color: #1e90ff;
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #3498db;
}

::-webkit-scrollbar-track {
    background-color: #34495e;
    border-radius: 10px;
}

.container {
    text-align: center;
    width: 90%;
    max-width: 800px;
    background-color: #2c3e50;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 0 25px rgba(0, 0, 0, 0.6);
    margin-top: 100px;
    padding-top: 0px;
    overflow-y: scroll;
}

.color-display {
    margin-bottom: 20px;
    text-align: center;
}

#colorPicker {
    padding: 10px;
    border-radius: 15px;
    border: none;
    background-color: #34495e;
    transition: all 0.3s;
    width: 100%;
    max-width: 300px;
    margin: 5px 0;
}

#colorPicker:hover {
    transform: scale(1.05);
}

#colorPickerContainer {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 20px;
}

#toolbar {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
    margin-top: 0px;
    z-index: 5;
    padding-top: 60px;
}

#toolsContainer {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.tool {
    padding: 8px 15px;
    background-color: #1e90ff;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.tool:hover {
    background-color: #4ba4fa;
    transform: scale(1.05);
}

.input-container {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 30px;
}

.input-container input {
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #7f8c8d;
    background-color: #34495e;
    color: #ecf0f1;
    font-size: 1rem;
    width: 80%;
    max-width: 300px;
}

#canvas {
    display: grid;
    gap: 2px;
    margin-top: 30px;
    border-radius: 10px;
    border: 2px solid #34495e;
    box-shadow: inset 0 0 15px rgba(0, 0, 0, 0.5);
    justify-content: center;
    margin-bottom: 30px;
}

.pixel {
    width: 35px;
    height: 35px;
    background-color: #34495e;
    border-radius: 5px;
    cursor: pointer;
    border: 1px solid #7f8c8d;
    transition: background-color 0.3s ease, transform 0.1s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    font-family: 'Courier New', monospace;
}

.pixel span {
    font-size: 12px;
    color: #ecf0f1;
}

.settings {
    margin-top: 20px;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
}

.settings input {
    margin: 0 5px;
    padding: 10px;
    background-color: #34495e;
    border: 1px solid #7f8c8d;
    color: #ecf0f1;
    border-radius: 5px;
    font-size: 1rem;
}

.settings button {
    padding: 10px 15px;
    background-color: #2980b9;
    border: none;
    color: #fff;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.2s;
}

.settings button:hover {
    background-color: #3498db;
    transform: scale(1.05);
}

#output {
    margin-top: 20px;
    padding: 15px;
    background-color: #34495e;
    color: #ecf0f1;
    border-radius: 10px;
    max-width: 100%;
    font-family: 'Courier New', monospace;
    white-space: pre-wrap;
    word-wrap: break-word;
}

footer {
    background-color: #2c3e50;
    padding: 20px;
    text-align: center;
    width: 100%;
    position: relative;
    bottom: 0;
    color: #bdc3c7;
}

/* Alap stílusok a gombokhoz és inputhoz */
#myInput {
    padding: 10px;
    font-size: 1rem;
    margin-bottom: 10px;
}

#output {
    cursor: pointer;
    color: #fff;
}

/* Üzenet stílusai */
.copy-message {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: #28a745;
    color: white;
    padding: 10px 20px;
    border-radius: 5px;
    font-size: 1rem;
    z-index: 1000;
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
    opacity: 1;
}

/* Az üzenet eltűntetése */
.copy-message.fade {
    opacity: 0;
    transform: translateY(50px);
}

.tool.selected {
    background-color: #0868c4;
    transform: scale(1.05);
}

#pixelChar {
    padding: 8px 12px;
    font-size: 16px;
    font-family: 'Courier New', monospace;
    background-color: #34495e;
    color: #ecf0f1;
    border: 2px solid #1e90ff;
    border-radius: 5px;
    width: 40px;
    height: 40px;
    text-align: center;
    line-height: 40px;
    display: inline-block;
    margin: 5px;
    cursor: pointer;
    transition: transform 0.2s ease, background-color 0.2s ease, box-shadow 0.3s ease;
}

/* Mobil eszközök esetére (max-width: 768px) */
@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }

    .container {
        padding: 20px;
    }

    .pixel {
        width: 30px;
        height: 30px;
    }

    #canvas {
        grid-template-columns: repeat(auto-fill, minmax(30px, 1fr));
    }

    #colorPicker {
        width: 80%;
        max-width: 250px;
    }

    #toolsContainer {
        flex-direction: column;
    }

    .tool {
        font-size: 1.2rem;
        padding: 10px;
        width: 100%;
    }

    .input-container input {
        width: 100%;
    }

    footer {
        font-size: 0.8rem;
    }
}

/* Kisebb mobil eszközök (max-width: 480px) */
@media (max-width: 480px) {
    header h1 {
        font-size: 1.5rem;
    }

    .tool {
        font-size: 1rem;
    }

    .input-container input {
        font-size: 0.9rem;
    }

    #pixelChar {
        width: 30px;
        height: 30px;
    }
}
