body {
  margin: 0;
  min-height: 100vh;
  background: linear-gradient(to bottom, #ffffff, #df3f3f);
  display: flex;
  justify-content: center;
  align-items: flex-start; 
  overflow-y: auto;        
  padding: 50px;           
}

.logo img {
    width: 180px;
    margin: 20px auto;
    display: block;
}

.box {
    margin: 0;
    background: white;
    padding: 50px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    text-align: center;
    width: 800px;       
    max-width: 90%;     
}

h1 {
  overflow: hidden;          
  white-space: nowrap;          
  border-right: 3px solid black; 
  width: 0;
  animation: typing 3s linear forwards, blink 0.7s step-end infinite alternate;
}

@keyframes typing {
  from { width: 0; }
  to { width: 100%; }
}

h1 span {
    color: #007bff;
}

p span {
    color: brown;
}

.container {
    margin-top: 20px;
}

.action-links {
    margin: 20px 0;
}

.nav-link {
    display: inline-block;
    margin: 0 10px;
    padding: 10px 20px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
}

.nav-link:hover {
    background: linear-gradient(to right, #ff4b2b, #d0264e);
    border-radius: 75px;
    width: 120px;
    transition: 0.5s;
}

.file-list {
    margin-top: 20px;
    text-align: left;
}

.file-list p{
    text-align: center;
}

/* File card (two-box layout) */
.file-card {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border: 1px solid #ddd;
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 12px;
    background: #f9f9f9;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.file-info {
    flex: 1;
}

.file-name {
    font-weight: 600;
    color: #333;
}

.file-action {
    margin-left: 20px;
}

.action-btn {
    display: inline-block;
    padding: 8px 14px;
    background: #007bff;
    color: white;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.3s;
    border: none;
}

.action-btn:hover {
    background: linear-gradient(to right, #ff4b2b, #d0264e);
}

.no-files {
    color: #888;
    font-style: italic;
}

.logout-btn {
    display: block;
    width: 300px;
    margin: 0 auto;
    padding: 12px 20px;           
    border: none;                 
    border-radius: 8px;           
    background-color: lightgray;  
    color: black;                 
    font-size: 16px;              
    cursor: pointer;              
    transition: all 0.3s ease;   
    text-decoration: none; 
}

.logout-btn:hover {
    background-color: red;
    color: white;
    transform: scale(1.05);  
}

.container_inp {
    width: 104px;
    margin-left: 18px;
}

.score_form{
    height: 78px;
}

.entryarea {
    position: relative;
    height: 35px;
}

input {
    width: 100%;
    height: 100%;
    box-sizing: border-box; 
    outline: none;
    font-size: 1em;
    text-align: center; 
    padding: 0 5px; 
    border-radius: 10px;
    border: 2px solid black;
    background: transparent;
    transition: 0.1s ease;
}

input::placeholder {
    color: #888; 
    font-size: 0.9em;
}

input:focus {
    color: black;
    border: 3px solid rgb(67, 241, 67);
}

.status-message { 
    margin: 15px 0; 
    padding: 12px; 
    border-radius: 5px; 
    text-align: center; 
    font-weight: bold; 
}

.success { 
    color: #155724; 
    background-color: #d4edda; 
    border: 1px solid #c3e6cb; 
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    transition: opacity 0.5s ease; 
}

.error { 
    color: #721c24; 
    background-color: #f8d7da; 
    border: 1px solid #f5c6cb; 
    padding: 10px;
    margin: 10px 0;
    border-radius: 5px;
    transition: opacity 0.5s ease; 
}

.file-action button{
    height: 35px;
}
