/* Home */
main {
    height: 100%;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid white;
    animation: border-animation 10s ease infinite;
    box-sizing: border-box;
    box-shadow: 0 0 4px rgba(172, 172, 204, 0.653);
}

/* Network Input */
.network-input {
    display: flex;
    flex-direction: column;
    align-items: center;
}
.network-input > input {
    color: white;
    font-size: 1.3em;
    text-align: center;
    height: 30px;
    background-color: #392d91a3;
    border: 1px solid #009fffb2;
    border-radius: 5px;
    padding: 4px;
    transition: all 0.4s ease-in-out;
}

.network-input > input:hover {
    background-color: #191252a8;
    box-shadow: 0 0 2px rgba(177, 196, 192, 0.603);
}

.network-input > input:focus {
    border-color: #b1e1ff;
    outline: none;
}

#error-img {
    width: 32px;
    margin: 12px;
    filter: invert(1);
    opacity: 0;
    transition: all 0.5s;
    transform: scale(0.8);
}

#error-img.visible {
    opacity: 0.5;
    transform: scale(1.1);
}

/* Output */
.output {
    width: 80vw;
    /* border: 1px dashed rgb(70, 255, 53); */
}

#binary, #decimal {
    height: 333px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

#additional {
    height: 50px;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
}

.output > div > h3 {
    margin-bottom: 10px;
}

table {
    border-collapse: collapse;
    width: 666px;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #ccc;
    padding: 6px 10px;
    width: 50%;
    text-align: left;
}

th {
    text-align: center;
    background: #404b8721;
}



@keyframes border-animation {
	0% {
		border-color: #493d61;
	}
	50% {
		border-color: #7b6ee8;
	}
	100% {
		border-color: #3e1564;
	}
}