
/* ---------------------------------------------------------------------------------------------------------
General 
--------------------------------------------------------------------------------------------------------- */

html, body {
    margin: 0;
    padding: 0;
    width: 100vw;  /* Ensure the width doesn't exceed the viewport */
    height: 100vh; /* Ensure the body and html fill the viewport */
    overflow: hidden; /* Prevent scrolling */
    box-sizing: border-box;
    align-items: center;
}

.background-layer {
    width: 100%;
    height: 100%;
    left: 0%;
    top: 0%;
    opacity: 0.5; /* 50% opacity as decimal */
    position: absolute;
    z-index: -1;
}

h2 {
    text-align: center; /* Centers text horizontally */
    width: 100%; /* Ensures it takes the full width */
    margin-bottom: 2%;
    margin-top: 1.25%;
    font-family:'Monaco';
    font-size: 250%;
}

p {
    font-family:'Monaco';
    font-size: 130%;
}

.container {
    display: flex;
    justify-content: space-around;
    align-items: top;  
    height: 72vh;   
    width: 100%;    
    margin-top: 2%;     
    margin-bottom: 0%;
}

.left {
    width: 30%;
    top: 10%;
    left: 10%;
    height: 80%;
    padding: 2%;
    border: 5px solid black;
    border-radius: 10%;
    background-color: white;
}

.right {
    display: flex;
    width: 50%;
    height: 80%;
    padding: 2%;
    border: 5px solid black;
    border-radius: 10%;
    position: relative;
    background-color: white;
}

.left50 {
    width: 40%;
    top: 10%;
    left: 10%;
    height: 80%;
    padding: 2%;
    border: 5px solid black;
    border-radius: 10%;
    background-color: white;
}

.right50 {
    display: flex;
    width: 40%;
    height: 80%;
    padding: 2%;
    border: 5px solid black;
    border-radius: 10%;
    position: relative;
    background-color: white;
}

.playAgainButton,
.nextButton {
    display: block; 
    width: fit-content; 
    margin: 0px auto; 
    padding: 10px 20px;
    background-color: rgba(0, 175, 241, 0.5);
    transition: background-color 0.2s;

    font-size: 150%;
    font-family: 'Monaco';
    color: black;

    border: 2px solid black; 
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    bottom: 1vh;
    border-radius: 15%;
}

.playAgainButton:hover,
.nextButton:hover {
    background-color: #f0f0f0;
}

.accuracy-display-text {
    font-size: 200%;
    margin-bottom: 15%;
    text-align: center;
}

.accuracy-display-container {
    background-color: #99c3e3;
    border-radius: 10%;
    padding: 10%;
    margin: auto;
    height: 80%;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.topRightButton {
    position: absolute;
    top: 2vh;
    right: 2vh;
    width: 1%;
    height: 1%;
    border-radius: 50%;
    border: none;
    background-color: rgba(34, 96, 179, 0.25);
    color: white;
    font-weight: bold;
    font-size: 1.2em;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    transition: background-color 0.2s ease;
}

.topRightButton:hover {
    background-color: rgba(34, 96, 179, 0.3);
}

/* ---------------------------------------------------------------------------------------------------------
Progress Bar 
--------------------------------------------------------------------------------------------------------- */

.progressButtonComplete {
    position: relative;
    width: 3vh;
    height: 3vh;
    border-radius: 50%;
    outline: rgba(34, 96, 179, 0.85);
    background-color: rgba(34, 96, 179, 0.85);
    padding: 0;
    margin-bottom: 0% !important;
    
  }
  .progressButtonCurrent {
    position: relative;
    width: 3vh;
    height: 3vh;
    border-radius: 50%;
    outline: rgba(0, 175, 250, 0.75);
    background-color: rgba(0, 175, 250, 0.75);
    padding: 0;
    margin-bottom: 0% !important;
    
  }
  .progressButtonFuture {
    position: relative;
    width: 3vh;
    height: 3vh;
    border-radius: 50%;
    outline: rgba(0, 100, 100, 100.85);
    background-color: rgba(100, 100, 100, 0.85);
    padding: 0;
    margin-bottom: 0% !important;
    
  }

/* ---------------------------------------------------------------------------------------------------------
Login 
--------------------------------------------------------------------------------------------------------- */

.form-container {
    position: absolute;
    width: 75%;
    height: 60%;
    top: 46%;
    left: 50%;
    transform: translate(-50%, -50%);
    margin-top: 20px;
    border-radius: 20px;
  }

  input[type="text"], button {
    padding: 1%;
    font-size: 1.5vw;
    margin-bottom: 1%;
    width: 100%;
  }

  .name-container {
    display: flex;
    justify-content: center;
    align-items: center; /* Ensures vertical alignment */
    gap: 5vh;
    margin-bottom: 5vh;
  }
  
  .login-input,
  .login-select {
    height: 6vh;
    font-size: 2.5vh;
    color: gray;
    border: 0.2vw solid rgba(12, 120, 230, 1);
    border-radius: 20px;
    padding: 0 10px;
    box-sizing: border-box;
  }
  
  .login-input {
    width: 20vw;
  }
  
  .login-select {
    padding-top: 0;
    padding-bottom: 0;
  }
  
  
  
  

/* ---------------------------------------------------------------------------------------------------------
Feature Map Make-A-Match 
--------------------------------------------------------------------------------------------------------- */

.containerMakeAMatch {
    display: flex;
    justify-content: space-around;
    align-items: top;  
    height: 60vh;   
    width: 90%;      
    margin-left: 3%;  
    margin-right: 3%;   
    margin-bottom: 2%;
    padding: 2%;
    border: 5px solid black;
    border-radius: 5%;
    background-color: white;

}

.leftMakeAMatch {
    width: 30%;
    top: 10%;
    left: 10%;
    height: 90%;
    padding: 2%;
    border-radius: 5%;
}

.rightMakeAMatch {
    display: flex;
    width: 50%;
    height:90%;
    padding: 2%;
    border-radius: 5%;
    position: relative;
}

canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;

}

.makeAMatchContainer {
    position: relative;
    background-color: transparent;
    height: 100%;
    width: 100%;
    border-radius: 5%;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    grid-template-rows: repeat(2, auto); /* 2 rows */
    gap: 10px; /* Space between images */
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 10px;
}

.feature {
    width: 100px; /* Adjust as needed */
    height: 120px;
    border: 2px solid black;
    cursor: grab;
}

.dropzone {
    position: absolute;
    width: 100px; 
    height: 115px;
    border: 3px dashed black;
    background: rgba(255, 255, 255, 1.0); /* Transparent overlay */
    z-index: 10; /* Ensures it is above the canvas */
    transform: translate(-50%, -50%);
}

.dropzone.inactive {
    pointer-events: none; /* disables interactions */

    position: absolute;
    width: 100px; 
    height: 115px;
    border: 3px dashed black;
    background: rgba(255, 255, 255, 1.0); /* Transparent overlay */
    z-index: 10; /* Ensures it is above the canvas */
    transform: translate(-50%, -50%);
  }

.dropzone.dragover {
    background-color: lightgreen;
}

/* Position each drop zone over the feature maps */
#drop1 { top: 11%; left: 88%; }
#drop2 { top: 37%; left: 88%; }
#drop3 { top: 63%; left: 88%; }
#drop4 { top: 89%; left: 88%; }

.buttonRow2 {
    display: flex;
    justify-content: center;  
    gap: 0px;                
    align-self: center;
    text-align: center;
}

/* ---------------------------------------------------------------------------------------------------------
Kernel Math 
--------------------------------------------------------------------------------------------------------- */

.buttonRow {
    display: flex;
    justify-content: center;  
    gap: 5%;                
    align-self: center;
    text-align: center;
}

.nextStageButton,
.prevStageButton {
    padding: 10px 20px;
    color: black;
    background-color: rgba(0, 175, 249, 0.5);
    transition: background-color 0.2s;

    font-size: 150%;
    font-family: 'Monaco';
    color: black;

    border: 2px solid black; 
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    position: relative;
    bottom: 1vh;
    border-radius: 15%;
    width: auto;
}

.nextStageButton:hover,
.prevStageButton:hover {
    background-color: #f0f0f0;
}

.matrix {
    border-collapse: collapse;
    margin-bottom: 10px;
}

.matrix td {
    border: 1px solid #000;
    padding: 5px 10px;
    text-align: center;
    
}

.input-matrix {
    border-collapse: collapse;
    margin-top: 20px;
    background-color: #EEEEEE;
  }
  
  .input-matrix td {
    border: 2px solid #555;
    padding: 4px;
    height: 15vh;
    width: 40vh;
    vertical-align: middle;
  }
  
  .feature-map-input {
    width: 80%;
    height: 80%;
    padding: 4px;
    text-align: center;
    font-size: 300%;
    font-family: 'Monaco';
    border-radius: 10%;
    background-color: #c6e7ff;
    display: block;
    margin: auto;
  }

  /* Remove arrows in Chrome, Safari, Edge */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

/* Remove arrows in Firefox */
input[type=number] {
    -moz-appearance: textfield;
}

.locked-cell {
    display: block;
    margin: auto;

    width: 80%;
    height: 80%;
    text-align: center;
    font-weight: bold;
    text-align: center;
    align-items: center;
    font-size: 300%;
    font-family: 'Monaco';
    background-color: #f3f3f3;
    border: 1px solid #999;
    border-radius: 4px;
}

.timeLevelInstructionContainer {
    display: flex;
    justify-content: space-around;
    align-items: center;  
    height: 60vh;   
    margin: auto;
    margin-bottom: 2%;
    width: 50%;      
    padding: 2%;
    border: 5px solid black;
    border-radius: 12%;
    background-color: white;
    font-size: 170%;
    text-align: center;

}
