@import url("../styles.css");

.ascii-art {
    font-size: 0.8vw;
    margin: 10px;
}

.file-selector {
    width: 30vw;
    height: 3vw;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    margin-bottom: 12px;
    background-color: #444;
    border-radius: 6px;
    font-size: 1.5vw;
    cursor: pointer;
}

.file-selector > p {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    width: 90%;
    text-align: center;
}

.text {
	font-size: 1.5vw;
	margin: 10px;
}

.inputs {
    width: 30vw;
    display: flex;
    flex-direction: column;
    align-items: center;
}

input[type="password"] {
    width: 100%;
    height: 3vw;
    box-sizing: border-box;
    padding: 4px 8px;
    margin-bottom: 6px;
    border: none;
    border-radius: 6px;
    outline: none;
    background-color: #444;
    color: white;
    font-size: 1.5vw;
    font-family: inherit;
}

input[type="password"]::placeholder {
    color: white;
}

input[type="submit"] {
    width: 100%;
    height: 3vw;
    margin-bottom: 6px;
    border-radius: 6px;
    border: none;
    outline: none;
    background-color: #444;
    color: white;
    font-size: 1.5vw;
    font-family: inherit;
    cursor: pointer;
}

input[type="submit"]:hover {
    background-color: #666;
    transform: scale(1.05);
}

.disabled {
    opacity: 0.3;
    pointer-events: none;
}

@keyframes rainbow {
    0% { color: red; }
    16% { color: orange; }
    33% { color: yellow; }
    50% { color: green; }
    66% { color: blue; }
    83% { color: indigo; }
    100% { color: violet; }
}

.rainbow-animation {
    animation: rainbow 2s linear infinite;
}

@media (pointer:none),
(pointer:coarse), (max-width: 800px) {
    .ascii-art {
        font-size: 1.2vw;
    }

    .note {
    	font-size: 2vw;
    	margin: 20px;	
    }

	.button {
        width: 20%;
        padding: 12px;
        font-size: 2.5vw;
    }
	.file-selector {
		width: 60vw;
		height: 8vw;
		font-size: 3vw;
	}

	.text {
		font-size:	5vw;	
	}
	
	.inputs {
		width: 60vw;
		font-size: 3vw;
	}
	input[type="password"] {
		height: 8vw;
		font-size: 3vw;
	}
	input[type="submit"] {
		height: 8vw;
		font-size: 3vw;
	}
}
