@import url('https://fonts.googleapis.com/css2?family=Knewave&family=Roboto:ital,wght@0,100..900;1,100..900&display=swap');

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

html {
    font-size: 16px;
    font-family: "Roboto", sans-serif;
    background-color: #42BFDD;
    --color: red;
}

h1 {
    font-family: "Knewave", "Roboto", sans-serif;
    letter-spacing: .1rem;
    font-size: 4rem;
    color: #F2545B;
    text-shadow: 1px 1px gray;
}

.main {
    display: flex;
    margin: 0 2rem;
    flex-wrap: wrap;
    row-gap: 2rem;
    justify-content: center;
}

.control-interface {
    min-width: 40%;
}

.btn-container {
    margin-left: 4.5rem;
    margin-top: clamp(1rem, .1rem + 5vw, 7rem);
    margin-bottom: 2rem;
}

.btn-container button {
    background-color: #FF9F1C;
    font-family: "Knewave", "Roboto", sans-serif;
    font-size: 1.5rem;
    border: none;
    padding: .5rem 1rem;
    border-radius: 10px;
    color: #12263A;
}

.new-game-btn {
    margin-right: 1rem;
}

.input-container {
    margin-left: 2.3rem;
}

input {
    background-color: #C5EBC3;
    outline: none;
    font-size: 2rem;
    font-family: "Roboto", sans-serif;
    border-radius: 10px;
    padding: 0 .5rem;
    color: #12263A;
    border-color:#12263A;
}

label {
    display: block;
    font-family: "Knewave", "Roboto", sans-serif;
    letter-spacing: .1rem;
    font-size: 2rem;
    color: #F2545B;
    text-shadow: 1px 1px gray;
    padding-left: .5rem;
    margin-bottom: .1rem; 
}

label[for="blue-player"] {
    color: #12263A;
    margin-top: 1rem;
}

label[for="red-player"] + input {
    border-color: #F2545B;
    color: #F2545B;
}

label[for="red-player"] + input:disabled {
    font-weight: bold;
    color: #F2545B;
}

label[for="blue-player"] + input:disabled {
    font-weight: bold;
    color: #12263A;
}

.drop-zone {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(1rem, .75rem + 1vw, 1.5rem);
    padding: clamp(1rem, .75rem + 1vw, 1.5rem);

}

.board-container {
    position: relative;
}

.board {
    background-color: #12263A;
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: clamp(1rem, .75rem + 1vw, 1.5rem);
    padding: clamp(1rem, .75rem + 1vw, 1.5rem);
    border-radius: 20px;
}

.board-cell, .drop-zone-cell {
    width: clamp(40px, 40px + 3vw, 70px);
    height: clamp(40px, 40px + 3vw, 70px);
    background-color: #42BFDD;
    border-radius: 50%;
}

.blue {
    background-color: blue;
}

.red {
    background-color: red;
}

.turn-color {
    background-color: var(--color);
}

.btn-container button:hover {
    color: #FF9F1C;
    background-color: #12263A;
}

.winner-popup {
    position: absolute;
    left: 0;
    right: 0;
    width: max(min-content, 300px);
    min-height: 200px;
    margin: 0 auto;
    top: 43%;
    background-color: #C5EBC3;
    border: 4px solid #12263A;
    border-radius: 10px;
    padding: 1rem;
}

.winner-popup > div {
    display: flex;
    justify-content: flex-end;
}

.winner-popup button {
    background-color: #FF9F1C;
    display: flex;
    justify-content: center;
    align-items: center;
    border: none;
    font-family: "Knewave", "Roboto", sans-serif;
    font-size: 1.5rem;
    border-radius: 10px;
    padding: .2rem 1rem;
    color: #12263A;
}

.winner-popup button:hover {
    color: #FF9F1C;
    background-color: #12263A;
}

.winner-popup > p {
    text-align: center;
    margin-top: .1rem;
    font-family: "Knewave", "Roboto", sans-serif;
    font-size: 3rem;
    color: #F2545B;
}

.hide-popup {
    display: none;
}

button {
    cursor: pointer;
}

@keyframes blink {
    0% {background-color: #FF9F1C; color: #12263A;}
    100% {background-color: #12263A; color: #FF9F1C;}
}

.blink {
    animation-name: blink;
    animation-direction: alternate;
    animation-duration: 2s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}